Banana
- userId
-
Jamaal Rolfson @jamaal_rolfson
- name
- Banana
- kind
- snack
- calories
- 376
- proteinGrams
- 11.1
- carbsGrams
- 71.1
- fatGrams
- 5.2
- eatenAt
- createdAt
Overview
meals / #855
Banana
#855
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/855" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/855" ); 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/855"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/855"
)
meal = res.json() Response
{
"id": 855,
"userId": 207,
"name": "Banana",
"kind": "snack",
"calories": 376,
"proteinGrams": 11.1,
"carbsGrams": 71.1,
"fatGrams": 5.2,
"eatenAt": "2026-02-12T10:44:37.777Z",
"createdAt": "2026-02-12T11:11:46.436Z"
}