example-data.com
Menu
Browse docs and collections

Overview

brands / #20

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 20,
  "name": "Ward LLC",
  "slug": "ward-llc-20",
  "description": "Customer-focused reciprocal middleware",
  "logoUrl": "https://picsum.photos/seed/brand-20/200/200",
  "website": "https://example.com/brands/ward-llc",
  "foundedYear": 2013,
  "headquartersCountryAlpha2": "CN",
  "createdAt": "2024-03-07T04:41:31.607Z"
}