Banana
- userId
-
Oliver Mitchell @oliver_mitchell50
- name
- Banana
- kind
- snack
- calories
- 655
- proteinGrams
- 51.5
- carbsGrams
- 61.5
- fatGrams
- 22.5
- eatenAt
- createdAt
Overview
meals / #802
Banana
#802
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/802" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/802" ); 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/802"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/802"
)
meal = res.json() Response
{
"id": 802,
"userId": 194,
"name": "Banana",
"kind": "snack",
"calories": 655,
"proteinGrams": 51.5,
"carbsGrams": 61.5,
"fatGrams": 22.5,
"eatenAt": "2025-10-16T17:07:18.857Z",
"createdAt": "2025-10-16T17:36:44.206Z"
}