example-data.com
Menu
Browse docs and collections

orders

orders

Page 18 of 42.

Overview

Request

curl example

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

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/orders?limit=25"
);
const { data, meta } = await res.json();

TypeScript example

// Download once: mkdir -p types && curl -o types/orders.d.ts https://example-data.com/types/orders.d.ts
import type { Order, ListEnvelope } from "./types/orders";

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

Python example

import requests

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

Response

{
  "data": [
    {
      "id": 409,
      "userId": 208,
      "status": "delivered",
      "currency": "USD",
      "subtotal": 844.68,
      "tax": 73.91,
      "shipping": 0,
      "total": 918.59,
      "placedAt": "2026-04-13T19:22:44.697Z",
      "shippedAt": "2026-04-15T23:50:13.772Z",
      "deliveredAt": "2026-04-17T22:26:26.279Z",
      "createdAt": "2026-04-13T19:22:44.697Z",
      "updatedAt": "2026-04-17T22:26:26.279Z"
    },
    {
      "id": 410,
      "userId": 56,
      "status": "delivered",
      "currency": "USD",
      "subtotal": 1689.06,
      "tax": 147.79,
      "shipping": 0,
      "total": 1836.85,
      "placedAt": "2025-11-03T12:52:50.975Z",
      "shippedAt": "2025-11-05T09:51:35.049Z",
      "deliveredAt": "2025-11-12T07:30:59.284Z",
      "createdAt": "2025-11-03T12:52:50.975Z",
      "updatedAt": "2025-11-12T07:30:59.284Z"
    },
    {
      "id": 411,
      "userId": 181,
      "status": "shipped",
      "currency": "USD",
      "subtotal": 869.5,
      "tax": 76.08,
      "shipping": 0,
      "total": 945.58,
      "placedAt": "2025-11-25T17:27:15.371Z",
      "shippedAt": "2025-11-27T18:19:16.156Z",
      "deliveredAt": null,
      "createdAt": "2025-11-25T17:27:15.371Z",
      "updatedAt": "2025-11-27T18:19:16.156Z"
    }
  ],
  "meta": {
    "page": 18,
    "limit": 24,
    "total": 1000,
    "totalPages": 42
  },
  "links": {
    "self": "/api/v1/orders?page=18&limit=24",
    "first": "/api/v1/orders?page=1&limit=24",
    "last": "/api/v1/orders?page=42&limit=24",
    "next": "/api/v1/orders?page=19&limit=24",
    "prev": "/api/v1/orders?page=17&limit=24"
  }
}