Protein Bar
- userId
-
Lamar Wilkinson @lamar_wilkinson43
- name
- Protein Bar
- kind
- snack
- calories
- 586
- proteinGrams
- 46.4
- carbsGrams
- 36.7
- fatGrams
- 28.2
- eatenAt
- createdAt
Overview
meals / #173
Protein Bar
#173
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/173" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/173" ); 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/173"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/173"
)
meal = res.json() Response
{
"id": 173,
"userId": 43,
"name": "Protein Bar",
"kind": "snack",
"calories": 586,
"proteinGrams": 46.4,
"carbsGrams": 36.7,
"fatGrams": 28.2,
"eatenAt": "2026-05-11T15:35:44.579Z",
"createdAt": "2026-05-11T15:45:07.443Z"
}