Trail Mix
- userId
-
Fritz Skiles @fritz_skiles
- name
- Trail Mix
- kind
- snack
- calories
- 653
- proteinGrams
- 25.7
- carbsGrams
- 55.7
- fatGrams
- 36.4
- eatenAt
- createdAt
Overview
meals / #604
Trail Mix
#604
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/604" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/604" ); 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/604"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/604"
)
meal = res.json() Response
{
"id": 604,
"userId": 144,
"name": "Trail Mix",
"kind": "snack",
"calories": 653,
"proteinGrams": 25.7,
"carbsGrams": 55.7,
"fatGrams": 36.4,
"eatenAt": "2025-11-25T00:33:34.994Z",
"createdAt": "2025-11-25T00:52:52.390Z"
}