Roasted Chicken
- userId
-
Amely Daniel @amely_daniel
- name
- Roasted Chicken
- kind
- dinner
- calories
- 289
- proteinGrams
- 6.2
- carbsGrams
- 43.9
- fatGrams
- 9.8
- eatenAt
- createdAt
Overview
meals / #167
Roasted Chicken
#167
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/167" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/167" ); 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/167"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/167"
)
meal = res.json() Response
{
"id": 167,
"userId": 41,
"name": "Roasted Chicken",
"kind": "dinner",
"calories": 289,
"proteinGrams": 6.2,
"carbsGrams": 43.9,
"fatGrams": 9.8,
"eatenAt": "2025-09-22T23:52:26.176Z",
"createdAt": "2025-09-22T23:55:41.503Z"
}