List marketplaces
GET
/v1/market/sites
const url = 'https://api.avtopodatki.si/v1/market/sites';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/market/sites \ --header 'Authorization: Bearer <token>'The marketplaces listings come from.
Use the id as site_id in other market endpoints. enabled: false means
the marketplace is currently not being updated.
Requires the market.read permission.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Successful Response
Media typeapplication/json
Response Market List Sites
Array<object>
SiteOutobject
id
required
Id
integer
slug
required
Slug
string
name
required
Name
string
base_url
required
Base Url
string
enabled
required
Enabled
boolean
Example generated
[ { "id": 1, "slug": "example", "name": "example", "base_url": "example", "enabled": true }]