договор 2026-10-05
Ендпойнти

Vehicle Scan

The Vehicle Scan tool over the API: saved vehicle requests and the auction and classifieds offers that match them. These are the same requests the account sees in the portal. Scope: vehiclescan, granted per contract, and the key’s account must also be granted Vehicle Scan.

Справочникът на ендпойнтите е на английски, както и самият API.

GET

/api/vehiclescan/access

Whether the key’s account may use Vehicle Scan, and its limits.

Изисква обхвата vehiclescan scope.

Example request

Request
GET https://api.thecarapi.com/api/vehiclescan/access

Примерен отговор

json
{
  "success": true,
  "limits": {
    "requests": 20,
    "vehicles_per_request": 5,
    "matches_per_request": 200
  }
}
GET

/api/vehiclescan/options

Makes, fuels and gearboxes for a request, or one make’s models.

Изисква обхвата vehiclescan scope.

Параметри

brandstring · query string

Returns this make’s models instead.

Пример BMW·Откъде идва стойността /api/vehiclescan/options -> makes

countrystring · query string

Narrows the options to one country.

Пример DE·Откъде идва стойността Your user’s market.

Example requests

Request
GET https://api.thecarapi.com/api/vehiclescan/options
GET https://api.thecarapi.com/api/vehiclescan/options?brand=BMW

Примерен отговор

json
{
  "success": true,
  "makes": [
    "BMW"
  ],
  "fuels": [
    "Diesel"
  ],
  "gearboxes": [
    "Automatic"
  ]
}
GET

/api/vehiclescan/requests

The account’s vehicle requests.

Изисква обхвата vehiclescan scope.

Example request

Request
GET https://api.thecarapi.com/api/vehiclescan/requests

Примерен отговор

json
{
  "success": true,
  "requests": [
    {
      "id": 5,
      "active": true,
      "criteria": [
        {
          "make": "BMW",
          "model": "320d",
          "year_from": 2018
        }
      ],
      "matches_found": 41
    }
  ]
}
POST

/api/vehiclescan/requests

Save a vehicle request.

Изисква обхвата vehiclescan scope.

Параметри

criteriaobject[] · JSON bodyзадължителен

1 to 5 vehicles, each with a make.

Пример [{"make": "BMW", "model": "320d", "year_from": 2018}]·Откъде идва стойността /api/vehiclescan/options

Example request

Request
POST https://api.thecarapi.com/api/vehiclescan/requests
{"criteria": [{"make": "BMW", "model": "320d", "year_from": 2018}]}

Примерен отговор

json
{
  "success": true,
  "id": 5,
  "matches_found": 41
}
PUT

/api/vehiclescan/requests/{request_id}

Replace a request’s vehicles.

Изисква обхвата vehiclescan scope.

Параметри

request_idinteger · in the URL pathзадължителен

The request id.

Пример 5·Откъде идва стойността /api/vehiclescan/requests -> requests[].id

criteriaobject[] · JSON bodyзадължителен

1 to 5 vehicles, each with a make. Matching restarts from the offers listed now.

Пример [{"make": "BMW", "model": "330d"}]·Откъде идва стойността /api/vehiclescan/options

Example request

Request
PUT https://api.thecarapi.com/api/vehiclescan/requests/5
{"criteria": [{"make": "BMW", "model": "330d"}]}

Примерен отговор

json
{
  "success": true,
  "id": 5,
  "matches_found": 12
}
DELETE

/api/vehiclescan/requests/{request_id}

Delete a request.

Изисква обхвата vehiclescan scope.

Параметри

request_idinteger · in the URL pathзадължителен

The request id.

Пример 5·Откъде идва стойността /api/vehiclescan/requests -> requests[].id

Example request

Request
DELETE https://api.thecarapi.com/api/vehiclescan/requests/5

Примерен отговор

json
{
  "success": true
}
POST

/api/vehiclescan/requests/{request_id}/active

Pause or resume a request.

Изисква обхвата vehiclescan scope.

Параметри

request_idinteger · in the URL pathзадължителен

The request id.

Пример 5·Откъде идва стойността /api/vehiclescan/requests -> requests[].id

activeboolean · JSON bodyзадължителен

false pauses matching, true resumes it.

Пример false·Откъде идва стойността Your choice.

Example request

Request
POST https://api.thecarapi.com/api/vehiclescan/requests/5/active
{"active": false}

Примерен отговор

json
{
  "success": true
}
GET

/api/vehiclescan/requests/{request_id}/matches

Offers matching a request.

Изисква обхвата vehiclescan scope.

Параметри

request_idinteger · in the URL pathзадължителен

The request id.

Пример 5·Откъде идва стойността /api/vehiclescan/requests -> requests[].id

Example request

Request
GET https://api.thecarapi.com/api/vehiclescan/requests/5/matches

Примерен отговор

json
{
  "success": true,
  "offers": [
    {
      "site_name": "openlane",
      "auction_id": 11409652,
      "is_new": true
    }
  ],
  "retail": [
    {
      "reference_id": "tp-91744022",
      "is_new": false
    }
  ],
  "limited": false
}

Какво получавате

offers / retailobject[]

Auctions and classifieds respectively, up to 200 each. is_new marks offers found since the request was saved; dismissed offers are left out.

limitedboolean

True when there were more than 200 of either.

DELETE

/api/vehiclescan/requests/{request_id}/matches/{auction_id}

Dismiss an auction offer from a request.

Изисква обхвата vehiclescan scope.

Параметри

request_idinteger · in the URL pathзадължителен

The request id.

Пример 5·Откъде идва стойността /api/vehiclescan/requests -> requests[].id

auction_idinteger · in the URL pathзадължителен

The auction to dismiss.

Пример 11409652·Откъде идва стойността /api/vehiclescan/requests/{request_id}/matches -> offers[].auction_id

Example request

Request
DELETE https://api.thecarapi.com/api/vehiclescan/requests/5/matches/11409652

Примерен отговор

json
{
  "success": true
}
DELETE

/api/vehiclescan/requests/{request_id}/retail/{reference_id}

Dismiss a classifieds offer from a request.

Изисква обхвата vehiclescan scope.

Параметри

request_idinteger · in the URL pathзадължителен

The request id.

Пример 5·Откъде идва стойността /api/vehiclescan/requests -> requests[].id

reference_idstring · in the URL pathзадължителен

The classified listing to dismiss.

Пример tp-91744022·Откъде идва стойността /api/vehiclescan/requests/{request_id}/matches -> retail[].reference_id

Example request

Request
DELETE https://api.thecarapi.com/api/vehiclescan/requests/5/retail/tp-91744022

Примерен отговор

json
{
  "success": true
}