Protein Shake
- userId
-
Fritz Skiles @fritz_skiles
- name
- Protein Shake
- kind
- breakfast
- calories
- 513
- proteinGrams
- 55.3
- carbsGrams
- 5.3
- fatGrams
- 30.1
- eatenAt
- createdAt
Overview
meals / #602
Protein Shake
#602
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/602" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/602" ); 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/602"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/602"
)
meal = res.json() Response
{
"id": 602,
"userId": 144,
"name": "Protein Shake",
"kind": "breakfast",
"calories": 513,
"proteinGrams": 55.3,
"carbsGrams": 5.3,
"fatGrams": 30.1,
"eatenAt": "2026-01-27T08:04:33.346Z",
"createdAt": "2026-01-27T08:14:36.443Z"
}