Autochek used-car marketplace API: from body types and makes to a narrowed search
Building a filtered search starts with the two reference lists search depends on:
- Call autochek-makes and keep the
idnext to the make name you want, such as Toyota's 106. - Call autochek-body-types the same way for a body style such as SUV's 3 or Sedan's 8.
- Send both ids as
body.make_idandbody.body_type_idon autochek-search, together with the requiredbody.country.
Both reference lists return the same 257 makes and 21 body types no matter which of the five markets the search that follows will target, so this lookup only has to be repeated when a new make or body style is needed, not for every country.
Reading price, financing and condition signals before opening a listing
A search result from autochek-search already carries enough to shortlist listings without opening each one:
- Compare
priceagainstprice_beforeon each row to see which listings are already marked down. - Check
financing_available,inspected,accidentedandwarrantytogether, since none of the four implies another. - Set
body.warranty_onlyorbody.auction_onlytotrueto keep only the listings that carry one of those two flags, rather than filtering the full result set by hand afterward.
autochek-search also keeps grade_score and listing_score on the row, so a shortlist can be ranked on either figure before a single autochek-listing-detail call is spent confirming the rest.
From a search result to full listing detail
Once a row looks worth a closer look:
- Take that row's
listing_idstraight from the autochek-search result. - Send it as
body.listing_idto autochek-listing-detail; the row's ownurlworks the same way, as docar_idand the plainid, so whichever value is already on hand can be sent unchanged. - Read the fields only autochek-listing-detail carries:
financing_termsfor the financing arrangement itself,vin,exterior_colorandinterior_colorfor the vehicle, andfeaturesfor its feature tags; a search row already carriesmonthly_installmentandloan_value, so only the arrangement's own terms call for this extra step.
damage_count is worth checking here too, since a search row's accidented only says yes or no while this count says how many records stand behind that yes. autochek-listing-detail's own country field confirms which market that listing belongs to, matching the value already sent as body.country on the search that found it.
Searching for one model when there is no model filter
Autochek has no working id filter for a single model, so finding one goes through a different path:
- Call autochek-models with
body.make_idset to confirm the model exists under that make and to read its displayname. - Send that same
name, or a shorter word from it, asbody.queryon autochek-search rather than as a numeric id. - Keep
body.make_idon the same call so the free-text match only has to disambiguate within one make's listings rather than across the whole market.
A model id read from autochek-models is useful for confirming a model belongs to a make, but sending that id to autochek-search in place of body.query returns nothing, even for a model genuinely in current inventory.
Walking a full locations or makes list page by page
Both reference lists can be read in full rather than one page at a time:
- Call autochek-locations or autochek-makes with
body.limitset to its own maximum of 500 to cut the number of calls needed. - Raise
body.pageonly while the previous response'shas_morestayed true. - Stop once
has_morecomes back false;last_pageon that same response confirms there is no page left unread.
autochek-locations additionally takes body.kind set to city with a body.state_id to walk just one state's cities instead of the combined list every market shares. The same page-by-page approach applies to autochek-body-types, whose own has_more and last_page behave identically despite its far smaller 21-row list.
Comparing the same listing's figures across markets
body.country takes one of five values:
ng: Nigeriake: Kenyagh: Ghanaug: Ugandaci: Côte d'Ivoire
Each market's rows carry their own currency alongside price, so a figure read from one market is never comparable to another market's figure without converting it first. Repeating the same body.query or body.make_id filter across two values of body.country, such as ng and ke, returns two separate result sets rather than one combined one, since each call only ever searches the single market named in that call. market is accepted in place of body.country on every one of these calls, so a form field already named that way reaches the same filter unchanged.
Autochek used-car marketplace in brief
Buyers use the marketplace to find a vehicle, arrange financing through partner lenders and locate a workshop for servicing, while dealerships are given tools such as condition analysis for the cars they list. When Autochek enters a new country, it appoints a country manager whose role includes growing the marketplace by connecting mainstream dealers, lenders and buyers in that market.
[
{
"body": {
"limit": 500
}
},
{
"body": {
"country": "ng",
"make_id": 106,
"limit": 10
}
}
]{
"body": {
"country": "ke",
"warranty_only": true,
"transmission": "automatic",
"limit": 15
}
}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/autochek/autochek-body-types' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"page":1}}'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.
Autochek API: used-car search, listings and reference data overview and prices · Read the API reference · Try it in the playground