Banana
- userId
-
Filiberto Fay @filiberto.fay59
- name
- Banana
- kind
- snack
- calories
- 428
- proteinGrams
- 26.2
- carbsGrams
- 64.7
- fatGrams
- 7.1
- eatenAt
- createdAt
Overview
meals / #385
Banana
#385
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/385" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/385" ); 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/385"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/385"
)
meal = res.json() Response
{
"id": 385,
"userId": 92,
"name": "Banana",
"kind": "snack",
"calories": 428,
"proteinGrams": 26.2,
"carbsGrams": 64.7,
"fatGrams": 7.1,
"eatenAt": "2026-01-20T16:50:44.173Z",
"createdAt": "2026-01-20T17:07:39.693Z"
}