Roasted Chicken
- userId
-
Maria Senger @maria.senger
- name
- Roasted Chicken
- kind
- dinner
- calories
- 798
- proteinGrams
- 50
- carbsGrams
- 60.8
- fatGrams
- 39.4
- eatenAt
- createdAt
Overview
meals / #497
Roasted Chicken
#497
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/497" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/497" ); 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/497"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/497"
)
meal = res.json() Response
{
"id": 497,
"userId": 120,
"name": "Roasted Chicken",
"kind": "dinner",
"calories": 798,
"proteinGrams": 50,
"carbsGrams": 60.8,
"fatGrams": 39.4,
"eatenAt": "2025-06-25T19:53:01.903Z",
"createdAt": "2025-06-25T20:07:26.253Z"
}