example-data.com
Menu
Browse docs and collections

Overview

brands / #34

Component variants

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/brands/34" \
  -H "Accept: application/json"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/brands/34"
);
const brand = 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 } from "./types/brands";

const res = await fetch(
  "https://example-data.com/api/v1/brands/34"
);
const brand = (await res.json()) as Brand;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/brands/34"
)
brand = res.json()

Response

{
  "id": 34,
  "name": "Haag, Oberbrunner and Mills",
  "slug": "haag-oberbrunner-and-mills-34",
  "description": "Integrated resilient model",
  "logoUrl": "https://picsum.photos/seed/brand-34/200/200",
  "website": "https://example.com/brands/haag-oberbrunner-and-mills",
  "foundedYear": 2013,
  "headquartersCountryAlpha2": "NO",
  "createdAt": "2017-12-20T01:18:36.581Z"
}