Overnight Oats
- userId
-
Autumn Bartell @autumn.bartell95
- name
- Overnight Oats
- kind
- breakfast
- calories
- 369
- proteinGrams
- 28.2
- carbsGrams
- 57.3
- fatGrams
- 3
- eatenAt
- createdAt
Overview
meals / #239
Overnight Oats
#239
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/239" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/239" ); 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/239"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/239"
)
meal = res.json() Response
{
"id": 239,
"userId": 58,
"name": "Overnight Oats",
"kind": "breakfast",
"calories": 369,
"proteinGrams": 28.2,
"carbsGrams": 57.3,
"fatGrams": 3,
"eatenAt": "2025-10-06T14:18:43.302Z",
"createdAt": "2025-10-06T14:19:32.186Z"
}