Protein Shake
- userId
-
Kariane Schmitt @kariane.schmitt97
- name
- Protein Shake
- kind
- breakfast
- calories
- 692
- proteinGrams
- 50.8
- carbsGrams
- 70.8
- fatGrams
- 22.8
- eatenAt
- createdAt
Overview
meals / #138
Protein Shake
#138
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/138" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/138" ); 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/138"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/138"
)
meal = res.json() Response
{
"id": 138,
"userId": 32,
"name": "Protein Shake",
"kind": "breakfast",
"calories": 692,
"proteinGrams": 50.8,
"carbsGrams": 70.8,
"fatGrams": 22.8,
"eatenAt": "2025-05-25T11:12:32.658Z",
"createdAt": "2025-05-25T11:27:17.787Z"
}