Protein Shake
- userId
-
Leonor Corwin @leonor_corwin3
- name
- Protein Shake
- kind
- breakfast
- calories
- 655
- proteinGrams
- 31.6
- carbsGrams
- 43.7
- fatGrams
- 39.3
- eatenAt
- createdAt
Overview
meals / #870
Protein Shake
#870
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/870" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/870" ); 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/870"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/870"
)
meal = res.json() Response
{
"id": 870,
"userId": 211,
"name": "Protein Shake",
"kind": "breakfast",
"calories": 655,
"proteinGrams": 31.6,
"carbsGrams": 43.7,
"fatGrams": 39.3,
"eatenAt": "2026-02-21T20:05:15.610Z",
"createdAt": "2026-02-21T20:21:58.569Z"
}