Roasted Chicken
- userId
-
Jabari Farrell @jabari_farrell75
- name
- Roasted Chicken
- kind
- dinner
- calories
- 715
- proteinGrams
- 22.8
- carbsGrams
- 76.4
- fatGrams
- 35.3
- eatenAt
- createdAt
Overview
meals / #981
Roasted Chicken
#981
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/981" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/981" ); 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/981"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/981"
)
meal = res.json() Response
{
"id": 981,
"userId": 240,
"name": "Roasted Chicken",
"kind": "dinner",
"calories": 715,
"proteinGrams": 22.8,
"carbsGrams": 76.4,
"fatGrams": 35.3,
"eatenAt": "2025-12-28T01:58:35.348Z",
"createdAt": "2025-12-28T02:14:04.432Z"
}