Protein Bar
- userId
-
Douglas Frami @douglas.frami
- name
- Protein Bar
- kind
- snack
- calories
- 496
- proteinGrams
- 19.6
- carbsGrams
- 68.5
- fatGrams
- 16
- eatenAt
- createdAt
Overview
meals / #619
Protein Bar
#619
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/619" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/619" ); 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/619"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/619"
)
meal = res.json() Response
{
"id": 619,
"userId": 148,
"name": "Protein Bar",
"kind": "snack",
"calories": 496,
"proteinGrams": 19.6,
"carbsGrams": 68.5,
"fatGrams": 16,
"eatenAt": "2026-03-13T06:48:52.513Z",
"createdAt": "2026-03-13T07:11:06.598Z"
}