Vehicle listing lookup
Looks up one Autocasion vehicle listing by its canonical URL and returns its cash price, financing figure, description, vehicle detail, equipment and seller.
Loading / 加载中…
Autocasion Vehicle Listings API · Classifieds & second-hand data
Autocasion Vehicle Listings API has two operations drawn from Spain's Autocasion marketplace. One answers a single vehicle's cash price, a separate financing figure, its description, vehicle detail, equipment and a public seller when one is listed. The other pages through current BMW or Audi listings and reports how many match, which page to request next, and whether a far page ran past the available results.
JSON in, a structured response out. Every public gateway endpoint uses POST.
Looks up one Autocasion vehicle listing by its canonical URL and returns its cash price, financing figure, description, vehicle detail, equipment and seller.
Searches current Autocasion listings for one brand at a time and pages through the matching BMW or Audi results.
A single call to autocasion-listing returns a vehicle's cash price next to a financing figure, each one kept apart from the other rather than combined into a single total. body.id is what drives this lookup: it takes the vehicle's own canonical URL, the same address a listing carries on the Autocasion site, rather than a shorter numeric identifier a buyer might otherwise expect to send. A shortened form of that address, or an internal reference number copied from the page instead, would not reach this same vehicle through autocasion-listing.
Beyond its two price figures, autocasion-listing answers a free-text description of the vehicle, a set of vehicle detail covering the car itself, and a separate list of its equipment, kept apart from the vehicle detail rather than merged into it. When Autocasión has no seller on record for a vehicle, that absence is the only thing missing from the answer; every other part of it comes back exactly as it would for a vehicle that does have one. Treating equipment and vehicle detail as two distinct pieces, rather than one combined block, matters for a caller that wants to show them separately.
body.query chooses the brand for this call:
bmw: searches current BMW listingsaudi: searches current Audi listingsThere is no combined search covering both brands in a single request, and no free-text brand name takes the place of either slug. Switching brands between calls means sending the other slug on the next call rather than adding it alongside the first. A value outside those two slugs is rejected outright, with no default or fallback brand applied.
body.page is optional on autocasion-search and takes a whole number from 1 up to 100, starting at 1 when the input is left out entirely. Raising body.page on a later call moves further into that brand's result set rather than starting the search over, since body.query stays the input that chooses the brand while body.page alone moves through it. Because body.page's range runs all the way to 100, a caller working through a brand with far fewer matching listings than that can still send a high page number without the input itself being out of range, even once the actual results for that brand have run out.
Beyond the page items themselves, each response from autocasion-search carries two further signals about the brand named by body.query: one marking whether a further page follows the one just read, and a second marking whether the page just requested has already run past that brand's results. The first of these is next_page; the second is a clamp status, read next to the matching total for that brand. These two signals read differently: a page that runs past the available results is not the same outcome as a page that simply returns none, and the clamp status is what lets a caller tell the two apart rather than treating every empty-feeling page the same way.
Autocasión is Spain's online car-classifieds portal, controlled by Classifieds Development, a subsidiary of the Vocento media group. In December 2018, Autocasión's Spanish car-classifieds business combined with AutoScout24's Spanish unit in a joint venture, bringing the two under one marketplace.
That combined marketplace gives dealers and financing companies a platform to sell used and new cars and motorbikes online, rather than limiting listings to one vehicle type or one kind of seller. Classifieds Development's stake in Autocasión began at 40 percent, bought for 7.2 million euros, before the AutoScout24 combination widened the marketplace it sits behind.
{
"body": {
"id": "https://www.autocasion.com/coches-segunda-mano/bmw-serie-1-ocasion/116d-8-ref20399160"
}
}POST /api/v1/autocasion/<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).autocasion-search call names a single brand through body.query, set to bmw or audi.body.page takes whole numbers from 1 to 100, with 1 as the default when it is left out.autocasion-listing's body.id takes the listing's own canonical URL rather than a separate numeric identifier.Call autocasion-listing with body.id set to the address the vehicle's own page uses on the Autocasion site. The response covers that one vehicle's price detail, its write-up and equipment, and any seller Autocasion has on record for it. This lookup takes no second input, so that address is everything the call needs.
No. Reaching the other brand means sending a second call with that input changed, not adding a second brand to the same request; there is no value that covers both brands together. autocasion-search also accepts no alias for either slug, so bmw and audi are the only two strings that choose a brand.
No, it is optional. Leaving body.page out on autocasion-search reads the first page of whichever brand body.query names, since the default is 1. Send body.page only once you want a later page, raising it one step at a time up to its ceiling of 100.
No. autocasion-listing keeps these two numbers apart because they answer different questions: the cash price is what paying outright costs, and the financing figure is a separate way of paying for the same vehicle rather than an extra amount stacked on top of it. Treat the two as alternatives to compare side by side, not values to add.
Not always. A seller is part of the response only where Autocasion itself has one on record for that vehicle; otherwise the call still answers with the price, financing figure, description, vehicle detail and equipment, just without a seller entry. Check for that entry rather than assuming it will be there.
autocasion-search signals this two ways: one marker on the response reports whether more follows, and a separate status on it reports once the requested page has outrun that brand's own count of matches. Once either one shows that nothing further is coming for that brand, sending a higher body.page next would not change the outcome.