Using the autolina.ch API from a make to a full listing
A cascading make-model-listing flow needs only four calls:
- Call
autolina-makeswith no input and store each make'smake_idandcount. - Send the chosen
make_idasbody.maketoautolina-modelsand store each model'smodel_idandmodel_group_id. - Send that
model_idasbody.model_id, together with the earliermake_idasbody.make_id, toautolina-search. - Take the
listing_idof a row that interests you and send it toautolina-listingfor the full record.
Sending body.model_group_id instead of body.model_id at step three matches every model in that group at once, useful when a shopper has picked a model family such as Golf rather than one exact variant.
Narrowing a search before opening any listing
Stacking filters on autolina-search before a single listing is opened keeps a shopper from reading cars that were never going to qualify:
- Set
body.price_minandbody.price_maxto the budget, both inclusive. - Add
body.mileage_maxandbody.year_minto bound how used or how old a car can be. - Add
body.cantonwith one or several two-letter codes to keep the search to the cantons a buyer can reasonably reach. - Add
body.fuelfor a specific drive energy, and setbody.sorttoprice_ascormileage_ascto read the cheapest or least-driven match first.
Any value sent for body.canton or body.fuel outside their own fixed lists is rejected outright, so a typo in either filter surfaces immediately rather than quietly widening the search back out to the whole catalogue. body.body_type and body.transmission can be added to the same call to match a shape such as estate or suv together with automatic or manual, narrowing the search on build as well as on budget.
Paging one dealer's stock through search
A dealer's own stock is read through autolina-search rather than through autolina-dealer itself:
- Take a
dealer_idfromautolina-dealer, from anautolina-dealersrow, or from a listing's own seller.dealer_id field. - Send it as
body.dealer_idtoautolina-search, withbody.limitset to the row count wanted per page. - Raise
body.pagefor as long as the previous page returned exactlybody.limitrows, stopping once a page returns fewer.
body.limit tops out at 100 rows a page and body.page at 10000, with nothing below that ceiling limiting how far paging can be carried, so paging can be carried as far as that dealer's own stock goes, no matter how many rows it holds.
Finding a dealer by name, make or quality seal
A dealer can be found through autolina-dealers before its own full profile is ever opened:
- Send part of a name as
body.query, or amake_idfromautolina-makesasbody.make_id, toautolina-dealers. - Add
body.quality_seal_idset to22,23or24to keep only dealers carrying that seal. - Take the
dealer_idof a row that matches and send it toautolina-dealerfor the address, every contact channel and themakes_in_stocklist.
body.query, body.make_id and body.quality_seal_id can all be sent together on the same call, narrowing the directory on name, make and seal at once rather than one filter at a time.
Tracking newly listed cars for one model group
Watching a model group for new arrivals is a repeated call rather than a one-off search:
- Send the group's
model_group_id, read fromautolina-models, asbody.model_group_idtoautolina-search. - Add body.listed_within_days, set to
1,2,3,7,14or30, to keep only cars put online that recently. - Set
body.sorttonewestso the most recently listed car always leads the response. - Repeat the same call later with the same
model_group_idand compare whichlisting_idvalues are new.
Leaving body.sort at its default relevance instead would still favour newly listed cars, but mixed in with any premium placement, which makes a plain newest-first read through newest the more exact choice for this kind of watch.
Checking inspection, warranty and seller type before contacting a seller
A listing's inspection status and warranty are worth checking before any seller is contacted:
- Set
body.mfk_inspectedtotrueonautolina-searchto keep only listings that passed the Swiss roadworthiness check. - Take the
listing_idof a row that matches and send it toautolina-listing. - Read
inspection_date,warranty.has_warranty,warranty.typeandwarranty.texton the full listing for the inspection date and the exact warranty terms a bare pass or fail does not carry. - Read
seller.typeto tell a dealer from a private individual before using any of the seller's own contact fields.
A private seller's seller.phone, seller.mobile_phone, seller.whatsapp and seller.email identify and reach that individual directly, unlike the same fields on a dealer's listing, which reach a business rather than a named person. equipment.standard and equipment.optional on the same listing separate the features already fitted from those added as options, worth checking alongside seller.offers_test_drive before a visit is arranged.
About autolina.ch
One of the sellers using autolina.ch to reach private buyers is a Swiss corporate fleet operator, moving part of its own used-vehicle inventory through the marketplace. Independent dealers and private individuals list there as well.
[
{
"body": {
"make": "vw"
}
},
{
"body": {
"make_id": "52",
"model_group_id": "74",
"sort": "price_asc",
"year_min": 2018
}
}
]{
"body": {
"listing_id": "5000000"
}
}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/autolina/autolina-dealer' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"dealer_id":"9990"}}'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.
autolina.ch API: Swiss car listings, dealers and models overview and prices · Read the API reference · Try it in the playground