Skip to content
Scrappa Get API key
OLX Brazil API 1 credit / request

OLX Brazil Search API Documentation

GET https://scrappa.co/api/olx-br/search

OLX Brazil Search API searches public olx.com.br ads across all categories by query with page pagination. Category, location, price and sort are not upstream filters and return a non-billable 422; each row publishes the category OLX itself assigns. Each row carries id, title, numeric BRL price parsed from the locale string, original price, location, ISO 8601 date from Unix seconds, full-size image, seller type and category. A valid empty result is billed; every failure is not.

OLX Brazil Search API Documentation 1 credit / request

Endpoint

Request preview
GET
https://scrappa.co/api/olx-br/search
Auth header
x-api-key
Cost
1 credit / request
query = coffee shops
Response preview
200 OK
{
    "data": {
        "page": 1,
        "total": 58931,
        "results": [
            {
                "id": "1400000000",
                "url": "https://www.olx.com.br/carro-exemplo-1400000000",
                "image": "https://img.olx.com.br/images/abc/original.jpg",
                "price": {
                    "value": 947950,
                    "currency": "BRL"
                },
                "title": "Carro em bom estado",
...

Parameters

Start with the required fields, then add optional filters only when your use case needs them.

Runnable path

1 required parameter needed before sending a request.

1 optional filter available.

query string Required

Search words across all categories. Example: carro.

Example value coffee shops
page integer Optional

1-based page, 1 to 100.

Example value 1

Response Schema

Example response fields are illustrative; inspect the JSON before integrating.

Example response fields

Scan these fields before integrating.

data meta success
JSON Response
200 OK
{
    "data": {
        "page": 1,
        "total": 58931,
        "results": [
            {
                "id": "1400000000",
                "url": "https://www.olx.com.br/carro-exemplo-1400000000",
                "image": "https://img.olx.com.br/images/abc/original.jpg",
                "price": {
                    "value": 947950,
                    "currency": "BRL"
                },
                "title": "Carro em bom estado",
                "category": "Carros, vans e utilit\u00e1rios",
                "location": "Fortaleza, Parquel\u00e2ndia",
                "old_price": {
                    "value": 990000,
                    "currency": "BRL"
                },
                "attributes": [
                    {
                        "name": "Marca",
                        "value": "Fiat"
                    }
                ],
                "created_at": "2026-11-19T15:38:50Z",
                "seller_type": "private"
            }
        ],
        "next_page": 2,
        "total_of_ads": 58931,
        "applied_filters": {
            "query": "carro"
        },
        "applied_sorting": null
    },
    "meta": {
        "billable": true,
        "endpoint_family": "search"
    },
    "success": true
}

Errors

Handle these documented responses before retrying or showing customer-facing failures.

422

Validation Error

A parameter is missing or invalid. No upstream call and no charge.

{
    "meta": {
        "billable": false,
        "retryable": false,
        "endpoint_family": "search"
    },
    "error": {
        "code": "VALIDATION",
        "message": "The request validation failed"
    },
    "success": false
}
500

Parser Drift

OLX answered with a response shape this parser does not recognise. Never charged.

{
    "meta": {
        "billable": false,
        "retryable": false,
        "endpoint_family": "search"
    },
    "error": {
        "code": "PARSER_DRIFT",
        "message": "OLX response shape changed unexpectedly. The incident has been reported."
    },
    "success": false
}
503

Upstream Unavailable

The upstream service is temporarily unavailable. Please retry shortly.

{
    "meta": {
        "billable": false,
        "retryable": true,
        "endpoint_family": "search"
    },
    "error": {
        "code": "UPSTREAM_UNAVAILABLE",
        "message": "OLX upstream is temporarily unavailable."
    },
    "success": false
}

Generate Code with AI

Copy a ready-made prompt with all the endpoint details, parameters, and example responses. Paste it into ChatGPT, Claude, or any AI assistant to instantly generate working code.

Try It Live

Test this endpoint in our interactive playground with real data.