Overnight Oats
- userId
-
Einar Volkman @einar_volkman69
- name
- Overnight Oats
- kind
- breakfast
- calories
- 533
- proteinGrams
- 13.7
- carbsGrams
- 76.6
- fatGrams
- 19.1
- eatenAt
- createdAt
Overview
meals / #28
Overnight Oats
#28
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/28" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/28" ); 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/28"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/28"
)
meal = res.json() Response
{
"id": 28,
"userId": 7,
"name": "Overnight Oats",
"kind": "breakfast",
"calories": 533,
"proteinGrams": 13.7,
"carbsGrams": 76.6,
"fatGrams": 19.1,
"eatenAt": "2026-03-30T00:23:21.898Z",
"createdAt": "2026-03-30T00:46:40.042Z"
}