example-data.com
Menu
Browse docs and collections

Overview

brands / #45

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 45,
  "name": "Braun, Strosin and Terry",
  "slug": "braun-strosin-and-terry-45",
  "description": "Advanced disintermediate system engine",
  "logoUrl": "https://picsum.photos/seed/brand-45/200/200",
  "website": "https://example.com/brands/braun-strosin-and-terry",
  "foundedYear": 1948,
  "headquartersCountryAlpha2": "IE",
  "createdAt": "2018-05-31T12:51:03.139Z"
}