Granola Bowl
- userId
-
Emilia Cummerata @emilia_cummerata
- name
- Granola Bowl
- kind
- breakfast
- calories
- 366
- proteinGrams
- 26.3
- carbsGrams
- 32
- fatGrams
- 14.8
- eatenAt
- createdAt
Overview
meals / #974
Granola Bowl
#974
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/974" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/974" ); const meal = 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 } from "./types/meals";
const res = await fetch(
"https://example-data.com/api/v1/meals/974"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/974"
)
meal = res.json() Response
{
"id": 974,
"userId": 238,
"name": "Granola Bowl",
"kind": "breakfast",
"calories": 366,
"proteinGrams": 26.3,
"carbsGrams": 32,
"fatGrams": 14.8,
"eatenAt": "2025-10-07T18:33:47.332Z",
"createdAt": "2025-10-07T18:40:13.982Z"
}