# OLX Search ## Overview | Property | Value | |----------|-------| | **Status** | active | | **Method** | `GET` | | **Endpoint** | `/v2/olx/search` | | **Base URL** | `https://api.piloterr.com` | | **Credit Cost** | 1 credit per call | | **Documentation** | https://www.piloterr.com/library/olx-search-cmvttj77g10h9tm01uq0ju3xh | ## Description Search an OLX country by keyword. Region defaults to Poland. Also use Romania, Portugal, Bulgaria, Ukraine, Kazakhstan, or Uzbekistan. Page with page. ## Authentication - **Key Name:** `x-api-key` - **Location:** HTTP Header - **Get an API key:** https://app.piloterr.com/register ## Example Request ```bash curl --location --request GET 'https://api.piloterr.com/v2/olx/search' \ --header 'Content-Type: application/json' \ --header 'x-api-key: YOUR_API_KEY' ``` ## Example Response ### iPhone search on olx.pl ```json { "results": [ { "id": 1108450056, "url": "https://www.olx.pl/d/oferta/iphone-12-pro-128gb-CID99-ID1d0VuI.html", "image": "https://ireland.apollo.olxcdn.com:443/v1/files/1prl3mlvg6oe2-PL/image;s=750x1000", "price": 600, "title": "Iphone 12 pro 128gb", "region": "pl", "currency": "PLN", "location": { "city": "Warszawa", "region": "Mazowieckie", "district": "Włochy" }, "condition": "Używane", "created_at": "2026-10-29T08:15:37+01:00", "negotiable": true, "is_business": false, "is_promoted": false, "price_display": "600 zł" } ], "pagination": { "next": "https://www.olx.pl/oferty/q-iphone/?page=2", "page": 1, "per_page": 39, "total_pages": 25, "total_results": 165505 } } ``` ## Documentation ## Overview OLX Search returns classified listings from OLX country sites that share the same listing page. Send a keyword or a search URL. The body is `{ results, pagination }` in snake_case. OLX repeats promoted slots on later pages. Search leaves those slots out, so page 1 and page 2 do not share listing ids. A highlighted organic listing can still have `is_promoted` true. ## Regions | `region` | Site | Search path | Usual currency | | --- | --- | --- | --- | | `pl` (default) | olx.pl | /oferty/ | PLN | | `ro` | olx.ro | /oferte/ | RON | | `pt` | olx.pt | /ads/ | EUR | | `bg` | olx.bg | /ads/ | EUR | | `ua` | olx.ua | /list/ | UAH | | `kz` | olx.kz | /list/ | KZT | | `uz` | olx.uz | /list/ | UZS | ## Quickstart ``` GET https://api.piloterr.com/v2/olx/search?query=iphone®ion=pl&page=1 GET https://api.piloterr.com/v2/olx/search?query=iphone&page=2 ``` Placeholders: `query` such as `iphone`, `region` such as `pl`, `page` such as `2`. ## Parameters | Parameter | Type | Required | Placeholder | Description | | --- | --- | --- | --- | --- | | query | string | yes | `iphone` | Keyword or search URL | | region | string | no | `pl` | Country code. Default `pl`. | | page | integer | no | `2` | Page number from 1 | | return_page_source | boolean | no | `false` | Raw HTML | ## Response fields Each result has id, title, url, price, price_display, currency, location, and region. Pagination has page, per_page, total_results, total_pages, and next. ## Main use cases - Scan iPhones or cars on OLX Poland - Read the same keyword on OLX Romania in lei - Take an ad id into the ad call ## Error codes 400 invalid input. 403 block page. 404 no parsable listings. 500 fetch failure.