Ендпойнти
SEO помощници
Build popular landing pages and resolve brand/model URL slugs.
Справочникът на ендпойнтите е на английски, както и самият API.
List the most common live brand/model searches.
Изисква обхвата seo scope.
Параметри
limitinteger · query stringNumber of results from 1 to 200. Default 20.
Пример 50·Откъде идва стойността 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=50Примерен отговор
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.
Изисква обхвата seo scope.
Параметри
brand_slugstring · query stringзадължителенBrand slug, such as bmw.
Пример bmw·Откъде идва стойността /api/seo/popular-searches -> results[].brand_slug
model_slugstring · query stringзадължителенModel slug, such as 320d.
Пример 320d·Откъде идва стойността /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=xc60Примерен отговор
json
{
"success": true,
"brand": "BMW",
"model": "320d"
}