Scraper APIOLX
olx.listing
One advert on an OLX site, by its page: title, full text, price, attributes, place, photos, dates and whether the seller is a business.
- Id
olx.listing- Version
- 1
- Billed per
- request — 1 unit for a charged run
- Runs
- within one request
Start it with POST /v1/scrapers/olx.listing/runs. How runs work is in Running a scraper; what a run costs is in Usage and units.
Inputs
The fields of input. A field that is not listed here is refused.
| Field | Type | Description |
|---|---|---|
urlrequired | string | The address of the advert's page on olx.pl, olx.ua, olx.ro, olx.bg, olx.pt, olx.kz or olx.uz, e.g. https://www.olx.pl/d/oferta/<name>.html.Limit: at least 1 characters, at most 600 characters. |
Record fields
Every record of a run has these fields. A value that is not known is null — never an empty string and never 0.
| Field | Type | Notes |
|---|---|---|
position | integer or null | The advert's place on its results page, from 1. Null for olx.listing. |
page | integer or null | The results page the advert is on. Null for olx.listing. |
listing_id | string | OLX's id of the advert. |
country | string | The OLX site the advert is on, as a two-letter country code: pl, ua, ro, bg, pt, kz, uz. |
url | string | The advert's page. |
title | string | The advert's title. |
description | string or null | The advert's text, with line breaks kept. |
price | number or null | The asking price. Null when the advert states none (given away, offered in exchange). For an advert priced in another currency than the site's own, OLX states the price in both: this is one of the two, in currency, and price_label is the other as printed. |
currency | string or null | The price's currency as OLX names it, e.g. PLN, UAH, EUR, RON. |
price_label | string or null | The price as the advert prints it, e.g. 9 999 zł, Za darmo. |
previous_price | number or null | The price before the seller lowered it, where the search results show one. Null from olx.listing. |
is_free | boolean or null | True when the item is given away. |
is_exchange | boolean or null | True when the item is offered in exchange for another. |
attributes | array of object | The advert's attributes other than its price, in its order: condition, brand, size, and whatever its category asks for. |
name (in attributes[]) | string | The attribute's name as the advert shows it, in the site's language, e.g. Stan, Marka. |
value (in attributes[]) | string | Its value as the advert shows it, e.g. Używane, 250 W. |
category_id | integer or null | OLX's id of the category the advert is in. |
city | string or null | The city or town the advert is in. |
district | string or null | The district of the city, where the advert names one. |
region | string or null | The region or province. |
latitude | number or null | The latitude of the point the advert's map is centred on, in decimal degrees. The map shows an area, not an address. |
longitude | number or null | The longitude of that point. |
photos | array of string | The advert's photos, at full size, in its order. |
created_at | string (date-time) or null | When the advert was first published. |
refreshed_at | string (date-time) or null | When the advert was last renewed or moved up. |
valid_until | string (date-time) or null | When the advert expires unless it is renewed. |
is_promoted | boolean or null | True for an advert the seller paid to have shown at the top. |
is_business | boolean or null | True when the seller is a business account; false for a private seller. |
seller_name | string or null | The company name a business account states. Null for a private seller and for a business that states none. |
status | string or null | The advert's state as OLX names it, e.g. active. |
fetched_at | string (date-time) | When the advert was read, in UTC. |
Example request
# Start a run and wait up to 60 seconds for it to finish
curl -X POST "https://api.enrichednow.com/v1/scrapers/olx.listing/runs?wait=60" \
-H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"url":"https://www.olx.pl/d/oferta/stalowy-gravel-nordest-albarda-2-grx-820-12rz-dt-swiss-ritchey-pirelli-CID767-ID1aj6VL.html"}}'
# Read its records, with the id the first call answered
curl "https://api.enrichednow.com/v1/runs/$RUN_ID/records?limit=100" \
-H "Authorization: Bearer $ENRICHEDNOW_API_KEY"from enrichednow import EnrichedNow
client = EnrichedNow() # reads ENRICHEDNOW_API_KEY
# Start a run, wait for it to end, and get its records
result = client.scrape("olx.listing", {
"url": "https://www.olx.pl/d/oferta/stalowy-gravel-nordest-albarda-2-grx-820-12rz-dt-swiss-ritchey-pirelli-CID767-ID1aj6VL.html",
})
print(result.run.id, result.run.status, result.run.record_count)
# Read its records: pages are fetched as you go
for record in result.records:
print(record)Install it with pip install enrichednow, then save as run.py and run python3 run.py
import EnrichedNow from "enrichednow";
const client = new EnrichedNow(); // reads ENRICHEDNOW_API_KEY
// Start a run, wait for it to end, and get its records
const { run, records } = await client.scrape("olx.listing", {
url: "https://www.olx.pl/d/oferta/stalowy-gravel-nordest-albarda-2-grx-820-12rz-dt-swiss-ritchey-pirelli-CID767-ID1aj6VL.html",
});
console.log(run.id, run.status, run.record_count);
// Read its records: pages are fetched as you go
for await (const record of records) console.log(record);Install it with npm install enrichednow, then save as run.mjs and run node run.mjs
package main
import (
"context"
"fmt"
"log"
"time"
enrichednow "github.com/enrichednow/enrichednow-go"
)
func main() {
client, err := enrichednow.NewClient() // reads ENRICHEDNOW_API_KEY
if err != nil {
log.Fatal(err)
}
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Minute)
defer cancel()
// Start a run, wait for it to end, and get its records
run, records, err := client.Scrape(ctx, "olx.listing", map[string]any{"url": "https://www.olx.pl/d/oferta/stalowy-gravel-nordest-albarda-2-grx-820-12rz-dt-swiss-ritchey-pirelli-CID767-ID1aj6VL.html"})
if err != nil {
log.Fatal(err)
}
fmt.Println(run.ID, run.Status, run.RecordCount)
// Read its records: pages are fetched as you go
for records.Next() {
fmt.Println(string(records.Current()))
}
if err := records.Err(); err != nil {
log.Fatal(err)
}
}Install it with go get github.com/enrichednow/enrichednow-go@latest, then save as run.go and run go run run.go
import com.enrichednow.EnrichedNowClient;
import com.enrichednow.ScrapeResult;
import java.util.Map;
public class Run {
public static void main(String[] args) {
EnrichedNowClient client = EnrichedNowClient.fromEnv(); // reads ENRICHEDNOW_API_KEY
// Start a run, wait for it to end, and get its records
ScrapeResult result = client.scrape("olx.listing", Map.of("url", "https://www.olx.pl/d/oferta/stalowy-gravel-nordest-albarda-2-grx-820-12rz-dt-swiss-ritchey-pirelli-CID767-ID1aj6VL.html"));
System.out.println(result.run().id() + " " + result.run().status() + " " + result.run().recordCount());
// Read its records: pages are fetched as you go
for (Map<String, Object> record : result.records()) {
System.out.println(record);
}
}
}Add com.enrichednow:enrichednow-java:0.4.0 to your Maven or Gradle build, then save as Run.java
enrichednow run olx.listing --input url=https://www.olx.pl/d/oferta/stalowy-gravel-nordest-albarda-2-grx-820-12rz-dt-swiss-ritchey-pirelli-CID767-ID1aj6VL.htmlInstall it with curl -fsSL https://raw.githubusercontent.com/enrichednow/enrichednow-cli/main/install.sh | sh
It starts a run with this scraper’s example input, waits for it to finish and reads its records a page at a time. The key is read from ENRICHEDNOW_API_KEY.
The body on its own:
{
"input": {
"url": "https://www.olx.pl/d/oferta/stalowy-gravel-nordest-albarda-2-grx-820-12rz-dt-swiss-ritchey-pirelli-CID767-ID1aj6VL.html"
}
}Example response
The run, once it has ended. A run that has not ended within wait comes back with 202 and the status queued or running.
{
"id": "run_841742f37553189ff9c27ba1",
"scraper_id": "olx.listing",
"scraper_version": 1,
"status": "ok",
"reason": null,
"input": {
"url": "https://www.olx.pl/d/oferta/stalowy-gravel-nordest-albarda-2-grx-820-12rz-dt-swiss-ritchey-pirelli-CID767-ID1aj6VL.html"
},
"record_count": 1,
"units": 1,
"units_per_request": 1,
"units_per_record": null,
"units_per_page": null,
"diagnostics": {
"requests": 1,
"bytes": 259214,
"wall_ms": 885,
"facts": {}
},
"created_at": "2026-11-16T22:37:50.170950Z",
"started_at": "2026-11-16T22:37:50.178331Z",
"finished_at": "2026-11-16T22:37:51.066313Z"
}Its records, from GET /v1/runs/{id}/records. The record is a real one: this scraper's own parser read it from a page recorded from the site.
{
"records": [
{
"position": null,
"page": null,
"listing_id": "1068451131",
"country": "pl",
"url": "https://www.olx.pl/d/oferta/stalowy-gravel-nordest-albarda-2-grx-820-12rz-dt-swiss-ritchey-pirelli-CID767-ID1aj6VL.html",
"title": "Stalowy gravel Nordest Albarda 2 GRX 820 12rz, DT SWISS, Ritchey, Pirelli",
"description": "Sprzedam świetnego gravela złożonego na hiszpańskiej stalowej ramie z widelcem Nordest Albarda 2. Rower ma 3 lata i przejechane ok 1200km. Stan techniczny jest wzorowy, wizualnie są drobne przetarcia w zewnętrznej powłoce lakierniczej na … [truncated]",
"price": 9999,
"currency": "PLN",
"price_label": "9 999 zł",
"previous_price": null,
"is_free": false,
"is_exchange": false,
"attributes": [
{
"name": "Stan",
"value": "Używane"
},
{
"name": "Marka",
"value": "Inna"
},
{
"name": "Kolor",
"value": "Inny"
}
],
"category_id": 4242,
"city": "Biedrusko",
"district": null,
"region": "Wielkopolskie",
"latitude": 52.53832,
"longitude": 16.9412,
"photos": [
"https://ireland.apollo.olxcdn.com:443/v1/files/impeptuq0nv4-PL/image;s=2000x1500",
"https://ireland.apollo.olxcdn.com:443/v1/files/ntv1suck8lzl1-PL/image;s=2000x1500",
"https://ireland.apollo.olxcdn.com:443/v1/files/0sjk8k9fxxcx-PL/image;s=4000x3000"
],
"created_at": "2026-04-21T12:14:14+02:00",
"refreshed_at": "2026-11-18T17:04:02+01:00",
"valid_until": "2026-12-16T17:03:59+01:00",
"is_promoted": true,
"is_business": false,
"seller_name": null,
"status": "active",
"fetched_at": "2026-11-19T18:07:41.024693Z"
}
],
"next_cursor": null
}What was done to the record for this page, and nothing else — the API returns every value whole. A text that was cut ends with … [truncated].
- Shortened:
description: 1,078 characters, the first 237 shown. - Shortened:
attributes: 8 items, the first 3 shown. - Shortened:
photos: 12 items, the first 3 shown.
A run does not always end ok. Results and statuses lists every status and the reasons every scraper shares; the reasons of the OLX scrapers are in their own section there.