Roasted Chicken
- userId
-
Maximus Bosco @maximus_bosco
- name
- Roasted Chicken
- kind
- dinner
- calories
- 703
- proteinGrams
- 38.4
- carbsGrams
- 79.2
- fatGrams
- 25.8
- eatenAt
- createdAt
Overview
meals / #532
Roasted Chicken
#532
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/532" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/532" ); 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/532"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/532"
)
meal = res.json() Response
{
"id": 532,
"userId": 128,
"name": "Roasted Chicken",
"kind": "dinner",
"calories": 703,
"proteinGrams": 38.4,
"carbsGrams": 79.2,
"fatGrams": 25.8,
"eatenAt": "2025-11-26T19:21:04.605Z",
"createdAt": "2025-11-26T19:21:04.907Z"
}