Documentation
Bazaraki API technical reference
Reference for the Bazaraki API: category paths, filter keys, search inputs with their alternative names, listing lookups and the fields of rows and ad records.
See also: Bazaraki API overview and prices · Bazaraki API guide: search and read Cyprus ads
On this page
Bazaraki API category tree reference
body.category takes a category path as an earlier call returned it, and category_path, rubric_path and parent are accepted as alternative names for it. Leaving it out answers for the top level, while a path answers for that category and the level directly beneath it, so going down a branch takes one call per level.
Inside data, category describes the category itself: ancestors shows the categories above it and total_ads shows its ad total. Each element of rows is a sub-category. Its path can go into body.category of this operation, of the filters operation or of the search operation, and its count shows the ads it holds.
Fields in this section (2)
bazaraki-categories, body.category
Bazaraki API filter vocabulary reference
category_path and rubric_path are accepted as alternative names for body.category. The value is a category path taken from the categories operation, because the operation lists the filters of a single category at a time.
A filter occupies one element of rows. Its slug is the key to use in body.filters of the search operation, name is the display name, type says what kind of filter it is, and keys lists the keys that belong to it.
multi shows whether several choices can be combined and free_number shows whether a free number can be given. Each element of choices has a value and a label, and category inside data holds the queried category.
Fields in this section (2)
bazaraki-filters, body.category
Locating an ad with Bazaraki API listing calls
body.id is the numeric id of the ad: the id of a search row, or the number in the ad's address. A full ad URL is accepted in its place, and ad_id and advert_id are accepted as alternative names.
body.slug is optional and takes the slug of the same row. When it is absent the slug is resolved from the id, so sending it saves one small lookup.
Fields in this section (3)
bazaraki-listing, body.id, body.slug
Fields inside a Bazaraki API listing record
The record in data groups its fields by purpose:
- Identity:
id,slug,url,titleanddescriptionname and describe the ad. - Price:
priceis in EUR,currencynames its currency,price_displayshows the price as displayed,price_kindsays what kind of price it is, andprice_matches_ld_offershows whetherpricematches the offer price embedded in the ad page. - Dates and attention:
published,date_raisedanddate_modifiedcarry the dates of the ad, whileviewsandfavoritescarry its views and favourites. - Place:
cityandareaname the location, andlatitudeandlongitudepin it on a map. - Content:
categoriesplaces the ad in the tree,featuresholds entries withname,valueandvalues,imagesholds the photos, andvinholds the vehicle identification number.
The seller block holds these fields:
| Field | What it shows |
|---|---|
id | the seller's id, also the value for body.seller_id in a search |
name | the display name of the seller |
account_name | the name of the seller's account |
is_business | whether the seller is a business rather than a private seller |
is_company | whether the account is a company |
verified | further status information about the seller's account |
active_ads | how many ads the seller has active |
posting_since | since when the seller has been posting |
profile_url | the address of the seller's profile |
website | the seller's own website |
contact_channels | the ways to contact the seller |
Fields in this section (1)
bazaraki-listing
Bazaraki API search input rules
These inputs of bazaraki-search carry rules that go beyond a table cell:
body.categorytakes a path exactly as the categories operation returns it, for instancereal-estate-to-rent/apartments-flats, and a Bazaraki category URL is accepted too.- A brand path adds the brand to the Cars path, and a model path adds the model to its brand path, so the search narrows with each level.
- An unknown category path is rejected instead of searching without a category, and
category_pathandrubric_pathare accepted as alternative names. body.queryis also accepted asq,keywordorsearch.body.cityselects one district per call, and it is also accepted asdistrictorlocation.body.seller_idtakes theidfrom thesellerblock of any row, and it is also accepted asuser_id.body.price_minandbody.price_maxbound the price in EUR, and they are also accepted asmin_priceandmax_price.body.sortdefaults tonewest, or torelevancewhenbody.queryis sent, and relevance needs a query; VIP then TOP rows precede regular rows. It is also accepted asorderingororder.
Fields in this section (8)
bazaraki-search, body.category, body.query, body.city, body.seller_id, body.price_min, body.price_max, body.sort
Bazaraki API search filter object
body.filters is an object of key and value pairs drawn from the filter vocabulary of the filters operation, and attrs is accepted as an alternative name for it. It needs body.category, and an unknown key or value is rejected by the operation.
- A key is a filter slug such as fuel-type, and the slug is also accepted with an attrs prefix joined by two underscores.
- A range takes the slug plus an underscore and min or max, so the slugs year, mileage and area give a minimum year, a maximum mileage or a minimum area.
- A value is the published label, such as Electric, 2021 or SUV, or the code of the choice.
- A multi-choice filter such as body-type takes a list of values, for instance SUV and Hatchback.
Fields in this section (3)
bazaraki-search, body.filters, body.category
Bazaraki API search totals and pages
A search answers with the rows together with the figures needed to read them:
totalis the match total of the search, and withbody.queryit is capped at about 999.total_is_exactis false when abody.querytotal sits between 990 and 999, which marks a capped total.pageis the page that was returned, with 30 rows to a page, andhas_moreshows when to stop paging; a page past the last one holds 0 rows.categoryholds the searched category andappliedholds the criteria the search ran with.
Fields in this section (3)
bazaraki-search, body.page, body.query
Row fields in Bazaraki API search results
Each element of rows is a compact ad:
- It names the ad with
id,slug,urlandtitle, andidandslugare the values forbody.idandbody.slugof the listing operation. - Its price comes as
price,price_display,price_display_matchesandprice_description. - Its place and time come as
city,areaandpublished, its category ascategory_id, and its attributes and photos asfeaturesandimages. promotedandpromotiondescribe the promotion of the row, andsellerholdsid,name,is_businessandverified.
Fields in this section (1)
bazaraki-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/bazaraki/bazaraki-categories
Browse categories one level at a time and read the ad count of each.
Input fields
| Field | Type | Required | Allowed values | Limits |
|---|---|---|---|---|
body.category | 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/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"}}'Category filters
POST /api/v1/bazaraki/bazaraki-filters
List the filters of one category with their keys and choices.
Input fields
| Field | Type | Required | Allowed values | Limits |
|---|---|---|---|---|
body.category | string | Required | — | — |
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/bazaraki/bazaraki-filters' \
--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"}}'Ad detail
POST /api/v1/bazaraki/bazaraki-listing
Read one ad with its price, attributes, photos, dates, location and seller block.
Input fields
| Field | Type | Required | Allowed values | Limits |
|---|---|---|---|---|
body.id | integer | Required | — | 1–9007199254740991 |
body.slug | 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/bazaraki/bazaraki-listing' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"id":6789207}}'Ad search
POST /api/v1/bazaraki/bazaraki-search
Search ads by category, text, district, seller, EUR price band and category filters.
Input fields
| Field | Type | Required | Default | Allowed values | Limits |
|---|---|---|---|---|---|
body.category | string | Optional | — | — | — |
body.city | string | Optional | — | "nicosia""limassol""larnaca""paphos""famagusta" | — |
body.page | integer | Optional | 1 | — | 1–5000 |
body.price_max | number | Optional | — | — | ≥ 0 |
body.price_min | number | Optional | — | — | ≥ 0 |
body.query | string | Optional | — | — | — |
body.seller_id | integer | Optional | — | — | 1–9007199254740991 |
body.sort | string | Optional | — | "newest""cheapest""expensive""relevance" | — |
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/bazaraki/bazaraki-search' \
--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","city":"limassol","sort":"cheapest"}}'How calls work
POST /api/v1/bazaraki/<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: