example-data.com
Menu
Browse docs and collections

orders

orders

Page 19 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": 433,
      "userId": 56,
      "status": "delivered",
      "currency": "USD",
      "subtotal": 552.44,
      "tax": 48.34,
      "shipping": 0,
      "total": 600.78,
      "placedAt": "2025-06-09T02:51:39.815Z",
      "shippedAt": "2025-06-10T10:21:09.687Z",
      "deliveredAt": "2025-06-15T18:38:35.234Z",
      "createdAt": "2025-06-09T02:51:39.815Z",
      "updatedAt": "2025-06-15T18:38:35.234Z"
    },
    {
      "id": 434,
      "userId": 121,
      "status": "delivered",
      "currency": "USD",
      "subtotal": 2065.86,
      "tax": 180.76,
      "shipping": 0,
      "total": 2246.62,
      "placedAt": "2024-08-23T22:15:12.070Z",
      "shippedAt": "2024-08-24T22:28:15.919Z",
      "deliveredAt": "2024-08-30T18:55:04.895Z",
      "createdAt": "2024-08-23T22:15:12.070Z",
      "updatedAt": "2024-08-30T18:55:04.895Z"
    },
    {
      "id": 435,
      "userId": 72,
      "status": "pending",
      "currency": "USD",
      "subtotal": 2975.36,
      "tax": 260.34,
      "shipping": 0,
      "total": 3235.7,
      "placedAt": "2025-04-24T04:58:01.665Z",
      "shippedAt": null,
      "deliveredAt": null,
      "createdAt": "2025-04-24T04:58:01.665Z",
      "updatedAt": "2025-04-24T04:58:01.665Z"
    }
  ],
  "meta": {
    "page": 19,
    "limit": 24,
    "total": 1000,
    "totalPages": 42
  },
  "links": {
    "self": "/api/v1/orders?page=19&limit=24",
    "first": "/api/v1/orders?page=1&limit=24",
    "last": "/api/v1/orders?page=42&limit=24",
    "next": "/api/v1/orders?page=20&limit=24",
    "prev": "/api/v1/orders?page=18&limit=24"
  }
}