Model lines for one manufacturer
GET
/v1/catalog/brands/{brand_id}/models
const url = 'https://api.avtopodatki.si/v1/catalog/brands/1/models?available=true&offset=0&with_total=true';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.avtopodatki.si/v1/catalog/brands/1/models?available=true&offset=0&with_total=true' \ --header 'Authorization: Bearer <token>'A manufacturer’s models. A model appears once per body style (e.g. as a saloon and as a coupé), each with its own starting price and variants.
Requires the catalog.read permission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”brand_id
required
Brand Id
Brand id.
integer
Brand id.
Query Parameters
Section titled “Query Parameters”available
Available
true (default): currently on sale; false: no longer on sale; any: both.
string
true (default): currently on sale; false: no longer on sale; any: both.
offset
Offset
Results to skip.
integer
Results to skip.
with_total
With Total
Include the total count. Set false for faster responses.
boolean
Include the total count. Set false for faster responses.
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
Page[ModelOut]
object
items
required
Items
Array<object>
ModelOutA model in one body style.
object
available
required
Available
Whether it is currently on sale.
boolean
first_seen_at
required
First Seen At
string format: date-time
last_seen_at
required
Last Seen At
string format: date-time
discontinued_at
id
required
Id
integer
brand_id
required
Brand Id
integer
name
required
Name
Model name as shown on avto.net, sometimes with a trailing colon (serija 1:).
string
body_style
site_body_type
body_code
required
Body Code
Avto.net’s body type code.
string
currency
required
Currency
string
limit
required
Limit
integer
offset
required
Offset
integer
Example generated
{ "items": [ { "available": true, "first_seen_at": "2026-04-15T12:00:00Z", "last_seen_at": "2026-04-15T12:00:00Z", "discontinued_at": "2026-04-15T12:00:00Z", "id": 1, "brand_id": 1, "name": "example", "body_style": "example", "site_body_type": "example", "body_code": "example", "price_from": "example", "currency": "example", "image_url": "example" } ], "total": 1, "limit": 1, "offset": 1}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Example generated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}