example-data.com
Menu
Browse docs and collections

Overview

sneakers / #13

Jordan Air Jordan 5 (Pink/Green/Yellow)

Jordan Air Jordan 5 (Pink/Green/Yellow)

Jordan

USD85.00

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 13,
  "brand": "Jordan",
  "model": "Air Jordan 5",
  "colorway": "Pink/Green/Yellow",
  "style": "Trail",
  "releaseDate": "2018-11-14",
  "retailPrice": 85,
  "currency": "USD",
  "imageUrl": "https://picsum.photos/seed/sneaker-13/800/600",
  "sizesAvailable": [
    "7",
    "7.5",
    "8",
    "8.5",
    "9",
    "10",
    "11",
    "11.5",
    "13"
  ],
  "gender": "unisex",
  "createdAt": "2018-11-14T00:02:54.191Z"
}