APIs / Marketplaces / OLX India

1 credit per call3 endpoints12 datapointsChecked working 6 Dec 2026

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.

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 OKJSONX-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.

#idstringtitlestringdescriptionstringcreated_atstringdisplay_datestringpriceobjectlocationobjectimageurlimagesstring[]seller_typestringparametersobject[]category_idinteger
1186276931616 PRO | 512GB• Excellent overall condition. • Minor spot on the edge of the screen. • Scratch-free laminated body. • Original box available.2026-11-27T09:56:40Z2026-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
21862147760Iphone 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:19Z2026-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
31806290461GENUINE APPLE IPHONE 5S & 5C IN BOX PACKING – RARE FIND!! BUYGENUINE 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:24Z2026-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 itemGET /v1/olx-in/search?query=iphone

12 datapoints

Identity

  • idstring
  • titlestring
  • category_idinteger

Contact

  • seller_typestring

Location

  • locationobject

Reputation

  • imageurl
  • imagesstring[]

Price

  • priceobject

Other

  • descriptionstring
  • created_atstring
  • display_datestring
  • parametersobject[]

Playground

Run this API

cURLshell
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.

EndpointRequired parametersReturnsCost
GET/v1/olx-in/listing
id
idtitledescriptioncreated_atdisplay_dateprice+7 more
1 credit
GET/v1/olx-in/locations
none
idnametypeparent_idchildren_countlatitude+1 more
1 credit
GET/v1/olx-in/search
query+14 optional
ads_on_pageapplied_sortingresults
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.

MarketplacesJSONRESTMCP

More marketplaces APIs

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.