meals
meals
Page 20 of 43.
Overview
-
Trail Mix
#457
-
Cottage Cheese
#458
-
Grilled Turkey Breast
#459
-
Tofu Curry
#460
-
Tofu Curry
#461
-
Protein Shake
#462
-
Oatmeal with Berries
#463
-
Granola Bowl
#464
-
Chicken Stir-Fry
#465
-
Apple and Peanut Butter
#466
-
Cottage Cheese
#467
-
Turkey Sandwich
#468
-
Falafel Bowl
#469
-
Scrambled Eggs
#470
-
Apple and Peanut Butter
#471
-
String Cheese
#472
-
Scrambled Eggs
#473
-
Granola Bowl
#474
-
Lentil Soup
#475
-
Falafel Bowl
#476
-
Protein Bar
#477
-
Smoothie Bowl
#478
-
Overnight Oats
#479
-
Scrambled Eggs
#480
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals?limit=25"
JavaScript example
const res = await fetch(
"https://example-data.com/api/v1/meals?limit=25"
);
const { data, meta } = await res.json(); TypeScript example
// Download once: mkdir -p types && curl -o types/meals.d.ts https://example-data.com/types/meals.d.ts
import type { Meal, ListEnvelope } from "./types/meals";
const res = await fetch(
"https://example-data.com/api/v1/meals?limit=25"
);
const { data, meta } = (await res.json()) as ListEnvelope<Meal>; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals",
params={"limit": 25},
)
data = res.json() Response
{
"data": [
{
"id": 457,
"userId": 110,
"name": "Trail Mix",
"kind": "snack",
"calories": 532,
"proteinGrams": 45.5,
"carbsGrams": 55.7,
"fatGrams": 14.1,
"eatenAt": "2025-05-27T08:47:54.463Z",
"createdAt": "2025-05-27T09:10:23.220Z"
},
{
"id": 458,
"userId": 110,
"name": "Cottage Cheese",
"kind": "snack",
"calories": 336,
"proteinGrams": 33.5,
"carbsGrams": 10.2,
"fatGrams": 17.9,
"eatenAt": "2025-10-23T08:55:17.766Z",
"createdAt": "2025-10-23T09:09:51.798Z"
},
{
"id": 459,
"userId": 111,
"name": "Grilled Turkey Breast",
"kind": "dinner",
"calories": 557,
"proteinGrams": 21,
"carbsGrams": 56.8,
"fatGrams": 27.3,
"eatenAt": "2025-08-14T14:05:33.629Z",
"createdAt": "2025-08-14T14:25:12.176Z"
}
],
"meta": {
"page": 20,
"limit": 24,
"total": 1016,
"totalPages": 43
},
"links": {
"self": "/api/v1/meals?page=20&limit=24",
"first": "/api/v1/meals?page=1&limit=24",
"last": "/api/v1/meals?page=43&limit=24",
"next": "/api/v1/meals?page=21&limit=24",
"prev": "/api/v1/meals?page=19&limit=24"
}
}