---
title: "OLX India API: classified ad search as JSON | Perceptlayer"
description: "OLX India API for classified ad search by keyword, location, price, year and mileage, plus full listings and location ids as JSON. 1 credit per call."
url: https://perceptlayer.com/apis/olx-in
---

[APIs](https://perceptlayer.com/apis) / [Marketplaces](https://perceptlayer.com/verticals/marketplaces) / OLX India

1 credit per call 3 endpoints 12 datapoints 

# OLX India API

OLX India API for classified ad search by keyword, location, price, year and mileage, plus full listings and location ids as JSON. 1 credit per call.

[Get a free API key](https://perceptlayer.com/signup) Run it below

OLX India

GET /v1/olx-in/search?query=iphone 

```
{
  "success": true,
  "data": {
    "total": 115246,
    "total_ads": 115246,
    "ads_on_page": 20,
    "total_pages": 481,
    "page": 1,
    "applied_sorting": "desc-creation",
    "next_page_url": "https://api.olx.in/relevance/v4/search?clientId=pwa&query=iphone&limit=20&location=1000001&page=2",
    "results": [
      {
        "id": "1862769316",
        "title": "16 PRO | 512GB",
        "description": "• Excellent overall condition.\n• Minor spot on the edge of the screen.\n• Scratch-free laminated body.\n• Original box available.",
        "created_at": "2026-11-27T09:56:40Z",
        "display_date": "2026-11-27T09:56:40+0000",
        "price": {
          "value": 75000,
          "currency": "INR"
        },
        "location": {
          "city": "Govind Vihar",
          "state": "Punjab",
          "text": "Govind Vihar, Punjab"
        },
        "image": "https://apollo.olx.in:443/v1/files/zgsoolpsh2lm3-IN/image",
        "images": [
          "https://apollo.olx.in:443/v1/files/zgsoolpsh2lm3-IN/image",
          "https://apollo.olx.in:443/v1/files/l0s6s0mokzdm1-IN/image",
          "https://apollo.olx.in:443/v1/files/dqtwmfy4mhad3-IN/image"
        ],
        "seller_type": "private",
        "parameters": [
          {
            "key": "make",
            "name": "make",
            "value": "iphone"
          }
        ],
        "category_id": 1453
      },
      {
        "id": "1862147760",
        "title": "Iphone 16pro max",
        "description": "**APPLE iPHONE 16 PRO MAX – FOR SALE** \n\n Model: iPhone 16 Pro Max  \n Storage: 256GB  \n Battery Health: 95%  \n Cycle Count: 286  \n Manufacturing: September 2024  \n First Use: November 2025  \n⚙️ iOS Version: 18.0  \n️ Warranty: Expires 21 Nov…",
        "created_at": "2026-11-20T06:39:19Z",
        "display_date": "2026-11-20T06:39:19+0000",
        "price": {
          "value": 78000,
          "currency": "INR"
        },
        "location": {
          "city": "Dharmapuram",
          "state": "Tamil Nadu",
          "text": "Dharmapuram, Tamil Nadu"
        },
        "image": "https://apollo.olx.in:443/v1/files/pcbi1jdv8ywe2-IN/image",
        "images": [
          "https://apollo.olx.in:443/v1/files/pcbi1jdv8ywe2-IN/image",
          "https://apollo.olx.in:443/v1/files/y8t5xxk9dksi2-IN/image",
          "https://apollo.olx.in:443/v1/files/yvp9jiqfja1k-IN/image"
        ],
        "seller_type": "private",
        "parameters": [
          {
            "key": "make",
            "name": "make",
            "value": "iphone"
          }
        ],
        "category_id": 1453
      },
      {
        "id": "1806290461",
        "title": "GENUINE APPLE IPHONE 5S & 5C IN BOX PACKING – RARE FIND!! BUY",
        "description": "GENUINE APPLE IPHONE 5S & 5C IN BOX PACKING – RARE FIND!! BUY NOW!!\nIPHONE 5S&5C BOX PACKED AND UNUSED UNIT AVAILABLE FOR SALE!!\n\n● INSTAGRAM : galaxygurugram\n\n● APPLE \n•Iphone 5s 16gb boxpack with all accesories Rs. 4500\n64gb Rs. 5500\n•Iph…",
        "created_at": "2026-11-10T17:09:24Z",
        "display_date": "2026-11-10T17:09:24+0000",
        "price": {
          "value": 4500,
          "currency": "INR"
        },
        "location": {
          "city": "Ghitorni",
          "state": "Delhi",
          "text": "Ghitorni, Delhi"
        },
        "image": "https://apollo.olx.in:443/v1/files/4eemmoh8pdi5-IN/image",
        "images": [
          "https://apollo.olx.in:443/v1/files/4eemmoh8pdi5-IN/image"
        ],
        "seller_type": "private",
        "parameters": [
          {
            "key": "make",
            "name": "make",
            "value": "iphone"
          }
        ],
        "category_id": 1453
      }
    ]
  },
  "meta": {
    "endpoint_family": "search",
    "request_id": "req_f9b4a207cb4e4406a7fd9f09508385cf",
    "credits_charged": 1,
    "credits_remaining": 4876
  }
}
```

200 OK JSON X-Credits-Used: 1

Recorded from our API and shortened.

Sample data

## What one call returns

A recorded run of `search`: the fields and shapes you will get, shortened to 3 items.

| # | id string | title string | description string | created\_at string | display\_date string | price object | location object | image url | images string\[\] | seller\_type string | parameters object\[\] | category\_id integer |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| 1 | 1862769316 | 16 PRO \| 512GB | • Excellent overall condition. • Minor spot on the edge of the screen. • Scratch-free laminated body. • Original box available. | 2026-11-27T09:56:40Z | 2026-11-27T09:56:40+0000 | {2 fields} | {3 fields} | https://apollo.olx.in:443/v1/files/zgsoolpsh2lm3-IN/image | \[3 items\] | private | \[1 item\] | 1453 |
| 2 | 1862147760 | Iphone 16pro max | \*\*APPLE iPHONE 16 PRO MAX – FOR SALE\*\* Model: iPhone 16 Pro Max Storage: 256GB Battery Health: 95% Cycle Count: 286 Manufacturing: September 2024 First Use: November 2025 ⚙️ iOS Version: 18.0 ️ Warranty: Expires 21 Nov… | 2026-11-20T06:39:19Z | 2026-11-20T06:39:19+0000 | {2 fields} | {3 fields} | https://apollo.olx.in:443/v1/files/pcbi1jdv8ywe2-IN/image | \[3 items\] | private | \[1 item\] | 1453 |
| 3 | 1806290461 | GENUINE APPLE IPHONE 5S & 5C IN BOX PACKING – RARE FIND!! BUY | GENUINE APPLE IPHONE 5S & 5C IN BOX PACKING – RARE FIND!! BUY NOW!! IPHONE 5S&5C BOX PACKED AND UNUSED UNIT AVAILABLE FOR SALE!! ● INSTAGRAM : galaxygurugram ● APPLE •Iphone 5s 16gb boxpack with all accesories Rs. 4500 64gb Rs. 5500 •Iph… | 2026-11-10T17:09:24Z | 2026-11-10T17:09:24+0000 | {2 fields} | {3 fields} | https://apollo.olx.in:443/v1/files/4eemmoh8pdi5-IN/image | \[1 item\] | private | \[1 item\] | 1453 |

Recorded from our API · 3 items shown · 12 datapoints per item GET /v1/olx-in/search?query=iphone

12 datapoints

### Identity

-   id string
-   title string
-   category\_id integer

### Contact

-   seller\_type string

### Location

-   location object

### Reputation

-   image url
-   images string\[\]

### Price

-   price object

### Other

-   description string
-   created\_at string
-   display\_date string
-   parameters object\[\]

Playground

## Run this API

cURL shell 

```
curl "https://api.perceptlayer.com/v1/olx-in/search?query=iphone" \
  -H "X-API-Key: $API_KEY"
```

OLX India · 3 endpoints

## Endpoints

Every endpoint takes the same key. Open one for its parameters, the fields it returns and an example request.

| Endpoint | Required parameters | Returns | Cost |
| --- | --- | --- | --- |
| [GET `/v1/olx-in/listing`](https://perceptlayer.com/apis/olx-in/listing) | `id` | `id` `title` `description` `created_at` `display_date` `price` +7 more | 1 credit |
| [GET `/v1/olx-in/locations`](https://perceptlayer.com/apis/olx-in/locations) | none | `id` `name` `type` `parent_id` `children_count` `latitude` +1 more | 1 credit |
| [GET `/v1/olx-in/search`](https://perceptlayer.com/apis/olx-in/search) | `query` +14 optional | `ads_on_page` `applied_sorting` `results` | 1 credit |

Overview

## About the OLX India API

## What you can get

The OLX India API returns classified ads from OLX India as JSON through 3 endpoints. Prices are in INR.

-   **Search:** `search` takes a `query`, with `category`, `location`, `price_min`, `price_max`, `sorting` (asc-price, desc-price, desc-creation or asc-creation) and `page`. For cars it also takes `year_min`, `year_max`, `mileage_min`, `mileage_max`, `transmission`, `first_owner`, `make` and `model`.
-   **Listings:** `listing` takes an ad `id`.
-   **Locations:** `locations` lists Indian states with their location ids and coordinates.

The recorded search for "iphone" returns `results`, each with `id`, `title`, `description`, `created_at`, `price` ( `value` and `currency`), `location` ( `city` and `state`), `images`, `seller_type`, `parameters` and `category_id`, 20 per page. It reported 115,162 ads over 480 pages, newest first. The recorded `listing` was an iPhone 13 128GB from a private seller at 31,999 INR.

## How a call works

Search, then open an ad: `GET /v1/olx-in/search?query=iphone` with your key in the `X-API-Key` header returns each ad's `id`. Pass it to `listing`, for example `GET /v1/olx-in/listing?id=1846940204`. To search one state, take its `id` from `locations` and pass it as `location`. Use `total_pages` to know how many `page` values exist. Every successful call costs 1 credit; failed calls cost nothing.

Marketplaces JSON REST MCP

### More marketplaces APIs

[About You](https://perceptlayer.com/apis/about-you) [adidas](https://perceptlayer.com/apis/adidas) [Albert Heijn](https://perceptlayer.com/apis/albert-heijn) [ALDI SÜD](https://perceptlayer.com/apis/aldi-sued) [Alibaba](https://perceptlayer.com/apis/alibaba) [AliExpress](https://perceptlayer.com/apis/aliexpress) [Allegro](https://perceptlayer.com/apis/allegro) [ALTERNATE](https://perceptlayer.com/apis/alternate) [Alza](https://perceptlayer.com/apis/alza) [Amazon](https://perceptlayer.com/apis/amazon) [Americanas](https://perceptlayer.com/apis/americanas) [Aponeo](https://perceptlayer.com/apis/aponeo)

Use cases

### Track second-hand phone prices across India

`Use the OLX India API to track second-hand phone prices across India` 

### Find used cars by year, mileage, transmission and first owner

`Use the OLX India API to find used cars by year, mileage, transmission and first owner` 

### Compare asking prices for the same item by state

`Use the OLX India API to compare asking prices for the same item by state` 

### Watch new ads for a keyword with \`sorting=desc-creation\`

`` Use the OLX India API to watch new ads for a keyword with `sorting=desc-creation` `` 

FAQ

## Questions

**How much does the OLX India API cost?**

Each successful call costs 1 credit, on every endpoint. Failed calls cost nothing.

**Which market is covered?**

India only. Prices come back in INR, and \`locations\` lists Indian states.

**Does a listing include the seller's contact details?**

No. \`listing\` returns the ad's title, description, price, images, \`seller\_type\` and \`parameters\`, but no phone number or seller name.

**Do I need an OLX account?**

No. You call this OLX India API with your Perceptlayer key in the \`X-API-Key\` header, with no OLX login.

**Is this the official OLX India API?**

No. Perceptlayer is an independent service and is not affiliated with OLX India. It returns OLX India data as JSON with a Perceptlayer key, so there is no OLX India developer account, app review or partner approval to get first. It only reads data: if OLX India has an official API and you need to act on your own OLX India account, such as posting, managing orders or reading private data, use that one.

**Should I build an OLX India scraper instead?**

You can, but an OLX India scraper is code you maintain: page changes break it, requests get blocked, and OLX India's terms govern how you collect data. The OLX India API gives you 3 endpoints of named JSON fields for 1 credit per successful call, and failed calls cost nothing. A scraper makes sense only for data these endpoints don't return, so check the response in the playground on this page first.

## Try the OLX India API with 100 free credits

No credit card. Failed calls are never billed.

[Get a free API key](https://perceptlayer.com/signup) [Read the docs](https://docs.perceptlayer.com)
