example-data.com
Menu
Browse docs and collections

Overview

brands / #25

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 25,
  "name": "Wehner, O'Hara and Ferry",
  "slug": "wehner-o-hara-and-ferry-25",
  "description": "Sharable responsive knowledge user",
  "logoUrl": "https://picsum.photos/seed/brand-25/200/200",
  "website": "https://example.com/brands/wehner-o-hara-and-ferry",
  "foundedYear": 2011,
  "headquartersCountryAlpha2": "AU",
  "createdAt": "2018-01-06T20:58:27.745Z"
}