Veggie Burger
- userId
-
Jewell Olson @jewell_olson2
- name
- Veggie Burger
- kind
- lunch
- calories
- 498
- proteinGrams
- 59.4
- carbsGrams
- 45.8
- fatGrams
- 8.6
- eatenAt
- createdAt
Overview
meals / #278
Veggie Burger
#278
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/278" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/278" ); 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/278"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/278"
)
meal = res.json() Response
{
"id": 278,
"userId": 68,
"name": "Veggie Burger",
"kind": "lunch",
"calories": 498,
"proteinGrams": 59.4,
"carbsGrams": 45.8,
"fatGrams": 8.6,
"eatenAt": "2026-03-20T10:30:48.661Z",
"createdAt": "2026-03-20T10:32:36.661Z"
}