# OLX India Search API Documentation

<p><strong>OLX India Search API</strong> 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.</p>

- **Documentation:** [https://scrappa.co/docs/olx-in-api/olx_in_search](https://scrappa.co/docs/olx-in-api/olx_in_search)
- **API group:** OLX India API
- **Endpoint:** `GET https://scrappa.co/api/olx-in/search`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `query` | string | Yes | Search keywords. Example: iphone. |
| `category` | integer | No | Public category id. Cars is 84. |
| `location` | integer | No | Public location id, default 1000001. |
| `price_min` | number | No | Minimum INR price. |
| `price_max` | number | No | Maximum INR price. |
| `year_min` | integer | No | Minimum vehicle year. |
| `year_max` | integer | No | Maximum vehicle year. |
| `mileage_min` | integer | No | Minimum mileage. |
| `mileage_max` | integer | No | Maximum mileage. |
| `transmission` | string | No | Transmission filter. |
| `first_owner` | boolean | No | Only first-owner ads. |
| `make` | string | No | Vehicle make. |
| `model` | string | No | Vehicle model. |
| `sorting` | string | No | asc-price, desc-price, desc-creation or asc-creation. |
| `page` | integer | No | 1-based page, default 1. |

## Example response

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

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A parameter is missing or invalid. No upstream call and no charge. |
| 500 | Parser Drift | OLX answered with a response shape this parser does not recognise. Never charged. |
| 503 | Upstream Unavailable | The upstream service is temporarily unavailable. Please retry shortly. |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
