# /olx/offers/search

`POST /api/olx/offers/search`

Price: 10 credits

Search OLX classified ads by keyword and filters: returns full offer cards with title, description, price, seller, location with coordinates, photos and category-specific attributes. Supports filtering by category, price range, condition, seller type, region/city/district with radius, delivery and arbitrary category-specific facets.

## How to use it

Search live OLX listings on any of its country marketplaces (olx.pl, olx.ua, olx.ro, olx.bg, olx.pt, olx.kz, olx.uz) via the domain parameter. Every result is a full offer object (same shape as the offers endpoint), not a reduced card. Narrow results with keyword, category_id (from the categories endpoint), min_price/max_price, condition, owner_type (private/business), region_id/city_id/district_id (from the regions endpoint) with distance, has_delivery, user_id and sort. For category-specific facets such as phone memory, car mileage or flat area, look the filter up with the categories/filters endpoint and pass it in filters.

## Parameters

- `access-token` (string, required)

## Request body

- `timeout` (integer) — Max scrapping execution timeout (in seconds) (default: 300; min: 20; max: 1500)
- `domain` (string) — OLX country marketplace domain. (default: "olx.pl"; one of: "olx.pl", "olx.ua", "olx.ro", "olx.bg", "olx.pt", "olx.kz", "olx.uz")
- `keyword` (string, nullable) — Search keyword (examples: "iphone 14", "rower gorski"; minLength: 1)
- `count` (integer, required) — Max number of offers to return (min: 1; max: 1000)
- `category_id` (integer, nullable) — Restrict results to this category id (examples: 2298; >: 0)
- `min_price` (number, nullable) — Minimum price, in the domain's currency (min: 0)
- `max_price` (number, nullable) — Maximum price, in the domain's currency (min: 0)
- `condition` (string, nullable) — Filter by item condition (one of: "new", "almost-new", "used", "refurbished", "outlet", "damaged", "others")
- `owner_type` (string, nullable) — Private sellers or business sellers only (one of: "private", "business")
- `region_id` (integer, nullable) — Restrict results to this region id (>: 0)
- `city_id` (integer, nullable) — Restrict results to this city id (>: 0)
- `district_id` (integer, nullable) — Restrict results to this city district id (>: 0)
- `distance` (integer, nullable) — Search radius in kilometres around the selected city (min: 0)
- `has_delivery` (boolean) — Only offers that support OLX delivery (default: false)
- `user_id` (integer, nullable) — Restrict results to offers of this seller (>: 0)
- `sort` (string, nullable) — Result ordering; source relevance order when omitted (one of: "relevance", "newest", "oldest", "price_asc", "price_desc")
- `filters` (object, nullable) — Category-specific filters keyed by the filter name returned by the categories/filters endpoint. Enum filters take one or more comma-separated values, range filters take 'min:max' (either side may be empty), boolean filters take 1 or 0. (examples: {"filter_enum_builtinmemory_phones":"256gb,512gb","filter_float_m":"40:60"})
  - `*` (string)

## Response

### 200 — Successful Response

- `@type` (string) (default: "OlxOffer")
- `id` (string, required)
- `url` (string, nullable)
- `offer_title` (string, nullable)
- `description` (string, nullable)
- `status` (string, nullable)
- `offer_type` (string, nullable)
- `is_business` (boolean, nullable)
- `price` (number, nullable)
- `previous_price` (number, nullable)
- `currency` (string, nullable)
- `price_label` (string, nullable)
- `is_negotiable` (boolean, nullable)
- `is_price_arranged` (boolean, nullable)
- `salary_from` (number, nullable)
- `salary_to` (number, nullable)
- `salary_currency` (string, nullable)
- `salary_period` (string, nullable)
- `is_salary_gross` (boolean, nullable)
- `created_at` (integer, nullable)
- `refreshed_at` (integer, nullable)
- `pushed_at` (integer, nullable)
- `omnibus_pushed_at` (integer, nullable)
- `expires_at` (integer, nullable)
- `category_id` (string, nullable)
- `category_type` (string, nullable)
- `location` (object, nullable)
  - `@type` (string) (default: "OlxOfferLocation")
  - `city_id` (string, nullable)
  - `city` (string, nullable)
  - `city_alias` (string, nullable)
  - `district_id` (string, nullable)
  - `district` (string, nullable)
  - `region_id` (string, nullable)
  - `region` (string, nullable)
  - `region_alias` (string, nullable)
  - `latitude` (number, nullable)
  - `longitude` (number, nullable)
  - `radius` (number, nullable)
  - `zoom` (integer, nullable)
  - `is_detailed` (boolean, nullable)
