Oatmeal with Berries
- userId
-
Brycen Bayer @brycen_bayer60
- name
- Oatmeal with Berries
- kind
- breakfast
- calories
- 320
- proteinGrams
- 54.8
- carbsGrams
- 17.2
- fatGrams
- 3.5
- eatenAt
- createdAt
Overview
meals / #25
Oatmeal with Berries
#25
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/25" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/25" ); 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/25"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/25"
)
meal = res.json() Response
{
"id": 25,
"userId": 6,
"name": "Oatmeal with Berries",
"kind": "breakfast",
"calories": 320,
"proteinGrams": 54.8,
"carbsGrams": 17.2,
"fatGrams": 3.5,
"eatenAt": "2025-08-29T18:44:35.584Z",
"createdAt": "2025-08-29T19:01:12.792Z"
}