example-data.com
Menu
Browse docs and collections

Overview

brands / #9

Component variants

Request

curl example

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

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/brands/9"
);
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/9"
);
const brand = (await res.json()) as Brand;

Python example

import requests

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

Response

{
  "id": 9,
  "name": "Beatty and Sons",
  "slug": "beatty-and-sons-9",
  "description": "Expanded zero administration support",
  "logoUrl": "https://picsum.photos/seed/brand-9/200/200",
  "website": "https://example.com/brands/beatty-and-sons",
  "foundedYear": 1989,
  "headquartersCountryAlpha2": "ES",
  "createdAt": "2023-01-28T17:21:03.635Z"
}