food-orders
food-orders
Page 5 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": 97,
"userId": 143,
"restaurantId": 76,
"items": [
{
"menuItemId": 1117,
"quantity": 3,
"unitPrice": 52.65,
"lineTotal": 157.95
},
{
"menuItemId": 1124,
"quantity": 2,
"unitPrice": 29.23,
"lineTotal": 58.46
},
{
"menuItemId": 1125,
"quantity": 2,
"unitPrice": 77.03,
"lineTotal": 154.06
},
{
"menuItemId": 1116,
"quantity": 3,
"unitPrice": 51.83,
"lineTotal": 155.49
},
{
"menuItemId": 1119,
"quantity": 2,
"unitPrice": 70.08,
"lineTotal": 140.16
}
],
"subtotal": 666.12,
"deliveryFee": 2.08,
"tip": 3.96,
"total": 672.16,
"currency": "USD",
"status": "out_for_delivery",
"placedAt": "2025-07-02T15:14:38.613Z",
"deliveredAt": null
},
{
"id": 98,
"userId": 28,
"restaurantId": 98,
"items": [
{
"menuItemId": 1424,
"quantity": 4,
"unitPrice": 65.44,
"lineTotal": 261.76
}
],
"subtotal": 261.76,
"deliveryFee": 3.59,
"tip": 7.52,
"total": 272.87,
"currency": "USD",
"status": "delivered",
"placedAt": "2026-01-15T03:25:34.478Z",
"deliveredAt": "2026-01-15T06:24:00.485Z"
},
{
"id": 99,
"userId": 112,
"restaurantId": 76,
"items": [
{
"menuItemId": 1125,
"quantity": 1,
"unitPrice": 77.03,
"lineTotal": 77.03
}
],
"subtotal": 77.03,
"deliveryFee": 7.85,
"tip": 5.58,
"total": 90.46,
"currency": "USD",
"status": "delivered",
"placedAt": "2025-10-10T04:37:55.642Z",
"deliveredAt": "2025-10-10T08:13:06.017Z"
}
],
"meta": {
"page": 5,
"limit": 24,
"total": 500,
"totalPages": 21
},
"links": {
"self": "/api/v1/food-orders?page=5&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=6&limit=24",
"prev": "/api/v1/food-orders?page=4&limit=24"
}
}