Catalog
Build slug-addressable manufacturer and model-group navigation. All catalog list routes paginate with a default limit of 50 and are capped at offset 5000 — a deeper page is a 400 naming the limit. They carry page, page_size and max_page.
Paginated manufacturer catalog with inventory counts.
Requires the catalog scope.
Unversioned path, original response shape: /api/catalog/manufacturers
Parameters
countrystring · query stringRestrict to a country or europe.
Example DE·Where the value comes from /api/v1/countries -> data.items[].value
limit / offset / page / page_sizeinteger · query stringStandard pagination. Default limit 50.
Example 20 / 0·Where the value comes from Pagination state in your application.
cursorstring · query stringRead the page after the one that returned this value. Send it on its own: it already carries the position and the page size, so combining it with limit, page_size, offset or page is a 400. Keep every filter and sort unchanged between pages.
Example eyJvIjoxMDAsImwiOjEwMH0·Where the value comes from next_cursor of the previous response.
fieldsstring · query stringComma-separated fields to keep on each item. id and site are always kept. Trims a page to what you use.
Example clean_make,clean_model,prices·Where the value comes from Your choice.
formatenum · query stringcsv or ndjson returns the items as a file instead of JSON. The next cursor is in the X-Next-Cursor header and the total in X-Total-Count.
Example csv·Where the value comes from json, csv or ndjson.
Example requests
GET https://api.thecarapi.com/api/v1/catalog/manufacturers?country=DE&limit=20GET https://api.thecarapi.com/api/v1/catalog/manufacturers?page=2&page_size=25Example response
{
"success": true,
"data": {
"items": [
{
"slug": "bmw",
"name": "BMW",
"inventory_count": 1543,
"brand_id": 12
}
]
},
"pagination": {
"total": 96,
"limit": 50,
"offset": 0,
"page": null,
"page_size": null,
"total_pages": 2,
"max_page": 2,
"next_cursor": null
}
}Resolve one manufacturer by slug.
Requires the catalog scope.
Unversioned path, original response shape: /api/catalog/manufacturers/{slug}
Parameters
slugstring · in the URL pathrequiredManufacturer slug.
Example bmw·Where the value comes from /api/v1/catalog/manufacturers -> data.items[].slug
countrystring · query stringOptional country restriction.
Example DE·Where the value comes from /api/v1/countries -> data.items[].value
Example requests
GET https://api.thecarapi.com/api/v1/catalog/manufacturers/bmwGET https://api.thecarapi.com/api/v1/catalog/manufacturers/bmw?country=DEExample response
{
"success": true,
"data": {
"manufacturer": {
"slug": "bmw",
"name": "BMW",
"inventory_count": 1543,
"brand_id": 12
}
}
}Return aggregate manufacturer statistics.
Requires the catalog scope.
Unversioned path, original response shape: /api/catalog/manufacturers/stats
Parameters
countrystring · query stringOptional country restriction.
Example DE·Where the value comes from /api/v1/countries -> data.items[].value
Example requests
GET https://api.thecarapi.com/api/v1/catalog/manufacturers/statsGET https://api.thecarapi.com/api/v1/catalog/manufacturers/stats?country=DEExample response
{
"success": true,
"data": {}
}Paginated model groups for one manufacturer.
Requires the catalog scope.
Unversioned path, original response shape: /api/catalog/model-groups
Parameters
manufacturer__slugstring · query stringrequiredParent manufacturer slug.
Example bmw·Where the value comes from /api/v1/catalog/manufacturers -> data.items[].slug
searchstring · query stringSubstring filter on model name.
Example 320·Where the value comes from Free text entered by your user.
countrystring · query stringOptional country restriction.
Example DE·Where the value comes from /api/v1/countries -> data.items[].value
limit / offset / page / page_sizeinteger · query stringStandard pagination. Default limit 50.
Example 20 / 0·Where the value comes from Pagination state in your application.
cursorstring · query stringRead the page after the one that returned this value. Send it on its own: it already carries the position and the page size, so combining it with limit, page_size, offset or page is a 400. Keep every filter and sort unchanged between pages.
Example eyJvIjoxMDAsImwiOjEwMH0·Where the value comes from next_cursor of the previous response.
fieldsstring · query stringComma-separated fields to keep on each item. id and site are always kept. Trims a page to what you use.
Example clean_make,clean_model,prices·Where the value comes from Your choice.
formatenum · query stringcsv or ndjson returns the items as a file instead of JSON. The next cursor is in the X-Next-Cursor header and the total in X-Total-Count.
Example csv·Where the value comes from json, csv or ndjson.
Example requests
GET https://api.thecarapi.com/api/v1/catalog/model-groups?manufacturer__slug=bmw&search=320GET https://api.thecarapi.com/api/v1/catalog/model-groups?manufacturer__slug=bmw&country=DE&page=2&page_size=20Example response
{
"success": true,
"data": {
"items": [
{
"slug": "320d",
"name": "320d",
"inventory_count": 210,
"manufacturer_slug": "bmw"
}
]
},
"pagination": {
"total": 34,
"limit": 50,
"offset": 0,
"page": null,
"page_size": null,
"total_pages": 1,
"max_page": 1,
"next_cursor": null
}
}Resolve one model group by slug.
Requires the catalog scope.
Unversioned path, original response shape: /api/catalog/model-groups/{slug}
Parameters
slugstring · in the URL pathrequiredModel-group slug.
Example 320d·Where the value comes from /api/v1/catalog/model-groups -> data.items[].slug
manufacturer__slugstring · query stringManufacturer slug for disambiguation.
Example bmw·Where the value comes from /api/v1/catalog/manufacturers -> data.items[].slug
countrystring · query stringOptional country restriction.
Example DE·Where the value comes from /api/v1/countries -> data.items[].value
Example requests
GET https://api.thecarapi.com/api/v1/catalog/model-groups/320d?manufacturer__slug=bmwGET https://api.thecarapi.com/api/v1/catalog/model-groups/320d?manufacturer__slug=bmw&country=DEExample response
{
"success": true,
"data": {
"model_group": {
"slug": "320d",
"name": "320d",
"inventory_count": 210,
"manufacturer_slug": "bmw"
}
}
}