example-data.com
Menu
Browse docs and collections

Overview

brands / #15

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 15,
  "name": "Dare, Carroll and Willms",
  "slug": "dare-carroll-and-willms-15",
  "description": "Open-source AI-powered capability",
  "logoUrl": "https://picsum.photos/seed/brand-15/200/200",
  "website": "https://example.com/brands/dare-carroll-and-willms",
  "foundedYear": 2014,
  "headquartersCountryAlpha2": "FR",
  "createdAt": "2018-05-31T11:21:52.642Z"
}