example-data.com
Menu
Browse docs and collections

Overview

brands / #2

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 2,
  "name": "Jerde, O'Hara and Roberts",
  "slug": "jerde-o-hara-and-roberts-2",
  "description": "Polarised immersive function",
  "logoUrl": "https://picsum.photos/seed/brand-2/200/200",
  "website": "https://example.com/brands/jerde-o-hara-and-roberts",
  "foundedYear": 2003,
  "headquartersCountryAlpha2": "NL",
  "createdAt": "2017-07-02T17:15:50.414Z"
}