example-data.com
Menu
Browse docs and collections

Overview

sneakers / #26

Jordan Air Jordan 4 (Red/Brown/Yellow)

Jordan Air Jordan 4 (Red/Brown/Yellow)

Jordan

USD200.00

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 26,
  "brand": "Jordan",
  "model": "Air Jordan 4",
  "colorway": "Red/Brown/Yellow",
  "style": "Trail",
  "releaseDate": "2022-11-19",
  "retailPrice": 200,
  "currency": "USD",
  "imageUrl": "https://picsum.photos/seed/sneaker-26/800/600",
  "sizesAvailable": [
    "7",
    "7.5",
    "9",
    "9.5",
    "10",
    "10.5",
    "11",
    "11.5",
    "12"
  ],
  "gender": "men",
  "createdAt": "2022-11-19T20:28:06.326Z"
}