Skip to the content
EnrichedNowDocs

    Type to search every page.

    Menu

    Scraper APIOLX

    olx.search

    A page of the adverts an OLX site finds for a search, in seven countries: title, full text, price, attributes, place, photos and whether the seller is a business.

    Id
    olx.search
    Version
    1
    Billed per
    request — 1 unit for a charged run
    Runs
    within one request

    Start it with POST /v1/scrapers/olx.search/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.

    Inputs of olx.search
    FieldTypeDescription
    queryrequiredstringWhat to search for, in the site's language, e.g. rower.Limit: at least 1 characters, at most 200 characters.
    country"pl" | "ua" | "ro" | "bg" | "pt" | "kz" | "uz"The OLX site to search, by country: pl (olx.pl), ua (olx.ua), ro (olx.ro), bg (olx.bg), pt (olx.pt), kz (olx.kz), uz (olx.uz).Default: "pl".
    sort"relevance" | "newest" | "price_low" | "price_high"The order of the results.Default: "relevance".
    pageintegerThe results page, from 1; 40 adverts a page beside the promoted ones, and OLX serves at most 25 pages.Limit: 1 to 25. Default: 1.

    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.

    Record fields of olx.search
    FieldTypeNotes
    positioninteger or nullThe advert's place on its results page, from 1. Null for olx.listing.
    pageinteger or nullThe results page the advert is on. Null for olx.listing.
    listing_idstringOLX's id of the advert.
    countrystringThe OLX site the advert is on, as a two-letter country code: pl, ua, ro, bg, pt, kz, uz.
    urlstringThe advert's page.
    titlestringThe advert's title.
    descriptionstring or nullThe advert's text, with line breaks kept.
    pricenumber or nullThe 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.
    currencystring or nullThe price's currency as OLX names it, e.g. PLN, UAH, EUR, RON.
    price_labelstring or nullThe price as the advert prints it, e.g. 9 999 zł, Za darmo.
    previous_pricenumber or nullThe price before the seller lowered it, where the search results show one. Null from olx.listing.
    is_freeboolean or nullTrue when the item is given away.
    is_exchangeboolean or nullTrue when the item is offered in exchange for another.
    attributesarray of objectThe advert's attributes other than its price, in its order: condition, brand, size, and whatever its category asks for.
    name (in attributes[])stringThe attribute's name as the advert shows it, in the site's language, e.g. Stan, Marka.
    value (in attributes[])stringIts value as the advert shows it, e.g. Używane, 250 W.
    category_idinteger or nullOLX's id of the category the advert is in.
    citystring or nullThe city or town the advert is in.
    districtstring or nullThe district of the city, where the advert names one.
    regionstring or nullThe region or province.
    latitudenumber or nullThe latitude of the point the advert's map is centred on, in decimal degrees. The map shows an area, not an address.
    longitudenumber or nullThe longitude of that point.
    photosarray of stringThe advert's photos, at full size, in its order.
    created_atstring (date-time) or nullWhen the advert was first published.
    refreshed_atstring (date-time) or nullWhen the advert was last renewed or moved up.
    valid_untilstring (date-time) or nullWhen the advert expires unless it is renewed.
    is_promotedboolean or nullTrue for an advert the seller paid to have shown at the top.
    is_businessboolean or nullTrue when the seller is a business account; false for a private seller.
    seller_namestring or nullThe company name a business account states. Null for a private seller and for a business that states none.
    statusstring or nullThe advert's state as OLX names it, e.g. active.
    fetched_atstring (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.search/runs?wait=60" \
      -H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{"input":{"query":"rower","country":"pl"}}'
    
    # 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.search", {"query": "rower", "country": "pl"})
    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.search", { query: "rower", country: "pl" });
    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.search", map[string]any{"query": "rower", "country": "pl"})
    	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.search", Map.of("query", "rower", "country", "pl"));
            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.search --input query=rower --input country=pl

    Install 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:

    JSON
    {
      "input": {
        "query": "rower",
        "country": "pl"
      }
    }

    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.search",
      "scraper_version": 1,
      "status": "ok",
      "reason": null,
      "input": {
        "query": "rower",
        "country": "pl"
      },
      "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": 1,
          "page": 1,
          "listing_id": "1106543889",
          "country": "pl",
          "url": "https://www.olx.pl/d/oferta/na-sprzedaz-rower-gorski-giant-talon-4-CID767-ID1cSVC5.html",
          "title": "Na sprzedaż: Rower górski Giant Talon 4",
          "description": "Na sprzedaż trafia niezawodny hardtail Giant Talon 4 w rzucającym się w oczy, dynamicznym kolorze Amber Glow (pomarańczowy/neonowy czerwony). Rower idealny zarówno na weekendowe wypady do lasu, jak i na codzienne dojazdy.\nRower jest w pełni … [truncated]",
          "price": 950,
          "currency": "PLN",
          "price_label": "950 zł",
          "previous_price": null,
          "is_free": false,
          "is_exchange": false,
          "attributes": [
            {
              "name": "Stan",
              "value": "Używane"
            },
            {
              "name": "Płeć",
              "value": "Uniseks"
            },
            {
              "name": "Wyposażenie dodatkowe",
              "value": "Dzwonek"
            }
          ],
          "category_id": 1651,
          "city": "Siedlisko",
          "district": null,
          "region": "Lubuskie",
          "latitude": 51.76621,
          "longitude": 15.80915,
          "photos": [
            "https://ireland.apollo.olxcdn.com:443/v1/files/5062kb2a9qtr-PL/image;s=1024x768",
            "https://ireland.apollo.olxcdn.com:443/v1/files/cdoaw0qx87ph2-PL/image;s=1024x768",
            "https://ireland.apollo.olxcdn.com:443/v1/files/2b1i37x5b8dt2-PL/image;s=1024x768"
          ],
          "created_at": "2026-10-21T18:03:00+02:00",
          "refreshed_at": "2026-10-31T16:51:22+01:00",
          "valid_until": "2026-11-20T17:03:01+01:00",
          "is_promoted": true,
          "is_business": false,
          "seller_name": null,
          "status": "active",
          "fetched_at": "2026-11-19T18:07:41.028470Z"
        }
      ],
      "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,172 characters, the first 240 shown.
    • Shortened: attributes: 11 items, the first 3 shown.
    • Shortened: photos: 7 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.