Pancakes
- userId
-
Carmel Schultz @carmel.schultz
- name
- Pancakes
- kind
- breakfast
- calories
- 629
- proteinGrams
- 55.1
- carbsGrams
- 48
- fatGrams
- 24.1
- eatenAt
- createdAt
Overview
meals / #650
Pancakes
#650
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/650" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/650" ); 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/650"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/650"
)
meal = res.json() Response
{
"id": 650,
"userId": 156,
"name": "Pancakes",
"kind": "breakfast",
"calories": 629,
"proteinGrams": 55.1,
"carbsGrams": 48,
"fatGrams": 24.1,
"eatenAt": "2025-10-22T10:40:37.076Z",
"createdAt": "2025-10-22T11:00:25.365Z"
}