food-orders
food-orders
Page 2 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": 25,
"userId": 128,
"restaurantId": 83,
"items": [
{
"menuItemId": 1230,
"quantity": 1,
"unitPrice": 3.98,
"lineTotal": 3.98
},
{
"menuItemId": 1219,
"quantity": 3,
"unitPrice": 53.57,
"lineTotal": 160.71
},
{
"menuItemId": 1227,
"quantity": 2,
"unitPrice": 59.83,
"lineTotal": 119.66
},
{
"menuItemId": 1223,
"quantity": 3,
"unitPrice": 49.7,
"lineTotal": 149.1
},
{
"menuItemId": 1228,
"quantity": 2,
"unitPrice": 9.71,
"lineTotal": 19.42
}
],
"subtotal": 452.87,
"deliveryFee": 2.67,
"tip": 0.38,
"total": 455.92,
"currency": "USD",
"status": "preparing",
"placedAt": "2024-07-24T01:26:28.211Z",
"deliveredAt": null
},
{
"id": 26,
"userId": 142,
"restaurantId": 82,
"items": [
{
"menuItemId": 1212,
"quantity": 3,
"unitPrice": 21.02,
"lineTotal": 63.06
}
],
"subtotal": 63.06,
"deliveryFee": 5.16,
"tip": 7.58,
"total": 75.8,
"currency": "USD",
"status": "delivered",
"placedAt": "2025-05-13T08:13:41.287Z",
"deliveredAt": "2025-05-13T11:54:51.051Z"
},
{
"id": 27,
"userId": 187,
"restaurantId": 56,
"items": [
{
"menuItemId": 840,
"quantity": 3,
"unitPrice": 8.79,
"lineTotal": 26.37
}
],
"subtotal": 26.37,
"deliveryFee": 4.18,
"tip": 2.34,
"total": 32.89,
"currency": "USD",
"status": "preparing",
"placedAt": "2025-07-25T07:52:29.503Z",
"deliveredAt": null
}
],
"meta": {
"page": 2,
"limit": 24,
"total": 500,
"totalPages": 21
},
"links": {
"self": "/api/v1/food-orders?page=2&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=3&limit=24",
"prev": "/api/v1/food-orders?page=1&limit=24"
}
}