Oatmeal with Berries
- userId
-
Amina King @amina_king41
- name
- Oatmeal with Berries
- kind
- breakfast
- calories
- 294
- proteinGrams
- 10
- carbsGrams
- 13.2
- fatGrams
- 22.3
- eatenAt
- createdAt
Overview
meals / #4
Oatmeal with Berries
#4
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/4" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/4" ); 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/4"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/4"
)
meal = res.json() Response
{
"id": 4,
"userId": 2,
"name": "Oatmeal with Berries",
"kind": "breakfast",
"calories": 294,
"proteinGrams": 10,
"carbsGrams": 13.2,
"fatGrams": 22.3,
"eatenAt": "2026-05-18T01:02:20.184Z",
"createdAt": "2026-05-18T01:23:48.603Z"
}