food-orders
food-orders
Page 16 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": 361,
"userId": 142,
"restaurantId": 75,
"items": [
{
"menuItemId": 1114,
"quantity": 3,
"unitPrice": 54.92,
"lineTotal": 164.76
},
{
"menuItemId": 1102,
"quantity": 4,
"unitPrice": 43.88,
"lineTotal": 175.52
}
],
"subtotal": 340.28,
"deliveryFee": 0.23,
"tip": 9.27,
"total": 349.78,
"currency": "USD",
"status": "out_for_delivery",
"placedAt": "2025-02-08T16:38:10.388Z",
"deliveredAt": null
},
{
"id": 362,
"userId": 246,
"restaurantId": 84,
"items": [
{
"menuItemId": 1234,
"quantity": 2,
"unitPrice": 11.13,
"lineTotal": 22.26
},
{
"menuItemId": 1233,
"quantity": 2,
"unitPrice": 53.6,
"lineTotal": 107.2
},
{
"menuItemId": 1235,
"quantity": 2,
"unitPrice": 11.65,
"lineTotal": 23.3
}
],
"subtotal": 152.76,
"deliveryFee": 0.88,
"tip": 4.48,
"total": 158.12,
"currency": "USD",
"status": "delivered",
"placedAt": "2024-10-11T10:52:53.760Z",
"deliveredAt": "2024-10-11T14:09:45.057Z"
},
{
"id": 363,
"userId": 59,
"restaurantId": 85,
"items": [
{
"menuItemId": 1238,
"quantity": 3,
"unitPrice": 76.13,
"lineTotal": 228.39
},
{
"menuItemId": 1239,
"quantity": 3,
"unitPrice": 34.8,
"lineTotal": 104.4
},
{
"menuItemId": 1240,
"quantity": 3,
"unitPrice": 16.6,
"lineTotal": 49.8
},
{
"menuItemId": 1243,
"quantity": 2,
"unitPrice": 72.04,
"lineTotal": 144.08
},
{
"menuItemId": 1245,
"quantity": 4,
"unitPrice": 62.64,
"lineTotal": 250.56
}
],
"subtotal": 777.23,
"deliveryFee": 6.91,
"tip": 5.52,
"total": 789.66,
"currency": "USD",
"status": "delivered",
"placedAt": "2026-05-09T01:42:08.009Z",
"deliveredAt": "2026-05-09T04:07:32.302Z"
}
],
"meta": {
"page": 16,
"limit": 24,
"total": 500,
"totalPages": 21
},
"links": {
"self": "/api/v1/food-orders?page=16&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=17&limit=24",
"prev": "/api/v1/food-orders?page=15&limit=24"
}
}