Roasted Chicken
- userId
-
Jamil Mayer @jamil.mayer
- name
- Roasted Chicken
- kind
- dinner
- calories
- 549
- proteinGrams
- 56.1
- carbsGrams
- 68.2
- fatGrams
- 5.8
- eatenAt
- createdAt
Overview
meals / #957
Roasted Chicken
#957
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/957" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/957" ); 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/957"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/957"
)
meal = res.json() Response
{
"id": 957,
"userId": 233,
"name": "Roasted Chicken",
"kind": "dinner",
"calories": 549,
"proteinGrams": 56.1,
"carbsGrams": 68.2,
"fatGrams": 5.8,
"eatenAt": "2026-01-30T13:14:04.828Z",
"createdAt": "2026-01-30T13:23:00.176Z"
}