Pancakes
- userId
-
Michale Hilpert @michale_hilpert62
- name
- Pancakes
- kind
- breakfast
- calories
- 443
- proteinGrams
- 42.7
- carbsGrams
- 50.7
- fatGrams
- 7.7
- eatenAt
- createdAt
Overview
meals / #1014
Pancakes
#1014
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/1014" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/1014" ); 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/1014"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/1014"
)
meal = res.json() Response
{
"id": 1014,
"userId": 250,
"name": "Pancakes",
"kind": "breakfast",
"calories": 443,
"proteinGrams": 42.7,
"carbsGrams": 50.7,
"fatGrams": 7.7,
"eatenAt": "2025-11-22T04:51:09.707Z",
"createdAt": "2025-11-22T04:55:39.472Z"
}