example-data.com
Menu
Browse docs and collections

Overview

sneakers / #11

Jordan Air Jordan 3 (Tan/Red)

Jordan Air Jordan 3 (Tan/Red)

Jordan

USD180.00

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 11,
  "brand": "Jordan",
  "model": "Air Jordan 3",
  "colorway": "Tan/Red",
  "style": "Running",
  "releaseDate": "2020-07-21",
  "retailPrice": 180,
  "currency": "USD",
  "imageUrl": "https://picsum.photos/seed/sneaker-11/800/600",
  "sizesAvailable": [
    "7",
    "8",
    "9.5",
    "13"
  ],
  "gender": "unisex",
  "createdAt": "2020-07-21T11:23:11.218Z"
}