example-data.com
Menu
Browse docs and collections

sneakers

sneakers

Page 2 of 4.

Overview

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/sneakers?limit=25"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/sneakers?limit=25"
);
const { data, meta } = 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, ListEnvelope } from "./types/sneakers";

const res = await fetch(
  "https://example-data.com/api/v1/sneakers?limit=25"
);
const { data, meta } = (await res.json()) as ListEnvelope<Sneaker>;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/sneakers",
    params={"limit": 25},
)
data = res.json()

Response

{
  "data": [
    {
      "id": 25,
      "brand": "New Balance",
      "model": "550",
      "colorway": "Navy/Yellow",
      "style": "Lifestyle",
      "releaseDate": "2017-09-16",
      "retailPrice": 110,
      "currency": "USD",
      "imageUrl": "https://picsum.photos/seed/sneaker-25/800/600",
      "sizesAvailable": [
        "5",
        "5.5",
        "6",
        "7",
        "8",
        "8.5",
        "9",
        "9.5"
      ],
      "gender": "women",
      "createdAt": "2017-09-16T13:40:05.541Z"
    },
    {
      "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"
    },
    {
      "id": 27,
      "brand": "Reebok",
      "model": "Question Mid",
      "colorway": "Cream/Green/Navy",
      "style": "Lifestyle",
      "releaseDate": "2021-12-08",
      "retailPrice": 280,
      "currency": "USD",
      "imageUrl": "https://picsum.photos/seed/sneaker-27/800/600",
      "sizesAvailable": [
        "7",
        "7.5",
        "9",
        "9.5",
        "10",
        "10.5",
        "11",
        "11.5",
        "12",
        "13"
      ],
      "gender": "unisex",
      "createdAt": "2021-12-08T20:33:54.780Z"
    }
  ],
  "meta": {
    "page": 2,
    "limit": 24,
    "total": 80,
    "totalPages": 4
  },
  "links": {
    "self": "/api/v1/sneakers?page=2&limit=24",
    "first": "/api/v1/sneakers?page=1&limit=24",
    "last": "/api/v1/sneakers?page=4&limit=24",
    "next": "/api/v1/sneakers?page=3&limit=24",
    "prev": "/api/v1/sneakers?page=1&limit=24"
  }
}