Category tree
Browse categories one level at a time and read the ad count of each.
Loading / 加载中…
Bazaraki API · Classifieds & second-hand data
The Bazaraki API offers four operations for Cyprus classified ads: a category tree with ad counts, the filters each category offers, a paged ad search and a single-ad read. Category paths tie the tree, the filters and the search together, and the `id` of a search row opens the full ad.
JSON in, a structured response out. Every public gateway endpoint uses POST.
Browse categories one level at a time and read the ad count of each.
List the filters of one category with their keys and choices.
Read one ad with its price, attributes, photos, dates, location and seller block.
Search ads by category, text, district, seller, EUR price band and category filters.
bazaraki-categories is where category paths come from, and a path narrows a search and selects the filters of a category. Given a path, it answers for that category and the level directly beneath it, such as brands under Cars, models under a brand or property types.
Inside data, category describes the requested category. It carries an id, a name, the category's path, ancestors and total_ads, and ancestors shows the categories above it. Each element of rows carries an id, a name, the sub-category's path and a count, which shows how many ads that sub-category holds.
Categories differ in what they can be filtered by: cars allow make, model, year, mileage, fuel and gearbox, while property allows bedrooms, area and furnishing. The operation answers for one category at a time, and body.category is required.
Each element of rows describes one filter:
| Field | What it tells you |
|---|---|
slug | the filter's key inside body.filters |
name | the display name of the filter |
type | the kind of filter |
keys | the keys that belong to the filter |
multi | whether the filter takes several choices |
free_number | whether the filter takes a free number |
choices | the options, each with a value and a label |
category inside data holds the category that was queried.
bazaraki-search returns paged rows, and each row is a compact ad with the fields a results list needs:
| Field | What it tells you |
|---|---|
id | the ad's numeric id |
slug | the ad's slug, the optional companion of id |
url | the address of the ad |
title | the headline of the ad |
price | the price in EUR |
price_display | the price as the ad displays it |
price_display_matches | whether the displayed price matches price |
price_description | the text that goes with the price |
city and area | where the ad is located |
published | the publish date of the ad |
category_id | the id of the ad's category |
features | the attributes listed with the ad |
images | the photos of the ad |
promoted and promotion | whether the ad is promoted and with which promotion |
seller | the seller's id, name, is_business and verified |
category and applied in data record the category and the criteria the search was run with.
body.query runs a free-text search over ad titles and descriptions. body.city takes one of five districts:
nicosia: the Nicosia (Lefkosia) districtlimassol: the Limassol (Lemesos) districtlarnaca: the Larnaca (Larnaka) districtpaphos: the Paphos (Pafos) districtfamagusta: the Famagusta (Ammochostos) districtbody.seller_id keeps only the ads of one seller, using the id from the seller block of any row. body.price_min and body.price_max bound the price in EUR, and either one can be sent alone.
body.sort takes newest, cheapest, expensive or relevance. The operation's default is newest, or relevance when body.query is present.
Paid VIP rows come first in a result, then TOP rows, then regular rows, and the chosen order applies inside each block. For cheapest and expensive, promoted rows still lead page 1.
In data, total is the match total, total_is_exact shows whether that total is exact, and page and has_more show where the caller stands in the paging.
bazaraki-listing returns a richer record than a search row. Its price group pairs price in EUR with currency, price_display and price_kind, and price_matches_ld_offer shows whether price agrees with the offer price embedded in the ad page.
features lists the attributes of the ad as entries with name, value and values, images lists the photos, and categories places the ad in the category tree. Location comes as city, area, latitude and longitude, and views and favorites show the ad's views and favourites.
The seller block describes who posted the ad, with active_ads showing how many ads the seller has active and posting_since showing since when the seller has been posting. profile_url, website and contact_channels lead to the seller's profile, site and contact options.
Bazaraki (bazaraki.com) is a classifieds marketplace for Cyprus with a website and a mobile app, where private sellers and businesses post ads for cars, property, jobs, phones, furniture, appliances and services. Press coverage describes it as the largest classified ads site in Cyprus, and it belongs to the Larixon Classifieds network of general classifieds marketplaces in several countries. It has operated since around 2007, and real estate is a main focus alongside general second-hand goods and used vehicles.
POST /api/v1/bazaraki/<action> with x-api-key, Content-Type: application/json and a required Idempotency-Key.ok: true: data is the result of the operation, meta.requestId identifies the recorded request and meta.chargedCreditUnits is the amount charged. Otherwise ok is false and error.code names the reason; read ok and error.code rather than relying on the HTTP status alone. Every gateway reply carries a request id for support: meta.requestId, or a top-level requestId in a reply without meta (such as a refusal before admission).body.city.body.seller_id and reading single ads for photos and attributes.seller block, including is_business and active_ads.body.page runs from 1 to 5000, and a page past the last one returns 0 rows.body.query, total is capped at about 999, and total_is_exact is false at totals of 990 to 999.body.filters needs body.category, and an unknown filter key or value is rejected by the operation.body.category path is rejected instead of searching without a category.body.sort set to relevance needs body.query.body.price_min and body.price_max start at 0, while body.id and body.seller_id start at 1.Call bazaraki-categories without body.category to read the top level, then call it again with a row's path to read the level beneath it. Repeat until you reach the brand, model or property type you want. The final path is the value for body.category in bazaraki-filters and bazaraki-search, and it should be used exactly as the row returned it.
Send the Cars path as body.category and put the criteria in body.filters, for example fuel-type set to Electric and year_min set to 2021. A range key is the filter slug with a min or max suffix added, and a value is the published label or its code. Call bazaraki-filters for the same category first to see which keys and choices exist.
Use real-estate-to-rent/apartments-flats as body.category, then add number-of-bedrooms and area_min as keys inside body.filters. Add body.city for one district and body.price_max for a price ceiling in EUR. Read the exact keys and choices for the category from bazaraki-filters before you build the object, and check multi to see which filters take several choices.
Send the row's id as body.id to bazaraki-listing, and add the row's slug as body.slug to skip a small lookup that is otherwise resolved from the id. The id is also the number in an ad's address, and a full ad URL is accepted in body.id as well.
Each page holds 30 rows, and body.page selects the page, starting at 1. Keep the other inputs unchanged, raise body.page by 1 per call and stop when has_more says no further rows follow. The page field in data confirms which page you received, and total gives the match total for the search.
Take the seller's id from the seller block of any search row and send it as body.seller_id to bazaraki-search. Combine it with body.category to narrow the ads to one category, and page through the result with body.page. Each row repeats a compact seller block whose id is the value you sent.
Read is_business inside the seller block of a search row or of a listing; it separates business sellers from private ones. The block of a listing goes further with is_company, verified, active_ads and posting_since, and it adds profile_url, website and contact_channels. A search row keeps a shorter block, so open the ad with bazaraki-listing when you need those extra details.
Search with body.category and set body.sort to newest, then store the id of every row you have seen and compare on the next run. VIP and TOP rows are listed before regular ones, so read the whole first page instead of stopping at the first familiar id. Open only the unfamiliar rows with bazaraki-listing when you need the ad detail.