OLX
OLX Ad Details API
One OLX ad by id or link on any of the seven OLX Europe sites: title, the full description as plain text, price (with the site's conversion where it converts), salary for job ads, condition, every parameter, category with breadcrumb, all photos, location (city, district, region with ids), created_at, refreshed_at, valid_to, status, promoted and OLX delivery flags, and the seller (id, business or private, business name for business sellers only, member since). An ad that does not exist and an ad that has ended answer the same 404. Costs 1 credit per request.
Authorizations
AuthorizationstringheaderrequiredBearer authentication header of the form Bearer <token>, where <token> is your Scavio API key (e.g. Bearer sk_live_your_key).
Body
application/jsonoffer_idstring | integerAn OLX ad id: items[].id of a search, e.g. 1107557408. Send offer_id or url, not both.
Example: 1107557408
urlstringAn OLX ad link on any of the seven sites. The market follows the link; a link on one site with a different country is a 400.
Example: https://www.olx.pl/d/oferta/iphone-13-pro-128gb-graphite-pudelko-etui-szybki-ochronne-100-sprawny-CID99-ID1cXcha.html
countryenum<string>default:plThe OLX site. Titles, parameters and labels come back in the site's language (Polish on pl; Russian by default on kz and uz), prices in its currency. When you send a url, the market follows the url.
Example: pl
pl— olx.pl, PLN, Polish. The default.ro— olx.ro, RON, Romanian.pt— olx.pt, EUR, Portuguese.bg— olx.bg, EUR, Bulgarian.ua— olx.ua, UAH, Ukrainian.kz— olx.kz, KZT, Russian by default, Kazakh with language kk.uz— olx.uz, UZS, Russian by default, Uzbek with language uz.
languageenum<string>kz and uz only. olx.kz and olx.uz answer in Russian by default; kk returns Kazakh on kz and uz returns Uzbek (Latin) on uz. A 400 on the other five sites, which answer in their own language.
Example: kk
ru— Russian, the default on kz and uz.kk— Kazakh, kz only.uz— Uzbek, uz only.
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
ad = client.olx.offer(offer_id=1107557408)["data"]
print(ad["title"], ad["price"]["value"], ad["price"]["currency"], ad["status"])
for p in ad["params"]:
print(p["name"], "=", p["value"])
print("seller", ad["seller"]["id"], "business:", ad["seller"]["is_business"], "since", ad["seller"]["member_since"])Response