SEO helpers
Build popular landing pages and resolve brand/model URL slugs.
List the most common live brand/model searches.
Requires the seo scope.
Unversioned path, original response shape: /api/seo/popular-searches
Parameters
limitinteger · query stringNumber of results from 1 to 200. Default 20.
Example 50·Where the value comes from Result count chosen by your application.
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/seo/popular-searchesGET https://api.thecarapi.com/api/v1/seo/popular-searches?limit=50Example response
{
"success": true,
"data": {
"items": [
{
"brand": "BMW",
"model": "320d",
"brand_slug": "bmw",
"model_slug": "320d",
"count": 210
}
]
}
}Resolve brand and model slugs to their canonical display names.
Requires the seo scope.
Unversioned path, original response shape: /api/seo/brand-model-from-slug
Parameters
brand_slugstring · query stringrequiredBrand slug, such as bmw.
Example bmw·Where the value comes from /api/v1/seo/popular-searches -> data.items[].brand_slug
model_slugstring · query stringrequiredModel slug, such as 320d.
Example 320d·Where the value comes from /api/v1/seo/popular-searches -> data.items[].model_slug
Example requests
GET https://api.thecarapi.com/api/v1/seo/brand-model-from-slug?brand_slug=bmw&model_slug=320dGET https://api.thecarapi.com/api/v1/seo/brand-model-from-slug?brand_slug=volvo&model_slug=xc60Example response
{
"success": true,
"data": {
"brand": "BMW",
"model": "320d"
}
}