example-data.com
Menu
Browse docs and collections

food-orders

food-orders

Page 14 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": 313,
      "userId": 30,
      "restaurantId": 59,
      "items": [
        {
          "menuItemId": 892,
          "quantity": 1,
          "unitPrice": 70.27,
          "lineTotal": 70.27
        },
        {
          "menuItemId": 887,
          "quantity": 1,
          "unitPrice": 78.36,
          "lineTotal": 78.36
        },
        {
          "menuItemId": 884,
          "quantity": 4,
          "unitPrice": 29.24,
          "lineTotal": 116.96
        }
      ],
      "subtotal": 265.59,
      "deliveryFee": 3.53,
      "tip": 11.36,
      "total": 280.48,
      "currency": "USD",
      "status": "delivered",
      "placedAt": "2025-08-15T16:26:32.662Z",
      "deliveredAt": "2025-08-15T18:47:02.120Z"
    },
    {
      "id": 314,
      "userId": 29,
      "restaurantId": 73,
      "items": [
        {
          "menuItemId": 1093,
          "quantity": 3,
          "unitPrice": 30.64,
          "lineTotal": 91.92
        },
        {
          "menuItemId": 1090,
          "quantity": 4,
          "unitPrice": 27.34,
          "lineTotal": 109.36
        },
        {
          "menuItemId": 1094,
          "quantity": 3,
          "unitPrice": 40.46,
          "lineTotal": 121.38
        }
      ],
      "subtotal": 322.66,
      "deliveryFee": 1.32,
      "tip": 9.53,
      "total": 333.51,
      "currency": "USD",
      "status": "delivered",
      "placedAt": "2024-09-22T18:00:37.826Z",
      "deliveredAt": "2024-09-22T21:50:49.719Z"
    },
    {
      "id": 315,
      "userId": 243,
      "restaurantId": 51,
      "items": [
        {
          "menuItemId": 766,
          "quantity": 3,
          "unitPrice": 5.29,
          "lineTotal": 15.87
        },
        {
          "menuItemId": 764,
          "quantity": 3,
          "unitPrice": 78.32,
          "lineTotal": 234.96
        },
        {
          "menuItemId": 772,
          "quantity": 2,
          "unitPrice": 34.94,
          "lineTotal": 69.88
        },
        {
          "menuItemId": 769,
          "quantity": 1,
          "unitPrice": 13.47,
          "lineTotal": 13.47
        }
      ],
      "subtotal": 334.18,
      "deliveryFee": 3.35,
      "tip": 11.07,
      "total": 348.6,
      "currency": "USD",
      "status": "delivered",
      "placedAt": "2026-02-08T04:20:56.028Z",
      "deliveredAt": "2026-02-08T07:39:18.445Z"
    }
  ],
  "meta": {
    "page": 14,
    "limit": 24,
    "total": 500,
    "totalPages": 21
  },
  "links": {
    "self": "/api/v1/food-orders?page=14&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=15&limit=24",
    "prev": "/api/v1/food-orders?page=13&limit=24"
  }
}