food-orders
food-orders
Page 13 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": 289,
"userId": 62,
"restaurantId": 3,
"items": [
{
"menuItemId": 36,
"quantity": 1,
"unitPrice": 20.66,
"lineTotal": 20.66
},
{
"menuItemId": 33,
"quantity": 2,
"unitPrice": 28.94,
"lineTotal": 57.88
},
{
"menuItemId": 30,
"quantity": 3,
"unitPrice": 76.01,
"lineTotal": 228.03
}
],
"subtotal": 306.57,
"deliveryFee": 7.07,
"tip": 8.26,
"total": 321.9,
"currency": "USD",
"status": "delivered",
"placedAt": "2025-10-27T13:32:00.594Z",
"deliveredAt": "2025-10-27T17:08:52.463Z"
},
{
"id": 290,
"userId": 154,
"restaurantId": 32,
"items": [
{
"menuItemId": 479,
"quantity": 1,
"unitPrice": 40.31,
"lineTotal": 40.31
},
{
"menuItemId": 480,
"quantity": 2,
"unitPrice": 66.92,
"lineTotal": 133.84
},
{
"menuItemId": 477,
"quantity": 4,
"unitPrice": 68.24,
"lineTotal": 272.96
}
],
"subtotal": 447.11,
"deliveryFee": 7.83,
"tip": 1.65,
"total": 456.59,
"currency": "USD",
"status": "delivered",
"placedAt": "2024-06-15T06:47:39.191Z",
"deliveredAt": "2024-06-15T07:49:14.960Z"
},
{
"id": 291,
"userId": 185,
"restaurantId": 18,
"items": [
{
"menuItemId": 282,
"quantity": 1,
"unitPrice": 17.49,
"lineTotal": 17.49
}
],
"subtotal": 17.49,
"deliveryFee": 0.38,
"tip": 10.73,
"total": 28.6,
"currency": "USD",
"status": "delivered",
"placedAt": "2026-04-05T22:30:09.734Z",
"deliveredAt": "2026-04-06T01:45:02.555Z"
}
],
"meta": {
"page": 13,
"limit": 24,
"total": 500,
"totalPages": 21
},
"links": {
"self": "/api/v1/food-orders?page=13&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=14&limit=24",
"prev": "/api/v1/food-orders?page=12&limit=24"
}
}