Endpoints
SEO helpers
Build popular landing pages and resolve brand/model URL slugs.
List the most common live brand/model searches.
Requires the seo scope.
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.
Example requests
Request
GET https://api.thecarapi.com/api/seo/popular-searchesGET https://api.thecarapi.com/api/seo/popular-searches?limit=50Example response
json
{
"success": true,
"results": [
{
"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.
Parameters
brand_slugstring · query stringrequiredBrand slug, such as bmw.
Example bmw·Where the value comes from /api/seo/popular-searches -> results[].brand_slug
model_slugstring · query stringrequiredModel slug, such as 320d.
Example 320d·Where the value comes from /api/seo/popular-searches -> results[].model_slug
Example requests
Request
GET https://api.thecarapi.com/api/seo/brand-model-from-slug?brand_slug=bmw&model_slug=320dGET https://api.thecarapi.com/api/seo/brand-model-from-slug?brand_slug=volvo&model_slug=xc60Example response
json
{
"success": true,
"brand": "BMW",
"model": "320d"
}