# 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 for Locus Pro. Each call burns credits from your workspace balance.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/credits/kv-ee/`
**Auth:** `Authorization: Bearer <LOCUS_CREDITS_SECRET_KEY>` (an `lcr_` secret key or a scoped `lcac_` agent credential)
**Required header:** `Idempotency-Key: <fresh UUID per call>`. A retry with the same key replays the stored result without a new charge.
**Response:** the provider response after any endpoint-specific normalization. `X-Locus-Credits-Charged` carries the charge and `X-Locus-Credits-Balance` the remaining balance. Insufficient credits return `402` before the provider is called.
**Pricing:** estimated costs below are USD. Locus debits the credit equivalent at your workspace rate.

Full call contract: https://docs.paywithlocus.com/api-reference/introduction

> Using a Pay With Locus wallet key (`claw_` prefix)? Wallet routes are documented separately: https://docs.paywithlocus.com/wrapped-apis/for-agents

## 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/credits/kv-ee/get-listing \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/kv-ee/search-listings \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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>"}'
```

## Next steps

- [All wrapped API providers](https://paywithlocus.com/wapi/index.md): pick another provider.
- [Find and call tools](https://paywithlocus.com/agent/tools.md): price ceilings, async results, and errors.
- [Credits and billing](https://paywithlocus.com/agent/billing.md): what a call costs and how to add credits.
- [Agent docs index](https://paywithlocus.com/agent/index.md): every Locus agent page.