Nike Pegasus 40 (Navy/Yellow)
Nike
USD340.00
sneakers / #33
Nike
USD340.00
curl -sS \
"https://example-data.com/api/v1/sneakers/33" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/sneakers/33"
);
const sneaker = await res.json();import type { Sneaker } from "https://example-data.com/types/sneakers.d.ts";
const res = await fetch(
"https://example-data.com/api/v1/sneakers/33"
);
const sneaker = (await res.json()) as Sneaker;import requests
res = requests.get(
"https://example-data.com/api/v1/sneakers/33"
)
sneaker = res.json() {
"id": 33,
"brand": "Nike",
"model": "Pegasus 40",
"colorway": "Navy/Yellow",
"style": "Lifestyle",
"releaseDate": "2018-12-31",
"retailPrice": 340,
"currency": "USD",
"imageUrl": "https://picsum.photos/seed/sneaker-33/800/600",
"sizesAvailable": [
"5.5",
"6",
"6.5",
"9",
"9.5"
],
"gender": "women",
"createdAt": "2018-12-31T11:18:13.984Z"
}