# Market.kz Kazakhstan classifieds

> Search public Kazakhstan classifieds on market.kz’s current canonical source. Cards contain excerpts; use listing for complete detail.
> ReefAPI engine `market-kz` · 2 endpoints · clean JSON, no scraping or browsers to manage.

## How to call
- **Endpoint:** `POST https://api.reefapi.com/market-kz/v1/<action>` with a JSON body.
- **Auth:** header `x-api-key: <YOUR_REEFAPI_KEY>` — create one free (1,000 credits, no card): https://reefapi.com/signup
- **Response (every call):** `{ ok: boolean, data: ..., meta: { record_count, credits, ... }, error: { code, message } }` — branch on `ok`. Failed calls are free except verified SHEIN NOT_FOUND on product/detail and price (4 credits).
- **One key + one shared credit pool** across every ReefAPI API. Per-call credits are listed on each endpoint below.
- **Use it from an AI agent (MCP):** connect `https://api.reefapi.com/mcp` (remote streamable-http). Send the key as `Authorization: Bearer <key>`, or put it in the URL (`?key=<key>`) when the client has no header field, as ChatGPT does.

## Endpoints

### POST https://api.reefapi.com/market-kz/v1/search — 2 credits
Search public Kazakhstan classifieds on market.kz’s current canonical source. Cards contain excerpts; use listing for complete detail.

**Parameters:**
- `category` (string, optional) — Published category path, e.g. elektronika or uslugi/stroitelstvo-remont. Omit for all categories.
- `query` (string, optional) — Source keyword search; omit for an unfiltered category.
- `region` (string, optional) — Published source region key, e.g. kz/alm/almaty.
- `price_from` (integer, optional) — Source lower price bound in KZT. Ranges match by overlap; not a minimum of every returned range. Excludes free/negotiable mode.
- `price_to` (integer, optional) — Source upper price bound in KZT. Ranges match by overlap.
- `free` (boolean, optional, default false) — Only source free listings; incompatible with bargain or price bounds.
- `bargain` (boolean, optional, default false) — Only source negotiable listings; incompatible with free or price bounds.
- `has_photo` (boolean, optional, default false) — Require a source listing photo.
- `exchange` (boolean, optional, default false) — Only source listings accepting exchange.
- `sort` (enum, optional, default "relevant") — Source relevance, date or price order. [one of: relevant, newest, oldest, price_asc, price_desc]
- `page` (integer, optional, default 1) — One-based page; rows past the source total are empty. The maximum is a local safety cap.
- `limit` (integer, optional, default 24) — Requested organic page window. Services/rentals use a fixed window of 24; requested_limit and effective limit are returned. Maximum 50 is a local cap.

**Returns:** Main listings, actual source category IDs, asking-price states, public sellers, total and pagination; similar recommendations are not mixed into main matches.

**Example request body:**
```json
{
  "category": "elektronika",
  "limit": 3
}
```

### POST https://api.reefapi.com/market-kz/v1/listing — 2 credits
Full public listing by source ID or canonical URL; one of id or url is required.

**Parameters:**
- `id` (string, optional) — Numeric source listing ID from search.
- `url` (string, optional) — Public market.kz or obyavleniya.kaspi.kz /a/ listing URL. Identity is resolved on the canonical source.

**Returns:** Complete description, actual category and parameters, condition when published, asking-price state, media, location, source dates, seller IDs and listing storage status.

**Example request body:**
```json
{
  "id": "123621961"
}
```

## At scale
- **Volume:** 5M+ requests a day, measured at 60 requests a second across the fleet with no
  central bottleneck. Per-key limits are raised for high-volume accounts; volume pricing on request.
- **Missing a source:** tell us a site we do not cover and it becomes an engine. A customer asked
  for bestprice.gr on 21 Sep 2026 and it was in the catalog on 22 Sep.
- **Support:** 2 minute median time from a question in the live chat to the first answer. Setup
  help included, no support tier to buy.
- **One key, one credit pool** across every API. No per-site plans, no separate subscriptions.

## More
- Try it live, no code: https://reefapi.com/playground?engine=market-kz
- Human docs page: https://reefapi.com/docs/market-kz
- Overview page: https://reefapi.com/market-kz-api
- Every ReefAPI API in one file (for your AI): https://reefapi.com/llms-full.txt
