Pancakes
- userId
-
Terence Lemke @terence.lemke85
- name
- Pancakes
- kind
- breakfast
- calories
- 770
- proteinGrams
- 52.4
- carbsGrams
- 63.1
- fatGrams
- 34.2
- eatenAt
- createdAt
Overview
meals / #304
Pancakes
#304
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/304" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/304" ); 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/304"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/304"
)
meal = res.json() Response
{
"id": 304,
"userId": 74,
"name": "Pancakes",
"kind": "breakfast",
"calories": 770,
"proteinGrams": 52.4,
"carbsGrams": 63.1,
"fatGrams": 34.2,
"eatenAt": "2026-01-23T18:09:45.121Z",
"createdAt": "2026-01-23T18:13:32.430Z"
}