Documentation
Back Market API technical reference
Reference for the Back Market API: market codes, category ids, search input formats, paging limits and the fields of search rows and product offers.
See also: Back Market API overview and prices · Back Market API guide: search, compare and page offers
On this page
Back Market API market list
backmarket-markets takes no input and returns markets, a list of storefronts. In each row, market is the code to send as body.market elsewhere, host is the storefront's hostname, locale is its language setting and currency is the currency of its prices. status tells the supported storefronts apart from the others in the list.
Besides the 15 supported storefronts the list also names the French and Spanish ones, which exist but are not offered, and two hostnames that do not resolve. The catalogue operations refuse a market code outside the supported 15, and country is accepted as an alternative name for body.market wherever that input appears.
Fields in this section (2)
backmarket-markets, body.market
Category tree entries and ids
In the categories list, a top-level entry is a broad group from the storefront's navigation and its children are the categories inside that group. id is the number to send as body.category_id in a search, for example 2 for Smartphone, name is the entry's name, title is its label in the language of the selected market and type says what kind of entry it is. A child also carries an image.
The tree comes from the navigation of one storefront, so it shows what that market actually sells. Request it for the same market you will search, because the titles follow that market's language and the groups follow its navigation.
Fields in this section (3)
backmarket-categories, body.market, body.category_id
Fields of a search row
Each entry of products is a product listing, and its fields fall into groups:
- Identity:
product_idnames the product,offer_idandlisting_ididentify the offer, andtitle,model_name,urlandimagedescribe it - Price:
pricewith itscurrency, the printed form inprice_display, and the new-retail comparison inprice_new_referenceandprice_new_reference_display - Discounts:
discount_pct_vs_newis the discount against the new price,has_dealshows whether a Back Market deal applies andflash_sale_discount_pctis a seller flash sale discount - Condition:
grade,grade_valueandgrade_labelgive the appearance grade by name, number and printed wording, withconditionalongside - Device:
brand,model,colour,category,category_id,connector,sim_lock,specs_summaryandcolour_optionsdescribe the device itself and its colour variants - Offer terms:
stock,warranty_monthsandseller_id, withrating,rating_countandscoresfor the product's rating figures
Fields in this section (1)
backmarket-search
Search input formats and paging
A search can carry a keyword, filters or both, and each filter narrows the same result set. Their formats follow the storefront's own:
body.queryis free text as typed into the site's search box, such as macbook air m1 or galaxy s22, andqandkeywordare accepted as alternative namesbody.modelmatches a whole lower-case model name, so a model search for iphone 13 leaves out iphone 13 probody.brandis the lower-case manufacturer key, for example apple, samsung, google, lenovo or dellbody.colouris the colour in the market's language, andcoloris accepted as an alternative namebody.storageis the capacity with its unit and a space: 64 GB, 128 GB, 256 GB, 512 GB or 1 TBbody.gradetakes the grade names, which stand for the market-independent numbers returned asgrade_value, whilegrade_labelcarries the storefront's own wording, such as Gut, Fair or Buono for value 12
A call with neither a keyword nor a filter is accepted and browses the catalogue of the market. Rows are limited to about 1000 per query however many products match, so a larger body.page_size only needs fewer pages to reach that ceiling, and a page past the last returns 0 rows instead of repeating the last page.
body.sort follows the storefront's own index for each of its values, and body.deals_only keeps products with a Back Market deal or a seller flash sale. body.price_min and body.price_max are read in the selected market's currency.
Fields in this section (16)
backmarket-search, body.market, body.query, body.model, body.brand, body.colour, body.storage, body.grade, body.price_min, body.price_max, body.deals_only, body.category_id, body.sort, body.page, body.page_size, body.include_facets
Product detail: the product and its offers
backmarket-detail returns one product object for the product it is given, and its fields fall into groups:
- Description:
title,brand,model,colourandcategorydescribe the item,specs_summarysummarises the storage andcolour_optionslists the colours - Rating:
ratingandrating_countgive the product rating and the number of reviews behind it, andscoresholds Back Market's own repairability, camera, performance, screen and longevity scores - Offers:
offersholds the seller offers, cheapest first, with the same fields as a search row, so the grade, price, stock, warranty and seller id of an offer sit together - Summary:
grades_available,sellers_count,offers_count,price_minandprice_maxsummarise those offers in the same response, andprice_min_displayis the printed form of the lowest price
body.product_id takes the UUID found in the product_id of a search row or at the end of a product page address. A full product URL is accepted as well and the id is taken out of it, and id and uuid are accepted as alternative names. A product id that is not on sale in the chosen market is refused instead of answered with an empty result.
Fields in this section (4)
backmarket-detail, body.product_id, body.market, body.grade
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/backmarket/backmarket-categories
List the product categories of one storefront with their ids and local titles.
Input fields
| Field | Type | Required | Default | Allowed values | Limits |
|---|---|---|---|---|---|
body.market | string | Optional | "de" | 15 values"de""us""gb""it""nl""be""at""pt""fi""ie""gr""sk""se""jp""au" | — |
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/backmarket/backmarket-categories' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"market":"de"}}'Product offers
POST /api/v1/backmarket/backmarket-detail
Read one product together with its seller offers, grades and prices.
Input fields
| Field | Type | Required | Default | Allowed values | Limits |
|---|---|---|---|---|---|
body.product_id | string | Required | — | — | — |
body.grade | string | Optional | — | "premium""excellent""very_good""good" | — |
body.market | string | Optional | "de" | 15 values"de""us""gb""it""nl""be""at""pt""fi""ie""gr""sk""se""jp""au" | — |
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/backmarket/backmarket-detail' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"market":"de","product_id":"ef5660d2-6883-4b81-b47d-86e5720687ef"}}'Supported markets
POST /api/v1/backmarket/backmarket-markets
List the storefronts with their hosts, locales and currencies.
Input fields
This operation takes no input fields. Send the JSON request body shown below.
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/backmarket/backmarket-markets' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{}}'Product search
POST /api/v1/backmarket/backmarket-search
Search or browse one storefront by keyword, grade, price and deal filters.
Input fields
| Field | Type | Required | Default | Allowed values | Limits |
|---|---|---|---|---|---|
body.brand | string | Optional | — | — | — |
body.category_id | integer | Optional | — | — | -9007199254740991–9007199254740991 |
body.colour | string | Optional | — | — | — |
body.deals_only | boolean | Optional | false | — | — |
body.grade | string | Optional | — | "premium""excellent""very_good""good" | — |
body.include_facets | boolean | Optional | true | — | — |
body.market | string | Optional | "de" | 15 values"de""us""gb""it""nl""be""at""pt""fi""ie""gr""sk""se""jp""au" | — |
body.model | string | Optional | — | — | — |
body.page | integer | Optional | 1 | — | 1–9007199254740991 |
body.page_size | integer | Optional | 24 | — | 1–100 |
body.price_max | number | Optional | — | — | ≥ 0 |
body.price_min | number | Optional | — | — | ≥ 0 |
body.query | string | Optional | — | — | — |
body.sort | string | Optional | "best_sellers" | "best_sellers""price_asc""price_desc" | — |
body.storage | 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/backmarket/backmarket-search' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"market":"de","page_size":24,"query":"iphone 13"}}'How calls work
POST /api/v1/backmarket/<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: