Trail Mix
- userId
-
Adrain Kris-Hermiston @adrain.kris-hermiston
- name
- Trail Mix
- kind
- snack
- calories
- 484
- proteinGrams
- 44.7
- carbsGrams
- 48
- fatGrams
- 12.6
- eatenAt
- createdAt
Overview
meals / #852
Trail Mix
#852
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/852" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/852" ); 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/852"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/852"
)
meal = res.json() Response
{
"id": 852,
"userId": 206,
"name": "Trail Mix",
"kind": "snack",
"calories": 484,
"proteinGrams": 44.7,
"carbsGrams": 48,
"fatGrams": 12.6,
"eatenAt": "2026-05-04T02:13:01.256Z",
"createdAt": "2026-05-04T02:34:40.568Z"
}