vin

Decode up to 1,000 VINs

Changed on

Decodes up to 1,000 VINs in one call, each billed as one decode. You get one row per VIN, in the order you sent them; a bad VIN fails only its own row.

post/v2/vin/batch

Request

  • Base URL
    https://api.cardog.app
  • Auth
    • API key in header x-api-key
    • or HTTP bearer

Query parameters

profile, 'vpic'

vpic answers in NHTSA vPIC's response shape, so code written for vPIC works unchanged; a malformed VIN is then answered the way vPIC answers it, and not billed. On batch, vPIC's form body (data=VIN1;VIN2) is accepted too. See the vPIC migration guide. Leave it out for the normal response.

market, 'CA' | 'US'

Name the build as this market's maker does. With CA, a Hyundai Tucson the US sells as SEL comes back as Preferred, and trimMarket is CA. When the market has no name of its own on file, trim is the neutral name and trimMarket is null. Omit for the neutral, US-filed name. catalogueTrim and names (every market's name) are returned either way.

Headers

Idempotency-Key, string

Any string up to 255 characters, one per logical call (a UUID works). A retry with the same key and the same body within 24 hours returns the first response and is not billed again. The same key with a different body or query string runs as a new request. Keys are scoped to the API key that sent them. Every rule, including a retry sent while the first call is still running: Request ids and retries.

Request body

VinBatchRequest required
vins, string[] required

1 to 1000 VINs. Each is billed as one decode.

Response

One row per VIN, in the order sent

union required
VinBatchResponse required
OR
VpicDecodeVinValues required

Changes

    • info

      added the new optional query request parameter market

    • info

      added the optional property oneOf[#/components/schemas/VinBatchResponse]/results/items/anyOf[subschema #1]/identity/catalogueTrim to the response with the status

    • info

      added the optional property oneOf[#/components/schemas/VinBatchResponse]/results/items/anyOf[subschema #1]/identity/names to the response with the status

    2 more changes in this revision