GET
1 token
Years for Brand
/v1/pc/years
List of production years by brand
Параметры
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
brand_id
|
integer query | обязательный | Brand ID (`id`) from /v1/pc/brands |
22
|
Пример запроса
GET https://cdn.plan.parts/api/v1/pc/years?brand_id=22
Authorization: Bearer your_api_key
Пример ответа
{
"success": true,
"data": {
"years": [
{
"id": 4850,
"year": "Utility 2019"
},
{
"id": 4851,
"year": "Utility 2018"
}
],
"breadcrumbs": []
}
}
Попробовать в песочнице
Test this endpoint with real data in the Developer Portal sandbox.
Попробовать в песочнице →Карта не нужна
Стоимость
Each successful call to this endpoint deducts 1 token from your balance. Tokens are only deducted on 2xx responses.