OLX APIolx.ua ↗
Access OLX.ua marketplace listings via API. Search by keyword or category to retrieve pricing, seller info, location, images, and contact availability.
What is the OLX API?
The OLX.ua API provides 2 endpoints for searching and browsing classified listings on Ukraine's OLX marketplace. The search endpoint runs full-text queries across listing titles and descriptions, returning structured objects with price, location, seller profile, images, and contact availability. The get_second_hand endpoint lets you browse category-scoped listings without a text query, defaulting to Electronics (category 37).
curl -X GET 'https://api.parse.bot/scraper/85e8a38f-8808-4d09-959c-b7a5add67b5c/search?limit=5&query=laptop&offset=0&category_id=37' \ -H 'X-API-Key: $PARSE_API_KEY'
Typed, relational, agent-ready
A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.
- Fully typed · autocompletes
- Objects link to objects
- Typed errors & pagination
Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:
uv add parse-sdk uv run parse init uv run parse add --marketplace olx-ua-api
uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.
"""Walkthrough: OLX Ukraine SDK — search and browse marketplace listings."""
from parse_apis.olx_ukraine_api import OLX, Category, ListingNotFound
client = OLX()
# Search for laptops — limit caps total items fetched.
for listing in client.listings.search(query="laptop", limit=3):
print(listing.title, listing.price.label, listing.location.city)
# Browse electronics category using the Category enum.
item = client.listings.browse(category_id=Category.ELECTRONICS, limit=1).first()
if item:
print(item.title, item.price.amount, item.user.name)
print(item.created_at, item.has_phone_btn)
# Typed error handling around a search call.
try:
for listing in client.listings.search(query="vintage radio", category_id=Category.HOBBY, limit=2):
print(listing.id, listing.title, listing.price.currency)
except ListingNotFound as exc:
print(f"Not found: {exc}")
print("exercised: listings.search / listings.browse with Category enum")Full-text search over OLX.ua listings. query matches title and description; category_id narrows to one category. Paginates via offset. Each Listing includes price, location, seller info, contact availability, and images. Returns up to limit items per page with a total count capped at 1000 by the upstream API.
| Param | Type | Description |
|---|---|---|
| limit | integer | Maximum number of results per page |
| query | string | Search keyword or phrase |
| offset | integer | Pagination offset (number of items to skip) |
| category_id | integer | Category ID to filter results |
{
"type": "object",
"fields": {
"total": "integer total number of matching listings (capped at 1000)",
"listings": "array of Listing objects with id, title, description, price, url, location, user, created_at, last_refresh, has_phone_btn, emails_found, phones_found_in_desc, images"
}
}About the OLX API
Endpoints and Core Data Shape
Both endpoints return the same Listing object shape: id, title, description, price, url, location, user, created_at, last_refresh, has_phone_btn, and emails_. The search endpoint accepts a query string for full-text matching against listing titles and descriptions, with an optional category_id to narrow results to a specific category. The get_second_hand endpoint skips the text query entirely and browses a category directly — useful for surfacing all active listings in a given segment without keyword bias.
Pagination and Coverage
Both endpoints paginate via an offset parameter and return an integer total reflecting the number of matching listings, capped at 1,000. A limit parameter on search controls how many items appear per page. This makes it straightforward to walk through result sets in batches. Keep in mind the 1,000-listing cap on total — deep catalog scans beyond that threshold are not supported.
Seller and Contact Fields
Each listing includes a user object with seller details and a has_phone_btn boolean indicating whether the listing surfaces a phone contact option. The emails_ field provides email contact data where available. created_at and last_refresh timestamps let you distinguish newly posted listings from older ones that have been recently re-promoted, which matters when tracking inventory freshness.
The OLX API is a managed, monitored endpoint for olx.ua — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when olx.ua changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.
This isn't an official olx.ua API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.
Will this API break when the source site changes?+
Is this an official API from the source site?+
Can I fix or extend this API myself if I need a new endpoint or field?+
What happens if I call an endpoint that has an issue?+
- Monitor price trends for a specific product type by running repeated
searchqueries and recording thepricefield over time. - Build a category inventory snapshot by paginating through
get_second_handwith a givencategory_idto collect all active listings. - Identify seller contact availability by filtering listings where
has_phone_btnis true oremails_is populated. - Compare listing freshness using
created_atvslast_refreshto detect re-promoted older listings versus genuinely new ones. - Aggregate location data from the
locationfield to map regional supply concentration for a given product. - Track competitor pricing on OLX.ua by querying brand or model names via the
queryparameter and extractingpricevalues.
| Tier | Price | Credits/month | Rate limit |
|---|---|---|---|
| Free | $0/mo | 100 | 5 req/min |
| Hobby | $30/mo | 1,000 | 20 req/min |
| Developer | $100/mo | 5,000 | 100 req/min |
One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.
Does OLX.ua have an official developer API?+
What does the `search` endpoint return versus `get_second_hand`?+
search accepts a query string for full-text matching and an optional category_id, making it suitable for keyword-driven lookups. get_second_hand drops the text query and browses purely by category_id, defaulting to Electronics (category 37) when no category is specified. Both return the same Listing object shape including price, location, user, has_phone_btn, and image data.Is there a cap on how many listings I can retrieve?+
total field on both endpoints is capped at 1,000, regardless of how many listings actually exist in a given search or category. Pagination via offset works within that ceiling, so retrieving more than 1,000 results for a single query is not supported through the current endpoints.Does the API return individual listing detail pages or seller profile pages?+
url field pointing to the source page. You can fork this API on Parse and revise it to add a single-listing detail or seller-profile endpoint.