Rice Cakes
- userId
-
Cindy Barrows @cindy_barrows20
- name
- Rice Cakes
- kind
- snack
- calories
- 299
- proteinGrams
- 23.3
- carbsGrams
- 22.7
- fatGrams
- 12.8
- eatenAt
- createdAt
Overview
meals / #680
Rice Cakes
#680
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/680" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/680" ); 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/680"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/680"
)
meal = res.json() Response
{
"id": 680,
"userId": 165,
"name": "Rice Cakes",
"kind": "snack",
"calories": 299,
"proteinGrams": 23.3,
"carbsGrams": 22.7,
"fatGrams": 12.8,
"eatenAt": "2026-03-18T10:01:58.683Z",
"createdAt": "2026-03-18T10:30:31.770Z"
}