example-data.com
Menu
Browse docs and collections

orders

orders

Page 36 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": 841,
      "userId": 133,
      "status": "shipped",
      "currency": "USD",
      "subtotal": 991.07,
      "tax": 86.72,
      "shipping": 0,
      "total": 1077.79,
      "placedAt": "2025-12-22T13:54:18.859Z",
      "shippedAt": "2025-12-25T03:16:09.272Z",
      "deliveredAt": null,
      "createdAt": "2025-12-22T13:54:18.859Z",
      "updatedAt": "2025-12-25T03:16:09.272Z"
    },
    {
      "id": 842,
      "userId": 242,
      "status": "pending",
      "currency": "USD",
      "subtotal": 1736.04,
      "tax": 151.9,
      "shipping": 0,
      "total": 1887.94,
      "placedAt": "2024-06-10T16:51:52.147Z",
      "shippedAt": null,
      "deliveredAt": null,
      "createdAt": "2024-06-10T16:51:52.147Z",
      "updatedAt": "2024-06-10T16:51:52.147Z"
    },
    {
      "id": 843,
      "userId": 99,
      "status": "delivered",
      "currency": "USD",
      "subtotal": 804.95,
      "tax": 70.43,
      "shipping": 0,
      "total": 875.38,
      "placedAt": "2024-07-29T07:38:23.309Z",
      "shippedAt": "2024-07-31T00:51:30.882Z",
      "deliveredAt": "2024-08-02T18:34:54.851Z",
      "createdAt": "2024-07-29T07:38:23.309Z",
      "updatedAt": "2024-08-02T18:34:54.851Z"
    }
  ],
  "meta": {
    "page": 36,
    "limit": 24,
    "total": 1000,
    "totalPages": 42
  },
  "links": {
    "self": "/api/v1/orders?page=36&limit=24",
    "first": "/api/v1/orders?page=1&limit=24",
    "last": "/api/v1/orders?page=42&limit=24",
    "next": "/api/v1/orders?page=37&limit=24",
    "prev": "/api/v1/orders?page=35&limit=24"
  }
}