Protein Bar
- userId
-
Kaden Brekke @kaden_brekke
- name
- Protein Bar
- kind
- snack
- calories
- 495
- proteinGrams
- 13.4
- carbsGrams
- 57.8
- fatGrams
- 23.4
- eatenAt
- createdAt
Overview
meals / #277
Protein Bar
#277
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/277" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/277" ); 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/277"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/277"
)
meal = res.json() Response
{
"id": 277,
"userId": 67,
"name": "Protein Bar",
"kind": "snack",
"calories": 495,
"proteinGrams": 13.4,
"carbsGrams": 57.8,
"fatGrams": 23.4,
"eatenAt": "2026-02-09T19:34:13.221Z",
"createdAt": "2026-02-09T19:53:11.644Z"
}