example-data.com
Menu
Browse docs and collections

Overview

brands / #14

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 14,
  "name": "Lubowitz Inc",
  "slug": "lubowitz-inc-14",
  "description": "Stand-alone full-range architecture",
  "logoUrl": "https://picsum.photos/seed/brand-14/200/200",
  "website": "https://example.com/brands/lubowitz-inc",
  "foundedYear": 1956,
  "headquartersCountryAlpha2": "SE",
  "createdAt": "2024-06-22T13:17:48.321Z"
}