Protein Bar
- userId
-
Gerda Streich @gerda_streich
- name
- Protein Bar
- kind
- snack
- calories
- 288
- proteinGrams
- 16.6
- carbsGrams
- 6.9
- fatGrams
- 21.6
- eatenAt
- createdAt
Overview
meals / #525
Protein Bar
#525
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/525" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/525" ); 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/525"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/525"
)
meal = res.json() Response
{
"id": 525,
"userId": 126,
"name": "Protein Bar",
"kind": "snack",
"calories": 288,
"proteinGrams": 16.6,
"carbsGrams": 6.9,
"fatGrams": 21.6,
"eatenAt": "2026-03-17T13:48:34.989Z",
"createdAt": "2026-03-17T13:59:02.376Z"
}