example-data.com
Menu
Browse docs and collections

Overview

brands / #42

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 42,
  "name": "Ernser LLC",
  "slug": "ernser-llc-42",
  "description": "Cross-platform interactive database",
  "logoUrl": "https://picsum.photos/seed/brand-42/200/200",
  "website": "https://example.com/brands/ernser-llc",
  "foundedYear": 2019,
  "headquartersCountryAlpha2": "IT",
  "createdAt": "2022-12-21T03:35:27.256Z"
}