example-data.com
Menu
Browse docs and collections

orders

orders

Page 3 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": 49,
      "userId": 51,
      "status": "cancelled",
      "currency": "USD",
      "subtotal": 2561.48,
      "tax": 224.13,
      "shipping": 0,
      "total": 2785.61,
      "placedAt": "2024-06-10T04:05:04.574Z",
      "shippedAt": null,
      "deliveredAt": null,
      "createdAt": "2024-06-10T04:05:04.574Z",
      "updatedAt": "2024-06-10T04:05:04.574Z"
    },
    {
      "id": 50,
      "userId": 42,
      "status": "delivered",
      "currency": "USD",
      "subtotal": 623.36,
      "tax": 54.54,
      "shipping": 0,
      "total": 677.9,
      "placedAt": "2024-12-12T17:46:44.300Z",
      "shippedAt": "2024-12-14T15:01:15.522Z",
      "deliveredAt": "2024-12-16T18:34:48.233Z",
      "createdAt": "2024-12-12T17:46:44.300Z",
      "updatedAt": "2024-12-16T18:34:48.233Z"
    },
    {
      "id": 51,
      "userId": 29,
      "status": "delivered",
      "currency": "USD",
      "subtotal": 1013.25,
      "tax": 88.66,
      "shipping": 0,
      "total": 1101.91,
      "placedAt": "2025-12-02T07:00:43.631Z",
      "shippedAt": "2025-12-04T09:47:33.283Z",
      "deliveredAt": "2025-12-10T18:36:28.479Z",
      "createdAt": "2025-12-02T07:00:43.631Z",
      "updatedAt": "2025-12-10T18:36:28.479Z"
    }
  ],
  "meta": {
    "page": 3,
    "limit": 24,
    "total": 1000,
    "totalPages": 42
  },
  "links": {
    "self": "/api/v1/orders?page=3&limit=24",
    "first": "/api/v1/orders?page=1&limit=24",
    "last": "/api/v1/orders?page=42&limit=24",
    "next": "/api/v1/orders?page=4&limit=24",
    "prev": "/api/v1/orders?page=2&limit=24"
  }
}