Find a category path with the Bazaraki API
Paths are the common currency of this workflow: the filter lookup needs one and the search can use one, so the category tree is the first stop.
- Call
bazaraki-categorieswith an emptybodyto read the top level. - Pick a row and keep its path; its
countshows how many ads the category holds. - Call
bazaraki-categoriesagain with that path asbody.categoryto read the brands, models or property types beneath it. - Stop at the level you need and use its path unchanged as
body.categoryin later calls.
Each call descends one level, so steps 2 and 3 repeat until the row you want appears. The same path works as body.category in bazaraki-filters and in bazaraki-search, so one lookup serves both calls.
Build a filters object for a search
Filters differ by category, so read them before composing a search.
- Call
bazaraki-filterswith the category path asbody.category. - Read the
slug,typeandchoicesof each row, and note whethermultiallows several choices. - Add one entry to
body.filtersper filter, with theslugas the key and a published label fromchoicesas the value. - Give a
multifilter a list of values, and write a range bound as the slug plus the suffix _min or _max, as in year_min. - Send the object with the same
body.categorytobazaraki-search, becausebody.filtersneeds it.
The slug may carry the attrs__ prefix or not. A key or a value the operation does not know is rejected, so a typo shows up as a refused request.
Narrow a Bazaraki API search by district and price
District and price sit beside the category and body.filters in the same request.
- Set
body.cityto one of the five district values. - Add
body.price_min,body.price_maxor both for a price band in EUR. - Set
body.sorttocheapestorexpensiveto order rows by price inside each promotion block. - Read
price,cityandareafrom each returned row.
Each call reports its own total, so run one call per district when you compare districts. Read price_display as well when the price is shown to people, because it is the price as the ad displays it.
Search by text inside a category
A text search narrows a category to the ads that mention the words you care about.
- Send
body.querywith a phrase such as a model name, together withbody.category. - Leave
body.sortout to get the order that fits a text search, which is by relevance. - Set
body.sorttonewestwhen the most recently posted ads matter more than the match quality.
body.query also accepts the alternative names q, keyword and search, and it sits in the same request as body.category, body.city and the price inputs.
Page through Bazaraki API search results
A search returns 30 rows a page, so a longer result is read page by page.
- Run the search with
body.pageat 1, or leave it out. - Check
has_moreindata; when it shows further rows, repeat the call withbody.pageraised by 1. - Keep every other input the same between calls so the pages belong to one search.
- Stop when
has_moresays so, because a page past the last one returns 0 rows.
Read total_is_exact together with total: with body.query, a total that has reached the cap of about 999 is reported with total_is_exact set to false.
Open one ad from a search row
A search row carries what is needed to open its ad in full.
- Take the
idof a row frombazaraki-search; theslugof the same row is optional. - Call
bazaraki-listingwithbody.idand, when you have it,body.slug. - Read
price,price_displayandprice_matches_ld_offerwhen you compare prices. - Read
featuresfor the attributes the ad lists andimagesfor the photos. - Read
published,date_modifiedandviewsfor the dates and views of the ad.
When only an ad address is at hand, send the full URL in body.id instead.
Follow the ads of one seller
A seller's id turns any search row into a view of that seller's ads.
- Read the
idin thesellerblock of a search row. - Send it as
body.seller_idtobazaraki-searchwithbody.sortset tonewest. - Add
body.categorywhen you only want that seller's ads in one category. - Open a row with
bazaraki-listingand readis_business,verifiedandactive_adsin itssellerblock to label the seller.
Rows of that search repeat a compact seller block, so every row confirms the id that was sent. The listing record carries an id inside its own seller block as well, which links an opened ad back to the other ads of its seller.
What is Bazaraki
Real estate is a main focus of Bazaraki: agents and developers list homes for sale and rent, and property seekers narrow results by city, property type, bedrooms, furnishing and price. Used cars are a core category as well. Private sellers can list a car at no cost, while business sellers receive extra support such as platform training and tailored plans for generating leads.
[
{
"body": {
"category": "car-motorbikes-boats-and-parts/cars-trucks-and-vans"
}
},
{
"body": {
"category": "car-motorbikes-boats-and-parts/cars-trucks-and-vans/bmw"
}
}
]{
"body": {
"category": "car-motorbikes-boats-and-parts/cars-trucks-and-vans",
"city": "limassol",
"price_min": 10000,
"price_max": 20000,
"sort": "cheapest",
"page": 1
}
}{
"body": {
"id": 6789207,
"slug": "cars-other-electric-2026"
}
}[
{
"body": {
"seller_id": 11516581,
"sort": "newest"
}
},
{
"body": {
"id": 6789207
}
}
]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/bazaraki/bazaraki-categories' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"category":"car-motorbikes-boats-and-parts/cars-trucks-and-vans"}}'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.
Bazaraki API overview and prices · Read the API reference · Try it in the playground