example-data.com
Menu
Browse docs and collections

Overview

brands / #48

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 48,
  "name": "Volkman - Price",
  "slug": "volkman-price-48",
  "description": "Virtual static collaboration",
  "logoUrl": "https://picsum.photos/seed/brand-48/200/200",
  "website": "https://example.com/brands/volkman-price",
  "foundedYear": 1997,
  "headquartersCountryAlpha2": "CH",
  "createdAt": "2020-05-30T16:40:23.628Z"
}