Rice Cakes
- userId
-
Sammy Schmidt @sammy.schmidt
- name
- Rice Cakes
- kind
- snack
- calories
- 475
- proteinGrams
- 33.3
- carbsGrams
- 75.1
- fatGrams
- 4.6
- eatenAt
- createdAt
Overview
meals / #764
Rice Cakes
#764
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/764" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/764" ); 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/764"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/764"
)
meal = res.json() Response
{
"id": 764,
"userId": 186,
"name": "Rice Cakes",
"kind": "snack",
"calories": 475,
"proteinGrams": 33.3,
"carbsGrams": 75.1,
"fatGrams": 4.6,
"eatenAt": "2025-06-19T09:34:28.171Z",
"createdAt": "2025-06-19T09:55:42.853Z"
}