Veggie Burger
- userId
-
Tabitha Ruecker @tabitha.ruecker
- name
- Veggie Burger
- kind
- lunch
- calories
- 599
- proteinGrams
- 55.4
- carbsGrams
- 12.7
- fatGrams
- 36.3
- eatenAt
- createdAt
Overview
meals / #813
Veggie Burger
#813
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/813" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/813" ); 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/813"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/813"
)
meal = res.json() Response
{
"id": 813,
"userId": 197,
"name": "Veggie Burger",
"kind": "lunch",
"calories": 599,
"proteinGrams": 55.4,
"carbsGrams": 12.7,
"fatGrams": 36.3,
"eatenAt": "2026-02-09T21:33:09.780Z",
"createdAt": "2026-02-09T22:00:38.119Z"
}