contract 2026-10-05
Endpoints

Top offers

Live auctions our pipeline judged to be priced below their market reference. Same deals as /api/v1/vehicles?sort=top_offers, but each card additionally carries the reference the verdict was made against.

GET

/api/v1/top-offers

Feed of auctions priced below their market reference, newest comparison first.

Requires the top-offers scope.

Unversioned path, original response shape: /api/top-offers

Parameters

page / page_sizeinteger · query string

1-based page and rows per page, as alternatives to offset and limit. Do not combine page with offset or page_size with limit.

Example 1 / 50·Where the value comes from Pagination state in your application.

sitestring · query string

Comma-separated source slugs. An unknown value returns 400.

Example openlane·Where the value comes from /api/v1/sites -> data.items[].name

site_excludestring · query string

Comma-separated source slugs to leave out. Same rules as on /api/v1/vehicles.

Example copart·Where the value comes from /api/v1/sites -> data.items[].name

steeringenum · query string

Left- or right-hand drive, in any of the spellings /api/v1/vehicles accepts.

Example left·Where the value comes from left | lhd | left-hand | left_hand, or right | rhd | right-hand | right_hand — any other value is a 400.

brandstring · query string

Exact clean_make, case-insensitive.

Example BMW·Where the value comes from /api/v1/vehicles -> data.items[].clean_make

modelstring · query string

Exact clean_model, case-insensitive.

Example 3 Series·Where the value comes from /api/v1/vehicles -> data.items[].clean_model

countrystring · query string

Vehicle country code, case-insensitive, matched exactly. Unlike /api/v1/vehicles, the europe pseudo-country is not supported here — it would match nothing. Pass ISO codes.

Example DE·Where the value comes from /api/v1/countries -> data.items[].value

year_from / year_tointeger · query string

First-registration year bounds.

Example 2018 / 2024·Where the value comes from Year bounds chosen by your user.

kilometers_from / kilometers_tointeger · query string

Mileage bounds.

Example 0 / 150000·Where the value comes from Mileage bounds chosen by your user.

price_from / price_tointeger · query string

Public EUR price bounds.

Example 5000 / 25000·Where the value comes from EUR budget chosen by your user.

min_savings_pctinteger · query string

Only offers saving at least this percentage.

Example 20·Where the value comes from Threshold chosen by your application.

sortenum · query string

Default savings_pct. An unknown value is a 400 listing the valid values.

Example savings_pct·Where the value comes from Choose savings_pct, savings, price_low, price_high, or newest.

limit / offsetinteger · query string

Or page_size / page. Default 50, max 100 (up to 500 on a key granted bulk pages), offset capped at 5000. This envelope carries total, limit, offset and total_pages only — no page, page_size or max_page. Page by offset.

Example 24 / 0·Where the value comes from Pagination state in your application.

cursorstring · query string

Read the page after the one that returned this value. Send it on its own: it already carries the position and the page size, so combining it with limit, page_size, offset or page is a 400. Keep every filter and sort unchanged between pages.

Example eyJvIjoxMDAsImwiOjEwMH0·Where the value comes from next_cursor of the previous response.

fieldsstring · query string

Comma-separated fields to keep on each item. id and site are always kept. Trims a page to what you use.

Example clean_make,clean_model,prices·Where the value comes from Your choice.

formatenum · query string

csv or ndjson returns the items as a file instead of JSON. The next cursor is in the X-Next-Cursor header and the total in X-Total-Count.

Example csv·Where the value comes from json, csv or ndjson.

currencystring · query string

Express every entry of prices in this currency at the ECB reference rate. The rate used is returned as fx. prices.native is never converted. Default EUR.

Example USD·Where the value comes from An ISO 4217 code.

Example requests

Request
GET https://api.thecarapi.com/api/v1/top-offers?site=openlane&min_savings_pct=20&limit=24
GET https://api.thecarapi.com/api/v1/top-offers?brand=BMW&country=DE&sort=savings&page=2&page_size=20
Sends the first example with the sandbox key. Sample data only.

Example response

json
{
  "success": true,
  "data": {
    "items": [
      {
        "id": "8842711",
        "site": "openlane",
        "car_name_en": "BMW 320d Touring",
        "clean_make": "BMW",
        "clean_model": "3 Series",
        "is_top_offer": true,
        "top_offer_savings": 2500,
        "top_offer_savings_pct": 21.7,
        "market_reference": {
          "price_eur": 11500,
          "mileage": 165000,
          "km_difference": -15000,
          "explanation": "Rule: this car must save at least 1,800 EUR — ..."
        },
        "prices": {
          "start": null,
          "current": null,
          "buy_now": null,
          "final": null,
          "public": {
            "amount": 9000,
            "currency": "EUR"
          },
          "landed_current": null,
          "landed_buy_now": null,
          "native": null
        }
      }
    ]
  },
  "pagination": {
    "total": 318,
    "limit": 24,
    "offset": 0,
    "page": null,
    "page_size": null,
    "total_pages": 14,
    "max_page": null,
    "next_cursor": null
  }
}

What you get back

data.items[]object[]

A standard search result card plus the top-offer fields below. One difference from a search card: no image annotations. These rows carry thumbnail_url as stored, but not served_thumbnail_url, not images[], and not image_status / image_source. Fetch photos from /api/v1/vehicles/{site}/{id} (vault_gallery) or /api/v1/vehicles/{site}/{id}/images.

data.items[].is_top_offerboolean

Always true on this feed. Also present on /api/v1/vehicles cards.

data.items[].top_offer_savingsnumber

Absolute EUR saving against the market reference.

data.items[].top_offer_savings_pctnumber

Saving as a percentage of the reference price. Default sort key.

data.items[].market_reference.price_eurnumber

The reference price this car was measured against.

data.items[].market_reference.mileageinteger

The reference mileage, so you can judge whether the comparison is like-for-like.

data.items[].market_reference.km_differenceinteger

This car’s mileage minus the reference. Negative means this car has done fewer kilometres.

data.items[].market_reference.explanationstring

The rule that admitted this car to the feed, in words — e.g. the minimum EUR saving it had to clear.