example-data.com
Menu
Browse docs and collections

Overview

sneakers / #37

Adidas Stan Smith (Blue/Navy/White)

Adidas Stan Smith (Blue/Navy/White)

Adidas

USD325.00

Component variants

Request

curl example

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

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/sneakers/37"
);
const sneaker = await res.json();

TypeScript example

// Download once: mkdir -p types && curl -o types/sneakers.d.ts https://example-data.com/types/sneakers.d.ts
import type { Sneaker } from "./types/sneakers";

const res = await fetch(
  "https://example-data.com/api/v1/sneakers/37"
);
const sneaker = (await res.json()) as Sneaker;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/sneakers/37"
)
sneaker = res.json()

Response

{
  "id": 37,
  "brand": "Adidas",
  "model": "Stan Smith",
  "colorway": "Blue/Navy/White",
  "style": "Basketball",
  "releaseDate": "2019-11-27",
  "retailPrice": 325,
  "currency": "USD",
  "imageUrl": "https://picsum.photos/seed/sneaker-37/800/600",
  "sizesAvailable": [
    "7",
    "8",
    "8.5",
    "10.5",
    "11.5"
  ],
  "gender": "unisex",
  "createdAt": "2019-11-27T15:18:11.763Z"
}