Rice Cakes
- userId
-
Jo Haag-Mayer @jo_haag-mayer
- name
- Rice Cakes
- kind
- snack
- calories
- 299
- proteinGrams
- 15.6
- carbsGrams
- 10.7
- fatGrams
- 21.5
- eatenAt
- createdAt
Overview
meals / #220
Rice Cakes
#220
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/220" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/220" ); 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/220"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/220"
)
meal = res.json() Response
{
"id": 220,
"userId": 54,
"name": "Rice Cakes",
"kind": "snack",
"calories": 299,
"proteinGrams": 15.6,
"carbsGrams": 10.7,
"fatGrams": 21.5,
"eatenAt": "2026-02-06T03:40:19.031Z",
"createdAt": "2026-02-06T03:47:57.426Z"
}