# 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.

OLX advert, one of the OLX scrapers.

| | |
| --- | --- |
| 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](https://docs.enrichednow.com/running-a-scraper.md); what a run costs is in [Usage and units](https://docs.enrichednow.com/usage-and-units.md).

## Inputs

The fields of `input`. A field that is not listed here is refused.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `url` | string | yes | 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. |
| `attributes[].name` | string | The attribute's name as the advert shows it, in the site's language, e.g. `Stan`, `Marka`. |
| `attributes[].value` | 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

It starts a run with this scraper's example input and waits up to 60 seconds for it. The key is read from `ENRICHEDNOW_API_KEY`.

```bash
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"}}'
```

## 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`.

```json
{
  "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.

```json
{
  "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](https://docs.enrichednow.com/results-and-statuses.md#reason-codes) lists every status and the reasons every scraper shares; [the reasons of the OLX scrapers](https://docs.enrichednow.com/results-and-statuses.md#olx) are in their own section there.
