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

OLX India Search API Documentation

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

OLX India Search API searches public olx.in ads by keyword, category, location, vehicle filters and price. Each row carries id, title, description, numeric INR price with currency, location, ISO 8601 creation date, full-size image, seller type, parameters and extra car fields. Pagination uses a 1-based page with 20 rows per page. meta.applied_filters and meta.applied_sorting report what the upstream actually applied. Seller names, phone numbers and contact data are never returned. A valid empty result is billed; every failure is not.

OLX India Search API Documentation 1 credit / request

Endpoint

Request preview
GET
https://scrappa.co/api/olx-in/search
Auth header
x-api-key
Cost
1 credit / request
query = coffee shops
Response preview
200 OK
{
    "data": {
        "page": 1,
        "total": 20306,
        "results": [
            {
                "id": 1859483881,
                "image": "https://images.olxcdn.com/v1/files/abc-IN/image;s=800x600",
                "price": {
                    "value": 85000,
                    "currency": "INR"
                },
                "title": "iPhone 13 128GB",
                "location": {
...

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.

14 optional filters available.

query string Required

Search keywords. Example: iphone.

Example value coffee shops
category integer Optional

Public category id. Cars is 84.

Example value 10
location integer Optional

Public location id, default 1000001.

Example value Austin, Texas
price_min number Optional

Minimum INR price.

Example value 10
price_max number Optional

Maximum INR price.

Example value 10
year_min integer Optional

Minimum vehicle year.

Example value 10
year_max integer Optional

Maximum vehicle year.

Example value 10
mileage_min integer Optional

Minimum mileage.

Example value 10
mileage_max integer Optional

Maximum mileage.

Example value 10
transmission string Optional

Transmission filter.

Example value example
first_owner boolean Optional

Only first-owner ads.

Example value true
make string Optional

Vehicle make.

Example value example
model string Optional

Vehicle model.

Example value example
sorting string Optional

asc-price, desc-price, desc-creation or asc-creation.

Example value example
page integer Optional

1-based page, default 1.

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": 20306,
        "results": [
            {
                "id": 1859483881,
                "image": "https://images.olxcdn.com/v1/files/abc-IN/image;s=800x600",
                "price": {
                    "value": 85000,
                    "currency": "INR"
                },
                "title": "iPhone 13 128GB",
                "location": {
                    "city": "Bengaluru",
                    "text": "Bengaluru, Karnataka",
                    "state": "Karnataka"
                },
                "created_at": "2026-11-18T09:12:00Z",
                "parameters": [
                    {
                        "key": "brand",
                        "value": "Apple"
                    }
                ],
                "description": "Good condition, box included.",
                "seller_type": "private",
                "display_date": "18 Nov, 09:12"
            }
        ],
        "total_ads": 20306,
        "ads_on_page": 20,
        "total_pages": 1016,
        "next_page_url": "https://api.olx.in/relevance/v4/search?page=2",
        "applied_filters": {
            "category": "84"
        },
        "applied_sorting": "asc-price"
    },
    "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.