Veggie Burger
- userId
-
Jonas Rath @jonas.rath
- name
- Veggie Burger
- kind
- lunch
- calories
- 569
- proteinGrams
- 40.8
- carbsGrams
- 43.3
- fatGrams
- 25.8
- eatenAt
- createdAt
Overview
meals / #575
Veggie Burger
#575
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/575" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/575" ); 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/575"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/575"
)
meal = res.json() Response
{
"id": 575,
"userId": 138,
"name": "Veggie Burger",
"kind": "lunch",
"calories": 569,
"proteinGrams": 40.8,
"carbsGrams": 43.3,
"fatGrams": 25.8,
"eatenAt": "2025-09-29T15:40:12.413Z",
"createdAt": "2025-09-29T16:03:41.118Z"
}