example-data.com
Menu
Browse docs and collections

Overview

brands / #38

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 38,
  "name": "Bartoletti, Kirlin and Romaguera",
  "slug": "bartoletti-kirlin-and-romaguera-38",
  "description": "Sharable local moratorium",
  "logoUrl": "https://picsum.photos/seed/brand-38/200/200",
  "website": "https://example.com/brands/bartoletti-kirlin-and-romaguer",
  "foundedYear": 1995,
  "headquartersCountryAlpha2": "US",
  "createdAt": "2023-03-14T09:29:05.643Z"
}