# KV.ee — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Search and browse real estate listings from Estonia's largest property portal to find apartments, houses, and other properties with detailed information like prices, locations, and descriptions. View complete details for any listing including photos, specifications, and contact information for sellers.

**Category:** Real Estate | **Website:** [kv.ee/](https://kv.ee/) | **Docs:** [parse.bot/marketplace/2cd9c589-fac4-421d-962b-75af4c15acc5/kv-ee-api](https://parse.bot/marketplace/2cd9c589-fac4-421d-962b-75af4c15acc5/kv-ee-api)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-kv-ee-api-2cd9c589/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_listing

Retrieve detailed information about a specific real estate listing by its numeric ID. Returns property attributes (rooms, area, floor, year built, condition, ownership type, energy class), full description text, price, coordinates, and image URLs.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `listing_id` | string | Yes | Numeric listing ID from kv.ee (e.g. from search_listings results). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-kv-ee-api-2cd9c589/get_listing \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"listing_id":"<string>"}'
```

### search_listings

Search real estate listings with filters for deal type, location, rooms, price, and area. Returns paginated results (50 per page) with total count. Results are auto-iterated; no page/cursor param to pass.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `area_max` | string | No | Maximum area in square meters. |
| `area_min` | string | No | Minimum area in square meters. |
| `county` | string | No | County ID for location filter (e.g. '1' for Harjumaa). Obtainable from site dropdowns. |
| `deal_type` | string | No | Transaction type filter. |
| `orderby` | string | No | Sort order for results. |
| `page` | integer | No | Page number for pagination (50 results per page). |
| `parish` | string | No | Parish/city ID for location filter (e.g. '1061' for Tallinn). Obtainable from site dropdowns. |
| `price_max` | string | No | Maximum price in euros. |
| `price_min` | string | No | Minimum price in euros. |
| `rooms_max` | string | No | Maximum number of rooms. |
| `rooms_min` | string | No | Minimum number of rooms. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-kv-ee-api-2cd9c589/search_listings \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"area_max":"<string>","area_min":"<string>","county":"<string>","deal_type":"<string>","orderby":"<string>","page":"<integer>","parish":"<string>","price_max":"<string>","price_min":"<string>","rooms_max":"<string>","rooms_min":"<string>"}'
```
