example-data.com
Menu
Browse docs and collections

food-orders

food-orders

Page 12 of 21.

Overview

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/food-orders?limit=25"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/food-orders?limit=25"
);
const { data, meta } = await res.json();

TypeScript example

// Download once: mkdir -p types && curl -o types/food-orders.d.ts https://example-data.com/types/food-orders.d.ts
import type { FoodOrder, ListEnvelope } from "./types/food-orders";

const res = await fetch(
  "https://example-data.com/api/v1/food-orders?limit=25"
);
const { data, meta } = (await res.json()) as ListEnvelope<FoodOrder>;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/food-orders",
    params={"limit": 25},
)
data = res.json()

Response

{
  "data": [
    {
      "id": 265,
      "userId": 92,
      "restaurantId": 70,
      "items": [
        {
          "menuItemId": 1056,
          "quantity": 4,
          "unitPrice": 31.32,
          "lineTotal": 125.28
        }
      ],
      "subtotal": 125.28,
      "deliveryFee": 4.48,
      "tip": 1.18,
      "total": 130.94,
      "currency": "USD",
      "status": "delivered",
      "placedAt": "2025-10-02T03:44:35.100Z",
      "deliveredAt": "2025-10-02T06:22:21.395Z"
    },
    {
      "id": 266,
      "userId": 69,
      "restaurantId": 72,
      "items": [
        {
          "menuItemId": 1083,
          "quantity": 2,
          "unitPrice": 7.25,
          "lineTotal": 14.5
        }
      ],
      "subtotal": 14.5,
      "deliveryFee": 4.59,
      "tip": 7.46,
      "total": 26.55,
      "currency": "USD",
      "status": "out_for_delivery",
      "placedAt": "2026-02-19T05:09:20.240Z",
      "deliveredAt": null
    },
    {
      "id": 267,
      "userId": 47,
      "restaurantId": 74,
      "items": [
        {
          "menuItemId": 1095,
          "quantity": 3,
          "unitPrice": 52.13,
          "lineTotal": 156.39
        }
      ],
      "subtotal": 156.39,
      "deliveryFee": 5.89,
      "tip": 6.71,
      "total": 168.99,
      "currency": "USD",
      "status": "delivered",
      "placedAt": "2025-11-27T13:32:37.026Z",
      "deliveredAt": "2025-11-27T17:05:51.990Z"
    }
  ],
  "meta": {
    "page": 12,
    "limit": 24,
    "total": 500,
    "totalPages": 21
  },
  "links": {
    "self": "/api/v1/food-orders?page=12&limit=24",
    "first": "/api/v1/food-orders?page=1&limit=24",
    "last": "/api/v1/food-orders?page=21&limit=24",
    "next": "/api/v1/food-orders?page=13&limit=24",
    "prev": "/api/v1/food-orders?page=11&limit=24"
  }
}