Veggie Burger
- userId
-
Green Kozey @green_kozey22
- name
- Veggie Burger
- kind
- lunch
- calories
- 564
- proteinGrams
- 28.2
- carbsGrams
- 28.3
- fatGrams
- 37.6
- eatenAt
- createdAt
Overview
meals / #201
Veggie Burger
#201
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/201" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/201" ); 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/201"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/201"
)
meal = res.json() Response
{
"id": 201,
"userId": 49,
"name": "Veggie Burger",
"kind": "lunch",
"calories": 564,
"proteinGrams": 28.2,
"carbsGrams": 28.3,
"fatGrams": 37.6,
"eatenAt": "2025-12-04T22:06:11.641Z",
"createdAt": "2025-12-04T22:11:41.250Z"
}