Roasted Chicken
- userId
-
Tabitha Ruecker @tabitha.ruecker
- name
- Roasted Chicken
- kind
- dinner
- calories
- 571
- proteinGrams
- 27.8
- carbsGrams
- 30.5
- fatGrams
- 37.5
- eatenAt
- createdAt
Overview
meals / #814
Roasted Chicken
#814
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/814" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/814" ); 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/814"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/814"
)
meal = res.json() Response
{
"id": 814,
"userId": 197,
"name": "Roasted Chicken",
"kind": "dinner",
"calories": 571,
"proteinGrams": 27.8,
"carbsGrams": 30.5,
"fatGrams": 37.5,
"eatenAt": "2025-11-14T11:29:52.829Z",
"createdAt": "2025-11-14T11:32:37.920Z"
}