Banana
- userId
-
Porter Dooley @porter.dooley
- name
- Banana
- kind
- snack
- calories
- 313
- proteinGrams
- 7.4
- carbsGrams
- 40.7
- fatGrams
- 13.4
- eatenAt
- createdAt
Overview
meals / #564
Banana
#564
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/564" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/564" ); 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/564"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/564"
)
meal = res.json() Response
{
"id": 564,
"userId": 135,
"name": "Banana",
"kind": "snack",
"calories": 313,
"proteinGrams": 7.4,
"carbsGrams": 40.7,
"fatGrams": 13.4,
"eatenAt": "2025-10-06T03:40:31.807Z",
"createdAt": "2025-10-06T03:59:49.404Z"
}