Trail Mix
- userId
-
Kevon Dickinson @kevon.dickinson
- name
- Trail Mix
- kind
- snack
- calories
- 656
- proteinGrams
- 55.2
- carbsGrams
- 52.2
- fatGrams
- 25.1
- eatenAt
- createdAt
Overview
meals / #896
Trail Mix
#896
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/896" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/896" ); 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/896"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/896"
)
meal = res.json() Response
{
"id": 896,
"userId": 218,
"name": "Trail Mix",
"kind": "snack",
"calories": 656,
"proteinGrams": 55.2,
"carbsGrams": 52.2,
"fatGrams": 25.1,
"eatenAt": "2025-10-06T06:35:16.517Z",
"createdAt": "2025-10-06T06:49:07.839Z"
}