Hummus and Veggies
- userId
-
Gavin Lowe @gavin_lowe
- name
- Hummus and Veggies
- kind
- snack
- calories
- 299
- proteinGrams
- 6.8
- carbsGrams
- 19.6
- fatGrams
- 21.5
- eatenAt
- createdAt
Overview
meals / #76
Hummus and Veggies
#76
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/76" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/76" ); 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/76"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/76"
)
meal = res.json() Response
{
"id": 76,
"userId": 17,
"name": "Hummus and Veggies",
"kind": "snack",
"calories": 299,
"proteinGrams": 6.8,
"carbsGrams": 19.6,
"fatGrams": 21.5,
"eatenAt": "2025-06-29T16:42:37.537Z",
"createdAt": "2025-06-29T16:44:38.092Z"
}