example-data.com
Menu
Browse docs and collections

Overview

sneakers / #28

Jordan Air Jordan 3 (White/Gray/Pink)

Jordan Air Jordan 3 (White/Gray/Pink)

Jordan

USD325.00

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 28,
  "brand": "Jordan",
  "model": "Air Jordan 3",
  "colorway": "White/Gray/Pink",
  "style": "Skateboarding",
  "releaseDate": "2018-10-10",
  "retailPrice": 325,
  "currency": "USD",
  "imageUrl": "https://picsum.photos/seed/sneaker-28/800/600",
  "sizesAvailable": [
    "7.5",
    "8",
    "8.5",
    "9",
    "9.5",
    "10",
    "10.5",
    "11",
    "13"
  ],
  "gender": "men",
  "createdAt": "2018-10-10T15:54:11.086Z"
}