Sushi Roll
- userId
-
Wendy Borer @wendy_borer
- name
- Sushi Roll
- kind
- lunch
- calories
- 612
- proteinGrams
- 38.4
- carbsGrams
- 52
- fatGrams
- 27.8
- eatenAt
- createdAt
Overview
meals / #592
Sushi Roll
#592
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/592" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/592" ); 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/592"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/592"
)
meal = res.json() Response
{
"id": 592,
"userId": 141,
"name": "Sushi Roll",
"kind": "lunch",
"calories": 612,
"proteinGrams": 38.4,
"carbsGrams": 52,
"fatGrams": 27.8,
"eatenAt": "2025-06-28T22:26:13.453Z",
"createdAt": "2025-06-28T22:45:24.999Z"
}