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
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
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.
// 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.
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.
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 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.
No OAuth app, no request signing, no per-site account. One key covers all 632 engines.
Every route is a POST with a JSON body. Parameters are validated against the published schema before anything is charged.
Credits, not seats. Failed and blocked calls are never charged, and nothing is cached: every call reads the source live.
One envelope everywhere. meta carries latency_ms, record_count and the endpoint that answered.
Track one car model's asking prices across Pakistan
Filter by name, read the total, then open only the ads you shortlist.
{"category": "84", "make": "Toyota"}Toyota's models as the site names them, Corolla GLI among them.
{"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.
{"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.
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}'{
"ok": true,
"data": { … },
"meta": {
"api": "olx-pk",
"endpoint": "search",
"mode": "live",
"latency_ms": …,
"record_count": …
},
"error": null
}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.
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.
For three ads the title, price, posting time, seller name and photo count from listing matched the ad's own page exactly.
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.
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.
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.
The site stops paging at 10,000 rows for one search; reachable_results tells you. Narrow by city, make or price to see everything.
Photos come as URLs on images.olx.com.pk. Open them from your own client; there is no image download action.
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.
What people build with OLX Pakistan
The jobs this data is most often used for.
endpoints
credit per call
Price-intelligence teams use OLX Pakistan to search live OLX Pakistan listings by keyword, category, city or area, price range in PKR and….
Classifieds aggregators use OLX Pakistan to get one OLX Pakistan listing in full by its id or URL.
Resale and arbitrage tools use OLX Pakistan to get the OLX Pakistan category tree with live listing counts.
Lead-generation teams use OLX Pakistan to get the filters a category offers on OLX Pakistan, with every published choice.
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.
- 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
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 -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}'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"])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.
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.
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.
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.