Protein Shake
- userId
-
Niko Wisozk @niko_wisozk
- name
- Protein Shake
- kind
- breakfast
- calories
- 432
- proteinGrams
- 40.7
- carbsGrams
- 34.7
- fatGrams
- 14.5
- eatenAt
- createdAt
Overview
meals / #229
Protein Shake
#229
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/229" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/229" ); 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/229"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/229"
)
meal = res.json() Response
{
"id": 229,
"userId": 56,
"name": "Protein Shake",
"kind": "breakfast",
"calories": 432,
"proteinGrams": 40.7,
"carbsGrams": 34.7,
"fatGrams": 14.5,
"eatenAt": "2026-05-20T23:03:17.267Z",
"createdAt": "2026-05-20T23:28:35.495Z"
}