Find category slugs with the Bazos API
Search values for a rubrika come from bazos-categories, and 7 of them differ between the two markets, so fix the market first:
- Call
bazos-categorieswithbody.marketand withoutbody.categoryto list the rubriky of that market. - Pick the
slugof the rubrika you want, for examplemobil. - Call
bazos-categoriesagain with thatslugasbody.category. - Pick the
slugof a subcategory, for exampleapple, and keep both slugs for the search.
total_listings in the first answer shows how many ads each rubrika holds, and listings_last_24h shows how many arrived in the last 24 hours.
Search one rubrika by keyword
With the slugs known, one call searches inside them. Send the keyword as body.query, the rubrika as body.category and the subcategory as body.subcategory, and keep the market that the slugs came from.
body.query is matched against ad titles and bodies, so a short model name also finds ads that mention it only in the text, and keyword and q are accepted as alternative names for it. Leave it out and the call browses the rubrika page by page.
query, category and subcategory in data echo the criteria the call ran with, and total_results shows how many ads matched. In listings, the listing_id and the url of a row are what a later read needs.
Search near a postal code within a price band
To shop locally, add a place and a price band to the search. body.postal_code is the 5-digit code and body.radius_km is the distance around it in kilometres; the radius defaults to 25 and is ignored without a code. body.price_min and body.price_max are whole numbers in the currency of the market, so on cz the band is read in CZK.
With body.sort set to price_asc, Bazos drops ads whose price is a word, so the total shrinks. Leave the sort at newest to keep those ads in the results, and read price_kind to tell them apart.
Page through Bazos API search results
Results come 20 ads to a page, and body.page starts at 1. Repeat the call with the same inputs and a page number raised by 1, and stop when has_more says no further page follows. page and page_size in data confirm the page you hold.
Keep body.sort and the filters unchanged while paging, since a change reorders the rows and moves ads between pages. body.page accepts 1 to 500, so a broad search cannot be read past page 500; narrow it with a subcategory, a postal code or a price band instead.
Read one ad from a search row
A bazos-search row is a summary, and bazos-listing returns the record behind it. Send the url of the row as body.url, which already carries the category and the market. If you stored only the id, send body.listing_id together with body.category, the rubrika slug that hosts the ad.
The record adds breadcrumb, images, image_count and seller.display_name to the fields of a row, and description takes the place of description_excerpt. The price fields price, price_kind and price_text appear in both, so the record repeats the price of a row next to the text of the ad.
Track the asking prices of one product
To follow the price of a used model, run the same search again and again, and keep the price of each row together with its listing_id and posted_date. Rows with price_kind set to fixed carry an asking price to compare, while a negotiable or unpriced ad has a null price, so leave those out before averaging.
Compare totals only between calls that use the same body.sort, because the two price orders shrink total_results.
Compare one product across both markets
Run the same bazos-search call once per market, by sending body.market as cz and as sk. The slug of 7 rubriky differs in Slovakia, so call bazos-categories with sk before you reuse a Czech body.category; mobil is the same on both sides.
currency in data names the currency of each answer, CZK for one market and EUR for the other, so convert the price values to one currency before you set them side by side.
Check a rubrika for new ads
Search the rubrika with body.sort set to newest, store the listing_id of every row you have seen and compare on the next run. Paid TOP ads sit on top under this order, so read the 20 rows of the first page instead of stopping at the first known listing_id, and use promoted to set the paid rows apart.
Open only the unfamiliar rows with bazos-listing when you need the ad detail; posted_date in the search row already shows when the ad was posted.
What is Bazos
Bazos is a classifieds site for Czechia and Slovakia where people post ads for second-hand goods, from phones and computers to cars, pets and children's items. It was founded in 2003 and also operates in Austria and Poland. Bazos does not handle delivery or payment, so buyers often arrange postage with the seller, and expat guides and forums point newcomers to it as a local counterpart of eBay, Gumtree or Craigslist.
[
{
"body": {
"market": "cz"
}
},
{
"body": {
"market": "cz",
"category": "mobil"
}
}
]{
"body": {
"market": "cz",
"query": "iphone",
"category": "mobil",
"postal_code": "60200",
"radius_km": 25,
"price_min": 5000,
"price_max": 20000,
"sort": "price_asc",
"page": 1
}
}[
{
"body": {
"market": "cz",
"query": "iphone",
"category": "mobil",
"sort": "newest"
}
},
{
"body": {
"url": "https://mobil.bazos.cz/inzerat/224930267/iphone-16-pro-max-256-gb-black-titanium-krabicka-kabel.php"
}
}
]{
"body": {
"market": "cz",
"query": "iphone",
"category": "mobil",
"subcategory": "apple",
"sort": "newest"
}
}[
{
"body": {
"market": "cz",
"query": "iphone",
"category": "mobil",
"sort": "price_asc"
}
},
{
"body": {
"market": "sk",
"query": "iphone",
"category": "mobil",
"sort": "price_asc"
}
}
]Server-side request template
This server-side template shows authentication and request identity using the first operation of this API. Choose the operation for your use case and check its current availability and price on the API page. After a timeout, resend the unchanged request with the same Idempotency-Key.
The gateway request is always POST.
Use a JSON object with the documented path, query, headers and body locations; omit unused locations. input.headers is JSON data for the operation, not browser request headers. Do not put credentials here. Keep body arrays, scalar values and null as documented; omission is different from null.
# Server-side only. Set KAKIAPI_API_KEY in your secret manager.
# Every gateway operation is called with POST.
# Only operations shown as enabled on the API page can be called.
# Generate once per intent; retain the same value on status checks.
REQUEST_ID="$(uuidgen)"
curl --request POST 'https://kakiapi.com/api/v1/bazos/bazos-categories' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"market":"cz"}}'Integration checklist
- The API key is stored in a server-side secret manager and never sent to a browser.
- Each request carries its own Idempotency-Key, kept until the request has a final answer.
- The integration reads ok and error.code and handles each error code as the error table describes.
- An uncertain POST is inspected using its original identity, never blindly repeated with a new one.
- The operation’s current availability and price have been checked on its API page.
Bazos API overview and prices · Read the API reference · Try it in the playground