Protein Shake
- userId
-
Whitney O'Reilly @whitney.oreilly
- name
- Protein Shake
- kind
- breakfast
- calories
- 511
- proteinGrams
- 8
- carbsGrams
- 76
- fatGrams
- 19.4
- eatenAt
- createdAt
Overview
meals / #408
Protein Shake
#408
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/408" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/408" ); 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/408"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/408"
)
meal = res.json() Response
{
"id": 408,
"userId": 99,
"name": "Protein Shake",
"kind": "breakfast",
"calories": 511,
"proteinGrams": 8,
"carbsGrams": 76,
"fatGrams": 19.4,
"eatenAt": "2025-08-28T07:45:28.995Z",
"createdAt": "2025-08-28T08:02:56.288Z"
}