Sushi Roll
- userId
-
Jensen Bashirian @jensen_bashirian
- name
- Sushi Roll
- kind
- lunch
- calories
- 714
- proteinGrams
- 24.7
- carbsGrams
- 64.9
- fatGrams
- 39.5
- eatenAt
- createdAt
Overview
meals / #124
Sushi Roll
#124
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/124" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/124" ); 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/124"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/124"
)
meal = res.json() Response
{
"id": 124,
"userId": 29,
"name": "Sushi Roll",
"kind": "lunch",
"calories": 714,
"proteinGrams": 24.7,
"carbsGrams": 64.9,
"fatGrams": 39.5,
"eatenAt": "2026-03-14T12:57:03.368Z",
"createdAt": "2026-03-14T13:10:06.248Z"
}