Documentation
Bazos API technical reference
Reference for the Bazos API: category slugs, listing handles, search inputs such as postal code, radius, price and sort, and the fields of rows and ad records.
See also: Bazos API overview and prices · Bazos API guide: search and read Czech and Slovak ads
On this page
Bazos API category tree reference
body.category switches the shape of data. Left out, data holds market and a categories list with one row for each of the market's 20 rubriky. With a rubrika slug, data holds market, category and a subcategories list instead, and category describes the rubrika that was asked for.
In a categories row, slug is the value that body.category takes in all 3 operations, label is the display name and url is the address of the rubrika. total_listings shows how many ads the rubrika holds, and listings_last_24h shows how many were added in the last 24 hours.
A subcategories row has slug, label and url. Its slug is the value for body.subcategory in a search.
body.market chooses the tree that is read, because the two markets keep separate category slugs. body.category expects a rubrika slug in lowercase letters, and the operation rejects anything else.
Fields in this section (3)
bazos-categories, body.market, body.category
Bazos API listing lookup reference
body.url is the ad address exactly as a search row returns it. The address carries the category and the market, so no other input is needed, and body.category is ignored when body.url is sent.
body.listing_id is the alternative handle, a numeric id. It needs body.category, because the category is the host of the ad address on Bazos, and body.market then selects the catalogue the id belongs to. Prefer body.url whenever a search row is at hand.
Fields in this section (5)
bazos-listing, body.url, body.listing_id, body.category, body.market
Fields of a Bazos API listing record
The record in data groups its fields by purpose:
- Identity:
listing_id,url,titleanddescriptionname and describe the ad, anddescriptionis the text as the seller wrote it. - Price:
priceis the asking price,price_currencynames its currency,price_kindsays which pricing case applies andprice_textis the price as the ad prints it. - Place and attention:
localityandpostal_codelocate the ad,viewsshows how often it was viewed andposted_dateshows when it was posted. - Promotion:
promotedandpromoted_labelshow whether the ad is a paid placement and the label that goes with it. - Classification:
categoryis the rubrika of the ad andbreadcrumbis the category trail above it. - Media:
imagesholds the photos of the ad andimage_counttheir number. - Seller:
seller.display_nameis the name the seller displays.
A negotiable or unpriced ad has a null price instead of a zero.
Fields in this section (1)
bazos-listing
Bazos API search input rules
These inputs of bazos-search carry rules that go beyond a table cell:
body.queryis also accepted askeywordorq, and it is matched against ad titles and bodies. It is optional whenbody.categoryis sent, and the search then browses that rubrika.body.categorytakes the slugs of the chosen market, which differ between Czechia and Slovakia for 7 rubriky.body.subcategoryis a slug from insidebody.category, for instanceappleundermobil, and it requiresbody.category.body.postal_codeis a 5-digit code that belongs tobody.market, and the operation rejects a code Bazos does not know instead of ignoring it.body.radius_kmis measured aroundbody.postal_codeand is ignored when no postal code is sent.body.price_minandbody.price_maxare read in the currency of the market.body.sortset toprice_ascorprice_descdrops ads whose price is a word, andbody.pageselects one page of 20 ads.
Fields in this section (11)
bazos-search, body.market, body.query, body.category, body.subcategory, body.postal_code, body.radius_km, body.price_min, body.price_max, body.sort, body.page
Bazos API search response fields
In data, market names the catalogue that was read and currency names the currency of its prices, while query, category and subcategory echo what the call asked for. total_results is the match total and comes with the total as Bazos prints it, page and page_size describe the page, and has_more shows whether another page follows.
Each element of listings describes one ad:
| Field | What it shows |
|---|---|
listing_id and url | the id of the ad and the address of the ad |
title and description_excerpt | the headline and a short excerpt of the ad text |
image | the picture that goes with the row |
price and price_currency | the asking price, null for a negotiable or unpriced ad, and its currency |
price_kind | the pricing case: fixed, free, negotiable, in_text or absent |
price_text | the price wording printed on the ad |
locality and postal_code | the place of the ad |
views and posted_date | the view count and the posting date |
promoted and promoted_label | whether the ad is a paid TOP placement, and its label |
category | the rubrika of the ad |
A paid TOP ad is returned in the position where Bazos puts it, even when it is off topic for the keyword.
Fields in this section (1)
bazos-search
Operations
Every public gateway operation uses POST /api/v1/{project}/{action}.
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.
Category tree
POST /api/v1/bazos/bazos-categories
List the rubriky of a market with their ad counts, or the subcategories of one rubrika.
Input fields
| Field | Type | Required | Default | Allowed values | Limits |
|---|---|---|---|---|---|
body.category | string | Optional | — | — | — |
body.market | string | Optional | "cz" | "cz""sk" | — |
Request examples
# 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"}}'Ad detail
POST /api/v1/bazos/bazos-listing
Read one ad with its price, location, photos, view count, posting date and seller name.
Input fields
| Field | Type | Required | Default | Allowed values | Limits |
|---|---|---|---|---|---|
body.category | string | Optional | — | — | — |
body.listing_id | string | Optional | — | — | — |
body.market | string | Optional | "cz" | "cz""sk" | — |
body.url | string | Optional | — | — | — |
Request examples
# 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-listing' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"url":"https://mobil.bazos.cz/inzerat/224930267/iphone-16-pro-max-256-gb-black-titanium-krabicka-kabel.php"}}'Ad search
POST /api/v1/bazos/bazos-search
Search ads by keyword, category, postal-code radius and price band, with 5 sort orders.
Input fields
| Field | Type | Required | Default | Allowed values | Limits |
|---|---|---|---|---|---|
body.category | string | Optional | — | 27 values"auto""deti""dom""dum""elektro""foto""hudba""knihy""mobil""motocykle""motorky""nabytek""nabytok""obleceni""oblecenie""ostatne""ostatni""pc""praca""prace""reality""sluzby""sport""stroje""vstupenky""zvierata""zvirata" | — |
body.market | string | Optional | "cz" | "cz""sk" | — |
body.page | integer | Optional | 1 | — | 1–500 |
body.postal_code | string | Optional | — | — | — |
body.price_max | integer | Optional | — | — | 0–9007199254740991 |
body.price_min | integer | Optional | — | — | 0–9007199254740991 |
body.query | string | Optional | — | — | — |
body.radius_km | integer | Optional | 25 | — | 0–500 |
body.sort | string | Optional | "newest" | "newest""price_asc""price_desc""most_viewed""least_viewed" | — |
body.subcategory | string | Optional | — | — | — |
Request examples
# 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-search' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"market":"cz","query":"iphone"}}'How calls work
POST /api/v1/bazos/<action>withx-api-key,Content-Type: application/jsonand a requiredIdempotency-Key.- A successful call returns
ok: true:datais the result of the operation,meta.requestIdidentifies the recorded request andmeta.chargedCreditUnitsis the amount charged. Otherwiseokisfalseanderror.codenames the reason; readokanderror.coderather than relying on the HTTP status alone. Every gateway reply carries a request id for support:meta.requestId, or a top-levelrequestIdin a reply withoutmeta(such as a refusal before admission). - Charged the listed price only when a call succeeds. Failures are not charged; an unconfirmed outcome is released after at most 900 seconds without a charge.
- Repeating the same request with the same Idempotency-Key after it has finished returns the stored response for 24 hours without a new charge.
In the gateway reference: