Protein Bar
- userId
-
Ressie Howell-Hodkiewicz @ressie_howell-hodkiewicz35
- name
- Protein Bar
- kind
- snack
- calories
- 295
- proteinGrams
- 53.7
- carbsGrams
- 12.3
- fatGrams
- 3.4
- eatenAt
- createdAt
Overview
meals / #882
Protein Bar
#882
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/882" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/882" ); 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/882"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/882"
)
meal = res.json() Response
{
"id": 882,
"userId": 214,
"name": "Protein Bar",
"kind": "snack",
"calories": 295,
"proteinGrams": 53.7,
"carbsGrams": 12.3,
"fatGrams": 3.4,
"eatenAt": "2025-10-11T04:34:56.930Z",
"createdAt": "2025-10-11T04:40:46.738Z"
}