Rice Cakes
- userId
-
Tabitha McKenzie @tabitha_mckenzie
- name
- Rice Cakes
- kind
- snack
- calories
- 553
- proteinGrams
- 12.8
- carbsGrams
- 74
- fatGrams
- 22.9
- eatenAt
- createdAt
Overview
meals / #406
Rice Cakes
#406
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/406" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/406" ); 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/406"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/406"
)
meal = res.json() Response
{
"id": 406,
"userId": 98,
"name": "Rice Cakes",
"kind": "snack",
"calories": 553,
"proteinGrams": 12.8,
"carbsGrams": 74,
"fatGrams": 22.9,
"eatenAt": "2026-01-11T12:18:52.221Z",
"createdAt": "2026-01-11T12:22:54.728Z"
}