example-data.com
Menu
Browse docs and collections

orders

orders

Page 21 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": 481,
      "userId": 7,
      "status": "shipped",
      "currency": "USD",
      "subtotal": 2727.23,
      "tax": 238.63,
      "shipping": 0,
      "total": 2965.86,
      "placedAt": "2025-04-04T05:02:37.045Z",
      "shippedAt": "2025-04-06T14:51:17.844Z",
      "deliveredAt": null,
      "createdAt": "2025-04-04T05:02:37.045Z",
      "updatedAt": "2025-04-06T14:51:17.844Z"
    },
    {
      "id": 482,
      "userId": 186,
      "status": "delivered",
      "currency": "USD",
      "subtotal": 2759.6,
      "tax": 241.46,
      "shipping": 0,
      "total": 3001.06,
      "placedAt": "2026-02-02T01:39:51.067Z",
      "shippedAt": "2026-02-03T04:09:31.002Z",
      "deliveredAt": "2026-02-08T04:33:18.115Z",
      "createdAt": "2026-02-02T01:39:51.067Z",
      "updatedAt": "2026-02-08T04:33:18.115Z"
    },
    {
      "id": 483,
      "userId": 214,
      "status": "pending",
      "currency": "USD",
      "subtotal": 919.64,
      "tax": 80.47,
      "shipping": 0,
      "total": 1000.11,
      "placedAt": "2025-06-26T10:54:46.465Z",
      "shippedAt": null,
      "deliveredAt": null,
      "createdAt": "2025-06-26T10:54:46.465Z",
      "updatedAt": "2025-06-26T10:54:46.465Z"
    }
  ],
  "meta": {
    "page": 21,
    "limit": 24,
    "total": 1000,
    "totalPages": 42
  },
  "links": {
    "self": "/api/v1/orders?page=21&limit=24",
    "first": "/api/v1/orders?page=1&limit=24",
    "last": "/api/v1/orders?page=42&limit=24",
    "next": "/api/v1/orders?page=22&limit=24",
    "prev": "/api/v1/orders?page=20&limit=24"
  }
}