Sample JSON / Orders

Sample Orders JSON (Nested)

Forty order records with nested line-item arrays, computed totals, statuses, and foreign keys to the users dataset - deliberately nested for testing code that traverses structure.

https://jsonconsole.com/api/orders.json
40 records20 KBCORS: *
Download orders.json·Free for any use, no attribution required (CC0). Endpoint is stable - safe to use in tutorials and READMEs.

Preview

[
  {
    "id": 1,
    "orderNumber": "ORD-20260001",
    "userId": 54,
    "items": [
      {
        "productId": 16,
        "name": "Smart Charger",
        "quantity": 1,
        "unitPrice": 34.52
      },
      {
        "productId": 51,
        "name": "Ultra-Light Backpack",
        "quantity": 3,
        "unitPrice": 132.2
      },
      {
        "productId": 14,
        "name": "Modular Backpack",
        "quantity": 1,
        "unitPrice": 40.23
      }
    ],
    "total": 471.35,
    "currency": "USD",
    "status": "cancelled",
    "createdAt": "2025-10-07T07:21:00Z"
  },
  {
    "id": 2,
    "orderNumber": "ORD-20260002",
    "userId": 55,
    "items": [
      {
        "productId": 51,
        "name": "Ultra-Light Backpack",
        "quantity": 3,
        "unitPrice": 132.2
      },
      {
        "productId": 1,
        "name": "Ultra-Light Mouse",
        "quantity": 2,
        "unitPrice": 240.67
      }
    ],
    "total": 877.94,
    "currency": "USD",
    "status": "processing",
    "createdAt": "2025-09-09T05:07:00Z"
  },
  {
    "id": 3,
    "orderNumber": "ORD-20260003",
    "userId": 23,
    "items": [
      {
        "productId": 9,
        "name": "Ergonomic Monitor Stand",
        "quantity": 1,
        "unitPrice": 290.63
      }
    ],
    "total": 290.63,
    "currency": "USD",
    "status": "processing",
    "createdAt": "2026-01-06T08:03:00Z"
  }
]

First 3 records shown - the full file has 40 records.

Fields

FieldTypeNotes
id / orderNumbernumber / stringORD-2026NNNN format
userIdnumberForeign key into /api/users.json
itemsobject[]Nested line items: productId, name, quantity, unitPrice
totalnumberSum of quantity × unitPrice
statusstringpending | processing | shipped | delivered | cancelled
createdAtstring (ISO 8601)Order timestamp

Fetch it in code

JavaScript
const res = await fetch(
  "https://jsonconsole.com/api/orders.json"
);
const data = await res.json();
Python
import requests

data = requests.get(
    "https://jsonconsole.com/api/orders.json"
).json()

What this dataset is good for

  • Testing nested-JSON handling: flattening, table views, JSONPath queries
  • Joining across datasets (orders.userId → users.id) in tutorials
  • Order-status dashboards and state-machine UI prototypes

More sample data

You might also need

Free and in-browser, like everything on JSON Console. Browse all tools →