catalog

Generations of a model

get/models/{id}/generations

Request

  • Base URL: https://api.cars-data.com/v1
  • URL: https://api.cars-data.com/v1/models/{id}/generations
  • Auth: one of:
    • API key in header X-Api-Key
    • HTTP bearer

Path parameters

idstring required
Example:m_1a2b3c4d

Opaque model token, m_ followed by 8 hex characters.

Query parameters

locale'ar' | 'bg' | 'cs' | 'da' | 'de' | 'el' | 'en' | 'es' | 'fr' | 'hr' | 'hu' | 'it' | 'no' | 'pl' | 'pt' | 'ro' | 'sk' | 'sr' | 'sv' | 'tr'

One of the 20 published languages. Anything else — including a language the site does not publish — falls back to en silently.

cursorstring
Example:c_0a1b2c3d

Opaque pagination token — hand back the links.next value from the previous page. Omit it for the first page. A token that cannot be read restarts from the first page rather than failing, so a client holding a stale cursor pages again instead of breaking.

limitinteger

Page size, 1–50. Values above 50 are clamped to 50.

Response

OK

Example response

{
  "data": [
    {
      "generation_id": "g_1a2b3c4d",
      "model_id": "m_1a2b3c4d"
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.