Sushi Roll
- userId
-
Leonel Hamill @leonel_hamill33
- name
- Sushi Roll
- kind
- lunch
- calories
- 603
- proteinGrams
- 51.6
- carbsGrams
- 35.7
- fatGrams
- 28.2
- eatenAt
- createdAt
Overview
meals / #45
Sushi Roll
#45
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/45" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/45" ); 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/45"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/45"
)
meal = res.json() Response
{
"id": 45,
"userId": 11,
"name": "Sushi Roll",
"kind": "lunch",
"calories": 603,
"proteinGrams": 51.6,
"carbsGrams": 35.7,
"fatGrams": 28.2,
"eatenAt": "2025-06-22T08:42:11.646Z",
"createdAt": "2025-06-22T08:44:11.657Z"
}