Granola Bowl
- userId
-
Lenny Howe @lenny.howe
- name
- Granola Bowl
- kind
- breakfast
- calories
- 795
- proteinGrams
- 54.2
- carbsGrams
- 64.4
- fatGrams
- 35.6
- eatenAt
- createdAt
Overview
meals / #151
Granola Bowl
#151
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/151" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/151" ); 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/151"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/151"
)
meal = res.json() Response
{
"id": 151,
"userId": 37,
"name": "Granola Bowl",
"kind": "breakfast",
"calories": 795,
"proteinGrams": 54.2,
"carbsGrams": 64.4,
"fatGrams": 35.6,
"eatenAt": "2025-08-01T08:09:28.638Z",
"createdAt": "2025-08-01T08:14:04.868Z"
}