OLX Pakistan API

Pakistan's biggest classifieds site, searchable by the site's own filters

OLX Pakistan API returns live OLX Pakistan data as clean JSON for pakistan's biggest classifieds site: cars, phones, property and bikes, with prices in pkr.

endpoints
5
credit per call
1

1 credit per call≈ $1/1,000 calls1,000 free credits, no card

5 active endpoints. Every call is 1 credit.

  • POST/olx-pk/v1/search1 credit
  • POST/olx-pk/v1/listing1 credit
  • POST/olx-pk/v1/categories1 credit
  • POST/olx-pk/v1/category_fields1 credit
  • POST/olx-pk/v1/locations1 credit
Try it live

Run the call yourself, on the real endpoint

Change a parameter and press Try it. The response on the right is what your code will receive.

OLX Pakistan API

3 of 5 endpoints, ready to run

View docs ↗

Live ads with the price in PKR, the category path, the province, city and area with coordinates, the posting and refresh time, the make, model, year, kilometres, fuel and transmission for vehicles, every category attribute, the photo count and the seller's name and verification. The source's own total comes back with every page.

1 credit0 required · 7 optional
POST/olx-pk/v1/search
idle
// Press "Try it" and this pane shows exactly what the
// live site returned this second — including an empty
// result, if that is the truth. No key, no account.

Try every endpoint in the playground

Endpoints

What OLX Pakistan endpoints does ReefAPI ship?

5 live read endpoints. Read-only data API: no writes, no account actions, no dashboard access on the target site.

5 endpoints

search

1 cr

Search live OLX Pakistan listings by keyword, category, city or area, price range in PKR and…

required
—
optional
query, category, location, price_min, price_max, make, model, year_min, year_max, km_min, km_max, fuel, transmission, assembly, condition, filters, sort, page, limit, max_rotations

listing

1 cr

One OLX Pakistan listing in full by its id or URL.

required
—
optional
listing_id, url, include_seller, max_rotations

categories

1 cr

The OLX Pakistan category tree with live listing counts.

required
—
optional
category, depth

category_fields

1 cr

The filters a category offers on OLX Pakistan, with every published choice.

required
category
optional
category, make

locations

1 cr

OLX Pakistan places and their ids.

required
—
optional
parent, query, level, limit

Every parameter, every allowed value →

Missing a OLX Pakistan endpoint, or need a source we don't have yet?Contact us real people · same-day reply.
How it works

How the OLX Pakistan API works

OLX Pakistan is a normal ReefAPI surface — the same four rules that hold for every other engine on the key.

01
Authenticate
x-api-key header

No OAuth app, no request signing, no per-site account. One key covers all 632 engines.

02
Call
POST /olx-pk/v1/…

Every route is a POST with a JSON body. Parameters are validated against the published schema before anything is charged.

03
Pay
1 credit per call

Credits, not seats. Failed and blocked calls are never charged, and nothing is cached: every call reads the source live.

04
Read
{ ok, data, meta, error }

One envelope everywhere. meta carries latency_ms, record_count and the endpoint that answered.

Recipe

Track one car model's asking prices across Pakistan

Filter by name, read the total, then open only the ads you shortlist.

01category_fields
POST/olx-pk/v1/category_fields
{"category": "84", "make": "Toyota"}

Toyota's models as the site names them, Corolla GLI among them.

02search
POST/olx-pk/v1/search
{"category": "84", "make": "Toyota", "model": "Corolla GLI", "year_min": 2015, "km_max": 100000, "location": "Lahore", "sort": "price_asc", "limit": 100}

Up to 100 ads a page with price, year, kilometres, area and the site's own total.

03listing
POST/olx-pk/v1/listing
{"listing_id": "<id from a row>"}

All photos, the description and the seller's profile for the ads you care about.

A priced, mileage-stamped slice of one model in one city, refreshed whenever you call it.

request
curl -X POST https://api.reefapi.com/olx-pk/v1/search \
  -H "x-api-key: $REEF_KEY" \
  -H "content-type: application/json" \
  -d '{"query":"Toyota Corolla","category":"84","limit":5}'
response envelope
{
  "ok": true,
  "data": { … },
  "meta": {
    "api": "olx-pk",
    "endpoint": "search",
    "mode": "live",
    "latency_ms": …,
    "record_count": …
  },
  "error": null
}
Coverage

What the source gives, what it hides, and what we checked

Measured on 2026-11-11: 37 live calls (28 searches and reads, 9 deliberate bad inputs), plus three ads checked against their own pages.

Filters checked against the rows

Toyota, Corolla GLI, 2015 to 2020 and at most 100,000 km returned 680 ads, and all 25 rows on the page met every condition. Cars with petrol, automatic, SUV body and Lahore registration: 565 ads, 25 of 25 rows inside all four.

Read against the ad's own page

For three ads the title, price, posting time, seller name and photo count from listing matched the ad's own page exactly.

Prices in PKR, and call for price stays null

price is the number in rupees. Ads that say call for price come back with price null instead of a placeholder 0, and price sorts leave them out.

Names, not codes

make, model, fuel and the other filters take the names the site shows. A name the category does not have is refused with the valid choices, not ignored.