- `seller` (object, nullable)
  - `@type` (string) (default: "OlxOfferSeller")
  - `id` (string, nullable)
  - `uuid` (string, nullable)
  - `name` (string, nullable)
  - `company_name` (string, nullable)
  - `about` (string, nullable)
  - `image` (string, nullable)
  - `alias` (string, nullable)
  - `has_business_page` (boolean, nullable)
  - `is_online` (boolean, nullable)
  - `created_at` (integer, nullable)
  - `last_seen_at` (integer, nullable)
  - `social_network_account_type` (string, nullable)
  - `has_other_offers` (boolean, nullable)
- `contact_name` (string, nullable)
- `attributes` (array) (default: [])
  - `@type` (string) (default: "OlxOfferAttribute")
  - `key` (string, required)
  - `name` (string, nullable)
  - `type` (string, nullable)
  - `values` (array) (default: [])
  - `label` (string, nullable)
- `key_attributes` (array) (default: [])
- `images` (array) (default: [])
- `is_highlighted` (boolean, nullable)
- `is_top_ad` (boolean, nullable)
- `is_promoted` (boolean, nullable)
- `is_b2c_ad` (boolean, nullable)
- `promotion_options` (array) (default: [])
- `has_phone` (boolean, nullable)
- `has_chat` (boolean, nullable)
- `has_negotiation` (boolean, nullable)
- `has_delivery` (boolean, nullable)
- `delivery_mode` (string, nullable)
- `has_gpsr_info` (boolean, nullable)
- `is_phone_protected` (boolean, nullable)
- `external_url` (string, nullable)
- `partner_code` (string, nullable)
- `shop_alias` (string, nullable)

## Errors

### 422 — Validation Error

The request body did not validate

What to do: Check the fields against this schema. A URN with the wrong prefix is the most common cause.

- `detail` (array)
  - `loc` (array, required)
  - `msg` (string, required)
  - `type` (string, required)
  - `input` (any)
  - `ctx` (object)

### 408

The request ran past its time limit

What to do: Raise `timeout` in the request body, up to the maximum this endpoint documents. Lowering `count` or turning off the `with_*` flags also helps, because less work finishes sooner.

### 412

The entity was not found, or a precondition failed

What to do: Retrying will not help: either the entity does not exist, or the input points at a different one.

### 429

Too many requests: a rate limit or a usage window is exhausted

What to do: When the response carries an X-Retry-After header, wait that many seconds and retry: the same number is in the body as `detail.retry_after`, and the limit clears once that window passes. The message in the body names the limit that was hit.

### 500

Something broke on our side

What to do: Retrying will not help. If it keeps happening, send us the X-Request-ID from the response headers.

### 529

Rate limit reached, or the endpoint is overloaded

What to do: Wait at least 30 seconds, then retry.

## Response envelope

Success: Array of objects (may be empty if no results)

Error: Error may coexist with partial results if it occurs mid-execution. Check X-Error header and status code.

Every response carries these headers:

- `X-Error` — Error message text (present only on error)
- `X-Request-ID` — Unique request identifier
- `X-Execution-Time` — Execution time in seconds
- `X-Result-Count` — How many records the body carries. 0 means an empty result, which is a normal answer and not by itself an error. A non-zero count can come back together with X-Error when the failure happened partway through — read this header and X-Error independently.
- `X-Total-Available-Results` — How many records exist for this query, when the endpoint can say. On a `dry_run` request this is the answer and the body is empty. It saturates: the endpoint's documented maximum means 'at least that many', any smaller number is exact.
- `X-Warning` — Present when the request body carried keys this endpoint does not document. They were ignored, so any filter you meant to apply through them did not apply. Check the spelling against this schema and retry.
- `X-Retry-After` — Seconds to wait before retrying. Present only on 429.

