Granola Bowl
- userId
-
Mia Renner @mia.renner47
- name
- Granola Bowl
- kind
- breakfast
- calories
- 749
- proteinGrams
- 34.7
- carbsGrams
- 77.7
- fatGrams
- 33.3
- eatenAt
- createdAt
Overview
meals / #873
Granola Bowl
#873
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/873" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/873" ); 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/873"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/873"
)
meal = res.json() Response
{
"id": 873,
"userId": 212,
"name": "Granola Bowl",
"kind": "breakfast",
"calories": 749,
"proteinGrams": 34.7,
"carbsGrams": 77.7,
"fatGrams": 33.3,
"eatenAt": "2025-12-12T03:55:52.038Z",
"createdAt": "2025-12-12T04:06:54.349Z"
}