Trail Mix
- userId
-
Lavonne Schmidt @lavonne.schmidt95
- name
- Trail Mix
- kind
- snack
- calories
- 565
- proteinGrams
- 54.2
- carbsGrams
- 14.7
- fatGrams
- 32.2
- eatenAt
- createdAt
Overview
meals / #792
Trail Mix
#792
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/792" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/792" ); 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/792"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/792"
)
meal = res.json() Response
{
"id": 792,
"userId": 192,
"name": "Trail Mix",
"kind": "snack",
"calories": 565,
"proteinGrams": 54.2,
"carbsGrams": 14.7,
"fatGrams": 32.2,
"eatenAt": "2025-08-31T16:57:17.159Z",
"createdAt": "2025-08-31T17:00:15.471Z"
}