brands
brands
Page 3 of 3.
Overview
Request
curl example
curl -sS \ "https://example-data.com/api/v1/brands?limit=25"
JavaScript example
const res = await fetch(
"https://example-data.com/api/v1/brands?limit=25"
);
const { data, meta } = await res.json(); TypeScript example
// Download once: mkdir -p types && curl -o types/brands.d.ts https://example-data.com/types/brands.d.ts
import type { Brand, ListEnvelope } from "./types/brands";
const res = await fetch(
"https://example-data.com/api/v1/brands?limit=25"
);
const { data, meta } = (await res.json()) as ListEnvelope<Brand>; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/brands",
params={"limit": 25},
)
data = res.json() Response
{
"data": [
{
"id": 49,
"name": "Herzog Group",
"slug": "herzog-group-49",
"description": "Public-key modular customer loyalty",
"logoUrl": "https://picsum.photos/seed/brand-49/200/200",
"website": "https://example.com/brands/herzog-group",
"foundedYear": 2005,
"headquartersCountryAlpha2": "CL",
"createdAt": "2017-06-12T05:44:28.118Z"
},
{
"id": 50,
"name": "Hyatt, Thompson and Hessel",
"slug": "hyatt-thompson-and-hessel-50",
"description": "Public-key asymmetric attitude",
"logoUrl": "https://picsum.photos/seed/brand-50/200/200",
"website": null,
"foundedYear": 1979,
"headquartersCountryAlpha2": "MX",
"createdAt": "2022-06-17T07:22:57.205Z"
}
],
"meta": {
"page": 3,
"limit": 24,
"total": 50,
"totalPages": 3
},
"links": {
"self": "/api/v1/brands?page=3&limit=24",
"first": "/api/v1/brands?page=1&limit=24",
"last": "/api/v1/brands?page=3&limit=24",
"next": null,
"prev": "/api/v1/brands?page=2&limit=24"
}
}