Banana
- userId
-
Rubye Emmerich @rubye.emmerich
- name
- Banana
- kind
- snack
- calories
- 268
- proteinGrams
- 28.8
- carbsGrams
- 15.9
- fatGrams
- 9.9
- eatenAt
- createdAt
Overview
meals / #927
Banana
#927
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/927" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/927" ); 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/927"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/927"
)
meal = res.json() Response
{
"id": 927,
"userId": 225,
"name": "Banana",
"kind": "snack",
"calories": 268,
"proteinGrams": 28.8,
"carbsGrams": 15.9,
"fatGrams": 9.9,
"eatenAt": "2025-11-02T07:31:36.538Z",
"createdAt": "2025-11-02T07:47:39.110Z"
}