Trail Mix
- userId
-
Conner Bernhard @conner.bernhard33
- name
- Trail Mix
- kind
- snack
- calories
- 553
- proteinGrams
- 22.3
- carbsGrams
- 76.1
- fatGrams
- 17.7
- eatenAt
- createdAt
Overview
meals / #12
Trail Mix
#12
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/12" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/12" ); 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/12"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/12"
)
meal = res.json() Response
{
"id": 12,
"userId": 3,
"name": "Trail Mix",
"kind": "snack",
"calories": 553,
"proteinGrams": 22.3,
"carbsGrams": 76.1,
"fatGrams": 17.7,
"eatenAt": "2026-04-27T15:08:28.132Z",
"createdAt": "2026-04-27T15:27:38.647Z"
}