Roasted Chicken
- userId
-
Dasia Volkman @dasia_volkman65
- name
- Roasted Chicken
- kind
- dinner
- calories
- 378
- proteinGrams
- 23.1
- carbsGrams
- 18.7
- fatGrams
- 23.4
- eatenAt
- createdAt
Overview
meals / #899
Roasted Chicken
#899
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/899" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/899" ); 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/899"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/899"
)
meal = res.json() Response
{
"id": 899,
"userId": 219,
"name": "Roasted Chicken",
"kind": "dinner",
"calories": 378,
"proteinGrams": 23.1,
"carbsGrams": 18.7,
"fatGrams": 23.4,
"eatenAt": "2025-09-10T18:32:11.568Z",
"createdAt": "2025-09-10T18:57:14.018Z"
}