CarMetadataGet a free key

Response fields

Overview

{
  "request_id": "d8d5aad1-6c1e-4b0a-9f3e-2a7c5b8e4d10",
  "no_car": false,
  "view": "exterior",
  "identity": {
    "level": "generation",
    "top50": false,
    "brand": { "name": "bmw", "confidence": 0.9244 },
    "model": { "name": "3 Series", "confidence": 0.9148 },
    "generation": { "name": "G20/G21", "start_year": 2019, "end_year": null, "confidence": 0.7843 }
  },
  "detection": {
    "license_plates": [
      { "bbox": [0.1763, 0.4377, 0.3073, 0.5466], "confidence": 0.9511, "also": [] }
    ]
  }
}

This is an illustrative Generation-tier answer with ?addons=plates. The names are strings as our data stores them, so do not rely on their letter case.

Field Type Description
request_id string A unique id for this call, also sent as the X-Request-Id header.
no_car boolean true when the photo has no car. Then identity is null.
view string The kind of photo: exterior, interior, detail, spare_part or no_car. On every plan, with no add-on.
identity object or null The brand, model and generation. Which fields it has depends on your plan.
color object or null Only with color. The car’s body colour, read from the car’s box; null for other views or when no car box is found.
damage object or null Only with damage or deep_damage. Damaged or not, severity, kinds, zones, boxes and mode; null when the photo shows no car.
angle object Only with angle. The camera angle.
interior_subtype object or null Only with angle. Which part of the interior, for interior photos, otherwise null.
detection object Only with plates or parts.
car_polygon object or null Only with polygon.
cars array Only with cars=all. Every car in the photo, the main car first, see below.

identity

Field Type Description
level string generation, model, brand or none: the deepest level this answer is confident at.
top50 boolean true when the answer is one of the Greece top-50 models. The confidence thresholds are calibrated on these models; other models have unreviewed labels.
brand object name and confidence. Always present.
model object name and confidence. Model and Generation plans.
generation object name, start_year, end_year and confidence. Generation plan only. end_year is null while the generation is still being made.

confidence is a number from 0 to 1.

What level means

level says how far you can trust the answer. If it says model, the brand and model are confident and the generation you get on a Generation plan is a best guess. If it says none, every field is a best guess.

The finer fields are returned anyway so that you decide how far to trust them: show them when level reaches them, or use the confidence values to set your own threshold. Do not show a generation as fact when level is model or below.

On a Brand or Model plan level is capped at your tier, so a Brand plan sees brand at most, and a Model plan model at most.

view

view says what kind of photo you sent, and so why identity is null when it is. The car is named from outside views only.

view The photo shows identity
exterior A car from outside, at any angle filled
interior The inside of a car null
detail A close-up of a car null
spare_part A part on its own null
no_car No car (no_car is true) null

Use it to sort listing photos: outside views first, interior photos after them. Which outside angle a photo shows, and which part of the interior, come with the angle add-on.

damage

With the damage or deep_damage add-on, on any plan:

"damage": {
  "damaged": true,
  "confidence": 0.97,
  "severity": { "label": "replace", "confidence": 0.71 },
  "kinds": [{ "label": "dent", "confidence": 0.98 }, { "label": "lamp", "confidence": 0.62 }],
  "zones": [{ "label": "front_bumper", "confidence": 0.95 }, { "label": "bonnet", "confidence": 0.81 }],
  "boxes": [{ "label": "dent", "confidence": 0.82, "bbox": [0.41, 0.55, 0.52, 0.71] }],
  "mode": "normal"
}
  • damaged: whether the photo shows damage: dents, crushed panels, scratches through the paint, broken glass or lights, rust, a flat or broken tyre, missing or hanging parts, deployed airbags. Dirt, reflections and normal wear are not damage. confidence is how sure the model is.

  • severity: the worst damage visible, by the repair it needs: cosmetic, repairable, replace (a part to replace) or write_off. null when not damaged.

  • kinds: damage kinds seen, surest first: glass, lamp, dent, scratch, rust, tyre, missing, airbag, frame.

  • zones: where on the car, surest first, by the car’s own left and right (as if sitting in the driver’s seat): front_bumper, bonnet, windscreen, roof, rear_window, boot, rear_bumper, interior, underbody, and per side headlight, front_wing, front_wheel, mirror, front_door, rear_door, sill, rear_wheel, rear_quarter, taillight with _left or _right (for example front_door_left).

  • boxes: where on the photo the damage is, surest first, at most 10 (20 with deep_damage). Each box has a label (dent, scratch, broken_part, paint_chip, missing_part, flaking or corrosion), a confidence and a bbox of [x1, y1, x2, y2] from 0 to 1 of the photo’s width and height. Boxes are given only when a closer look at parts of the car is sure of damage, so most clean cars get an empty list. That closer look can also find small damage, such as a scratched bumper corner, that damaged misses: a photo can have boxes with damaged false. Parts the detector can take for damage are left out: a box on a badge or its letters, a plate’s screws or edge, an exhaust pipe, a wheel’s spokes or tyre, or a reflection in a lamp (a broken lamp is still boxed), and one spot named as two kinds is given once. Boxes are null on interior, detail and spare-part photos: they are drawn only on outside views of a whole car. Small dents seen only by the light on the panel are often missed.

  • mode: normal, or deep with the deep_damage add-on. The deep search looks on 20 smaller parts of the car, needs less sureness from the closer look and from each box, and gives up to 20 boxes, only on the car itself. It finds small scratches and scuffs the normal search misses, but its boxes are places to look rather than sure damage: glare and reflections on shiny paint can be boxed too. Choose how far it goes with the sensitivity query parameter:

    sensitivity Damaged photos with boxes Clean photos with boxes Boxes on a damaged photo
    low about 80% about 4% about 2
    normal (default) about 88% about 8% about 6
    high about 92% about 14% about 13

    Measured on our own listing photos, outside views only; the normal search (damage) boxes about 72% of damaged photos and 3% of clean ones. Start with normal, and use high when you would rather check a few false boxes than miss small damage.

