example-data.com
Menu
Browse docs and collections

Overview

brands / #7

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 7,
  "name": "Klein - Schroeder",
  "slug": "klein-schroeder-7",
  "description": "Networked human-resource process improvement",
  "logoUrl": "https://picsum.photos/seed/brand-7/200/200",
  "website": "https://example.com/brands/klein-schroeder",
  "foundedYear": 2014,
  "headquartersCountryAlpha2": "GB",
  "createdAt": "2017-04-06T01:42:33.574Z"
}