Banana
- userId
-
Telly Sanford @telly.sanford
- name
- Banana
- kind
- snack
- calories
- 527
- proteinGrams
- 46.8
- carbsGrams
- 77.4
- fatGrams
- 3.3
- eatenAt
- createdAt
Overview
meals / #512
Banana
#512
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/512" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/512" ); 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/512"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/512"
)
meal = res.json() Response
{
"id": 512,
"userId": 123,
"name": "Banana",
"kind": "snack",
"calories": 527,
"proteinGrams": 46.8,
"carbsGrams": 77.4,
"fatGrams": 3.3,
"eatenAt": "2026-04-30T15:06:30.293Z",
"createdAt": "2026-04-30T15:23:02.780Z"
}