Seller phone only when the seller shows it

listing returns the phone number only when the seller made it visible on the site, exactly as the Show phone button does. Otherwise phone is null and phone_visible is false.

Against us: 10,000 rows per search

The site stops paging at 10,000 rows for one search; reachable_results tells you. Narrow by city, make or price to see everything.

Against us: photo URLs, not photo files

Photos come as URLs on images.olx.com.pk. Open them from your own client; there is no image download action.

Against us: newest is minute-level

The source orders newest by a timestamp rounded to about two minutes, so ads posted within the same couple of minutes can appear in either order.

Use cases

What people build with OLX Pakistan

The jobs this data is most often used for.

5

endpoints

1

credit per call

01

Price-intelligence teams use OLX Pakistan to search live OLX Pakistan listings by keyword, category, city or area, price range in PKR and….

02

Classifieds aggregators use OLX Pakistan to get one OLX Pakistan listing in full by its id or URL.

03

Resale and arbitrage tools use OLX Pakistan to get the OLX Pakistan category tree with live listing counts.

04

Lead-generation teams use OLX Pakistan to get the filters a category offers on OLX Pakistan, with every published choice.

Pricing

What OLX Pakistan data costs

The cheapest call here is 1 credit, so $15/mo (Pro) buys 10,000 of them — $1.50 per 1,000 credits. Credits roll over and never expire, and failed or blocked calls are not charged.

Full pricing →
$0.67–$1.50 / 1,000 credits
  • 1,000 free credits on signup, no card
  • One key, all 632 APIs, one credit pool
  • Failed and blocked calls are never charged
  • Credits roll over and never expire
no credit card1,000 free credits · instant API key · pay by card or crypto
Quickstart

Call it in two lines

Sign up, get 1,000 credits and one key that works on every engine. Then this is the whole protocol.

curl
curl -X POST https://api.reefapi.com/olx-pk/v1/search \
  -H "x-api-key: $REEF_KEY" \
  -H "content-type: application/json" \
  -d '{"query":"Toyota Corolla","category":"84","limit":5}'
python
import os
import requests

REEF_KEY = os.environ["REEF_KEY"]

r = requests.post(
    "https://api.reefapi.com/olx-pk/v1/search",
    headers={"x-api-key": REEF_KEY},
    json={
        "query": "Toyota Corolla",
        "category": "84",
        "limit": 5
    },
    timeout=90,
)
print(r.json()["data"])
FAQ

Have a question? We got answers.

The questions people actually ask before wiring up OLX Pakistan.

What is the OLX Pakistan API?▾

OLX Pakistan API is a ReefAPI endpoint group for pakistan's biggest classifieds site: cars, phones, property and bikes, with prices in pkr. It returns live JSON through POST requests under /olx-pk/v1.

Is the OLX Pakistan API free to try?▾

Yes. ReefAPI starts with 1,000 free credits, no card required. OLX Pakistan calls use the same shared credit balance as every other ReefAPI engine.

Do I need an OLX Pakistan login or account?▾

No login to OLX Pakistan is needed for the API response. You call ReefAPI with your x-api-key header, and the playground can run live examples before you create a production key.

How fresh is the OLX Pakistan data?▾

The page example is captured from a live search call, and production requests fetch live data through ReefAPI rather than a static sample.

How many credits does the OLX Pakistan API use?▾

OLX Pakistan actions currently cost 1 credit per successful call. Failed or blocked calls are free. All APIs draw from one credit pool.

Can I call OLX Pakistan from an AI assistant or MCP client?▾

Yes. Connect ReefAPI once through MCP and your assistant can call olx-pk actions with the same key, credit pool and JSON envelope used by normal REST requests.

Is the OLX Pakistan API an OLX Pakistan scraper?▾

It is the managed alternative to a DIY OLX Pakistan scraper. Instead of building and maintaining your own scraper — proxies, headless browsers, captcha and constant breakage — you call one ReefAPI endpoint and get the same pakistan's biggest classifieds site: cars, phones, property and bikes, with prices in pkr back as clean JSON.

Why does my OLX Pakistan scraper keep getting blocked?▾

Most OLX Pakistan scrapers break on anti-bot defenses, rate limits and IP bans that need rotating residential proxies and browser fingerprinting to clear. ReefAPI handles all of that for you — no proxies, no captchas, no maintenance — and returns live JSON. Blocked calls are free.

Same key

116 Classifieds & Second-hand APIs on the same key

One key, one credit pool, one response envelope. If you are pulling OLX Pakistan, you are one call away from the rest of the category — no second contract, no second integration.

Contact

Need something this API does not do?

Name the endpoint, the field, or a source we do not carry yet. We ship new APIs every week and you would be first to get the key. Real people read every message and reply the same day.

0/4000

No account needed · we reply from [email protected]

Try it on your own data before you pay anything

The call above is the real endpoint, not a recording. A free key gives you 1,000 credits, the other 631 APIs, and the same envelope everywhere.

Endpoints, parameters and credit costs on this page are read from the live catalog and cannot drift from what the API accepts. Field notes were captured on 2026-11-11.