Protein Bar
- userId
-
Rosina Larkin @rosina.larkin75
- name
- Protein Bar
- kind
- snack
- calories
- 688
- proteinGrams
- 57.8
- carbsGrams
- 73.8
- fatGrams
- 17.9
- eatenAt
- createdAt
Overview
meals / #428
Protein Bar
#428
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/428" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/428" ); 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/428"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/428"
)
meal = res.json() Response
{
"id": 428,
"userId": 103,
"name": "Protein Bar",
"kind": "snack",
"calories": 688,
"proteinGrams": 57.8,
"carbsGrams": 73.8,
"fatGrams": 17.9,
"eatenAt": "2025-11-04T07:41:17.576Z",
"createdAt": "2025-11-04T07:44:14.216Z"
}