Batch lookups

Send up to 100 inputs for one product in a single request. Each item is validated, rate limited, billed and logged exactly as if you had sent it on its own, and one failing item never fails the others.

Request

POST /v1/batch with product and items, one object per lookup with the same fields as the single endpoint.

curl -X POST "https://api.hubcapdata.com/v1/batch" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"product": "decode", "items": [{"vin": "4T1B11HK6KU100001"}, {"vin": "5NMJBCAE7NH235366"}]}'

Response

Results come back in the order you sent them, each with its own request_id, ok, and either data and cost or an error. meta.cost is the total charged. Items that find nothing or fail cost nothing, as with single calls.

Products

Every lookup that takes a VIN, plate, code or model: decode, recalls, fuel_economy, plate, history, value, listings, specs, recalls_ymm, ev, vin_suggest, obd. Photos are sent one per request.

Limits

  • Up to 100 items per request.
  • Each item counts against your rate limit. If the limit is reached mid-batch, the remaining items return rate_limited; send them again after a minute.
  • Live items stop charging when your balance runs out; the rest return insufficient_credits.
All docs pages