Documentation
Bien'ici API technical reference
Reference for the Bien'ici API: how ad ids, search filters, paging and keyword tokens work, and what the fields of a listing and of a search result mean.
See also: Bien'ici API overview and prices · Bien'ici API guide: search, follow and compare listings
On this page
Bien'ici API single-listing read and its options
bienici-listing reads one advertisement, which body.ad_id identifies by its id or by its full URL. url and id are accepted as alternative names for body.ad_id.
With body.include_pii on, the listing also carries the contact person's name and phone together with the name of an independent agent. body.max_rotations sets how many attempts the operation makes before it gives up, and an invalid value is ignored so that the default applies.
Fields in this section (4)
bienici-listing, body.ad_id, body.include_pii, body.max_rotations
Listing record: identity, price, place and seller
data holds one listing, and its top-level fields fall into groups:
- Identity:
ad_id,reference,title,urlandstatusidentify the advertisement and its state - Dates:
published_atandupdated_atgive the publication and update dates - Price:
priceandcurrency, withprice_is_from,price_max,price_not_publishedandprice_has_decreaseddescribing the price - Place:
locationholdscity,zipcode,district,department_id,country,latitude,longitude,coordinates_precisionandcoordinates_radius_m - Seller:
sellerholdstype,account_type,name,sirenandhas_phone - Media:
thumbnail,image_countandimagescarry the photos, anddescriptioncarries the text
Fields in this section (1)
bienici-listing
Property fields inside a listing
property describes the home itself:
- Kind:
property_type,transactionandis_new_buildname the kind of home, the deal type and whether it is a new build, andavailable_fromgives the date it can be taken - Size:
surface_m2andsurface_max_m2give the living surface,land_surface_m2the land, androoms,bedrooms,bathrooms,shower_roomsandtoiletsthe room counts - Building:
floor,floors_in_building,elevator,building_year,heating_typeandorientation - Extras:
balcony,terrace,garden,pool,cellar,parking_spacesandfurnishedshow the amenities, andfeatureslists further features - Energy:
energy_classandghg_class, withenergy_consumption_kwh_m2,ghg_emissions_kg_m2,annual_energy_cost_minandannual_energy_cost_max - Money:
price_per_m2,rent_excluding_charges,monthly_charges,charges_included,security_deposit,rental_fees,agency_fees_paid_by,agency_fees_pct,price_excluding_feesandannual_condo_charges - Rules:
rent_controlholds the rent control details andvirtual_tour_urllinks to a virtual tour
Fields in this section (1)
bienici-listing
Search inputs and how they combine
bienici-search reads one transaction at a time. body.zipcode takes a 5-digit French postcode, alone or with a town name in body.city, and body.property_type accepts several values together, so one search can mix apartments and houses; leaving it out searches every type.
body.query holds keywords that must all appear in the title or description, with accents and case ignored. The operation scans results for those keywords, which is why total is null for a keyword search and why the scan continues with a token.
body.price_min and body.price_max are in EUR, and for rentals they limit the monthly rent, service costs included. body.rooms_min and body.rooms_max count rooms (pièces) while body.bedrooms_min counts bedrooms only, so a search can set a room range and a bedroom floor together. body.surface_min and body.surface_max bound the living surface in m²; body.new_build true keeps new-build homes only, false existing homes only.
Fields in this section (13)
bienici-search, body.city, body.zipcode, body.property_type, body.query, body.price_min, body.price_max, body.surface_min, body.surface_max, body.rooms_min, body.rooms_max, body.bedrooms_min, body.new_build
Paging window, sort order and continuation tokens
Results beyond the first 2,500 of a search are out of reach. body.page picks the page inside that window and body.limit sets the rows per page, up to 100.
A keyword search, and a postcode inside a town with several postcodes, continue by token: the next_page_token of one page goes into body.page_token of the next call to resume the same scan. price_asc and surface_asc put the lowest figures first, while price_desc and surface_desc put the highest first.
Fields in this section (5)
bienici-search, body.page, body.limit, body.page_token, body.sort
Fields of a search result
listings holds one row per listing, and each row has the same fields as a single listing. These fields sit around the rows:
count: how many rows this page holdstotal: how many results matchpageandlimit: the page and the page size that were readhas_more: whether more results follownext_page_token: the continuation token that goes intobody.page_tokensort_applied: the order that was usedlocation_applied: the place the search resolved to, withname,typeandpostal_codestext_match: the keyword matching, withmode,scannedandmatched
Fields in this section (1)
bienici-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.
Listing detail
POST /api/v1/bienici/bienici-listing
Read one listing with its photos, price, energy class and agency.
Input fields
| Field | Type | Required | Default | Allowed values | Limits |
|---|---|---|---|---|---|
body.ad_id | string | Required | — | — | — |
body.include_pii | boolean | Optional | false | — | — |
body.max_rotations | integer | Optional | 3 | — | 1–5 |
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/bienici/bienici-listing' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"ad_id":"ag691943-549827780"}}'Listing search
POST /api/v1/bienici/bienici-search
Search listings for sale or rent by place, price, surface, rooms and property type.
Input fields
| Field | Type | Required | Default | Allowed values | Limits |
|---|---|---|---|---|---|
body.transaction | string | Required | — | "sale""rent" | — |
body.bedrooms_min | integer | Optional | — | — | 1–20 |
body.city | string | Optional | — | — | — |
body.include_pii | boolean | Optional | false | — | — |
body.limit | integer | Optional | 24 | — | 1–100 |
body.max_rotations | integer | Optional | 3 | — | 1–5 |
body.new_build | boolean | Optional | — | — | — |
body.page | integer | Optional | 1 | — | 1–2500 |
body.page_token | string | Optional | — | — | — |
body.price_max | number | Optional | — | — | ≥ 0 |
body.price_min | number | Optional | — | — | ≥ 0 |
body.property_type | string[] | Optional | — | 12 values"apartment""house""land""parking""building""office""commercial""loft""townhouse""castle""new_build_programme""other" | — |
body.query | string | Optional | — | — | — |
body.rooms_max | integer | Optional | — | — | 1–20 |
body.rooms_min | integer | Optional | — | — | 1–20 |
body.sort | string | Optional | "relevance" | "relevance""newest""price_asc""price_desc""surface_asc""surface_desc" | — |
body.surface_max | number | Optional | — | — | ≥ 0 |
body.surface_min | number | Optional | — | — | ≥ 0 |
body.zipcode | 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/bienici/bienici-search' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"city":"Lyon","transaction":"sale"}}'How calls work
POST /api/v1/bienici/<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: