Veggie Burger
- userId
-
Cyril Frami @cyril_frami88
- name
- Veggie Burger
- kind
- lunch
- calories
- 370
- proteinGrams
- 7.4
- carbsGrams
- 40.1
- fatGrams
- 20
- eatenAt
- createdAt
Overview
meals / #751
Veggie Burger
#751
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/751" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/751" ); 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/751"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/751"
)
meal = res.json() Response
{
"id": 751,
"userId": 182,
"name": "Veggie Burger",
"kind": "lunch",
"calories": 370,
"proteinGrams": 7.4,
"carbsGrams": 40.1,
"fatGrams": 20,
"eatenAt": "2026-02-21T06:05:38.311Z",
"createdAt": "2026-02-21T06:15:59.554Z"
}