food-orders
food-orders
Page 19 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": 433,
"userId": 112,
"restaurantId": 18,
"items": [
{
"menuItemId": 282,
"quantity": 3,
"unitPrice": 17.49,
"lineTotal": 52.47
},
{
"menuItemId": 281,
"quantity": 3,
"unitPrice": 34.47,
"lineTotal": 103.41
},
{
"menuItemId": 280,
"quantity": 2,
"unitPrice": 8.15,
"lineTotal": 16.3
},
{
"menuItemId": 276,
"quantity": 4,
"unitPrice": 22.27,
"lineTotal": 89.08
},
{
"menuItemId": 279,
"quantity": 1,
"unitPrice": 73.18,
"lineTotal": 73.18
}
],
"subtotal": 334.44,
"deliveryFee": 3.35,
"tip": 6.52,
"total": 344.31,
"currency": "USD",
"status": "delivered",
"placedAt": "2025-10-20T13:20:06.990Z",
"deliveredAt": "2025-10-20T14:52:22.219Z"
},
{
"id": 434,
"userId": 7,
"restaurantId": 60,
"items": [
{
"menuItemId": 923,
"quantity": 1,
"unitPrice": 73.23,
"lineTotal": 73.23
},
{
"menuItemId": 918,
"quantity": 3,
"unitPrice": 45.02,
"lineTotal": 135.06
},
{
"menuItemId": 906,
"quantity": 4,
"unitPrice": 50.91,
"lineTotal": 203.64
}
],
"subtotal": 411.93,
"deliveryFee": 2.3,
"tip": 3.16,
"total": 417.39,
"currency": "USD",
"status": "delivered",
"placedAt": "2025-08-17T11:33:42.342Z",
"deliveredAt": "2025-08-17T15:27:39.870Z"
},
{
"id": 435,
"userId": 15,
"restaurantId": 34,
"items": [
{
"menuItemId": 502,
"quantity": 2,
"unitPrice": 64.22,
"lineTotal": 128.44
},
{
"menuItemId": 498,
"quantity": 4,
"unitPrice": 42.35,
"lineTotal": 169.4
},
{
"menuItemId": 506,
"quantity": 2,
"unitPrice": 10.17,
"lineTotal": 20.34
},
{
"menuItemId": 507,
"quantity": 1,
"unitPrice": 18.84,
"lineTotal": 18.84
},
{
"menuItemId": 501,
"quantity": 3,
"unitPrice": 10.59,
"lineTotal": 31.77
}
],
"subtotal": 368.79,
"deliveryFee": 5.37,
"tip": 3.25,
"total": 377.41,
"currency": "USD",
"status": "out_for_delivery",
"placedAt": "2024-10-13T10:32:38.297Z",
"deliveredAt": null
}
],
"meta": {
"page": 19,
"limit": 24,
"total": 500,
"totalPages": 21
},
"links": {
"self": "/api/v1/food-orders?page=19&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=20&limit=24",
"prev": "/api/v1/food-orders?page=18&limit=24"
}
}