Only kinds and zones the model answers reliably are returned; the list grows as the model learns more. kinds and zones are empty when the photo is not damaged, and zones can be empty for a damaged close-up whose place on the car cannot be told. The result describes this one photo: a photo of one side says nothing about the other side. damage is null when the photo shows no car.

color

color is { "label": "red", "confidence": 0.88 }, with the color add-on on any plan. It is read from the car’s box, not the background or other cars. The label is one of white, black, silver, grey, blue, red, green, yellow, orange, brown, beige or purple. Two-tone cars get their main colour. It is null when the photo is not an outside view (view is not exterior) or no car box was found.

Use it to tell apart cars of the same brand, model and generation in one upload. Lighting changes how paint looks: silver and grey, or white and beige, can swap under strong sun or shade, so use the confidence when it matters.

angle and interior_subtype

angle is { "label": "front_profile", "confidence": 0.91 }. The label is the camera angle or the kind of photo, one of front, front_profile, profile, rear_profile, rear, interior, detail or spare_part, or no_car when the photo has no car.

interior_subtype has the same shape but its own set of labels, and is only filled when angle.label is interior; otherwise it is null.

detection

Boxes share one shape:

Field Type Description
bbox array of 4 numbers [x1, y1, x2, y2], the top-left and bottom-right corners, normalised to 0..1 as a share of the image width (x) or height (y). Multiply by your image’s pixel size to blur or crop.
confidence number 0 to 1.
also array Other labels the detector considered for the same box, each { "label", "confidence" }. Often empty.
  • license_plates: a list of boxes, one per plate. Present with plates; an empty list when there are none.
  • whole_car: one box around the car, or null. Present with parts.
  • parts: a list of boxes, each with a label naming the part. Present with parts.

car_polygon

With polygon: { "points": [[x, y], …], "score": 0.8 }, a list of points that follow the car’s outline in order, and a score for the outline. It is null when no outline was found. The outline is made for any photo you send with polygon, interiors included, and billed; see You choose which photos get an add-on.

cars

With cars=all on the request: a list with one entry per car in the photo, so a car park photo with two cars names both. The top-level fields still describe one car (the one the photo is about), exactly as without cars=all.

"cars": [
  {
    "bbox": [0.0, 0.4039, 0.4562, 0.6781], "confidence": 0.93, "main": true, "view": "exterior",
    "identity": { "level": "generation", "top50": true, "brand": { "name": "nissan", "confidence": 0.99 },
                  "model": { "name": "Qashqai", "confidence": 0.98 }, "generation": { "name": "J11", "start_year": 2013, "end_year": 2021, "confidence": 0.9 } }
  },
  { "bbox": [0.5675, 0.4274, 0.9989, 0.7572], "confidence": 0.95, "main": false, "view": "exterior", "identity": { "level": "generation", "…": "…" } }
]
  • Each car is named from its own box cut out of the photo, so one car’s answer does not mix with another’s. identity stops at your plan’s level, as at the top level.
  • bbox and confidence: the car’s box and how sure the detector is that it is a car. main is true for the car the top-level fields describe: the car the photo is about, large and near the middle. When the photo shows several cars, the top-level answer is read from the main car’s own box, so it never mixes two cars.
  • view: as at the top level, for this car’s box. identity is null unless the box shows the car from outside.
  • The add-ons you asked for are given per car, read from that car’s box: angle, color, damage, polygon (the car’s outline, like car_polygon). The main car’s damage is read from the whole photo, as at the top level, and only the main car gets damage boxes: they are null on the other cars.
  • Only cars big enough to name are listed: at least 80 pixels on the shorter side of the box. Smaller cars, far in the background, are left out: the smaller the car, the more often it is named wrongly. A car that cannot be named even by brand (too dark, too far or mostly cut off by the edge of the photo) is still listed, with its box and identity null.
  • The cars are found by a detector made for photos with many cars, such as car parks and queues, so cars can list cars that the top-level detection boxes miss. It adds about +200% (≈3×) compared with a basic call, plus one short look per other car.
  • At most 5 cars, the main car first, then the others, larger and nearer the middle first.
  • A list with one car, or an empty list, is a normal answer: the detector found one car, or none big enough.
  • Each further car takes about as long again as a basic call, and with polygon about as long again as the polygon add-on (each outline is drawn on its own).
  • While cars=all is new, a call with it counts as one call, with each add-on billed once. This may change; we will say so here first.

Coordinates and photo orientation

Every box (bbox: [x1, y1, x2, y2]) and every polygon point ([x, y]) is normalised to 0..1 on the upright image, with the EXIF orientation already applied. If you draw on a phone photo, apply its EXIF orientation to the pixels first (browsers do this for you; many image libraries do not), or the boxes will land in the wrong place.

Not for critical decisions

The answers are model output and can be wrong, including confident ones. Do not use them for critical decisions.

No SLA: the service has no uptime or availability guarantee and no service credits. It is provided as is and may change, pause or stop at any time. Do not use it for critical decisions.