Hummus and Veggies
- userId
-
April Kihn @april.kihn55
- name
- Hummus and Veggies
- kind
- snack
- calories
- 592
- proteinGrams
- 51.8
- carbsGrams
- 51.3
- fatGrams
- 19.9
- eatenAt
- createdAt
Overview
meals / #572
Hummus and Veggies
#572
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/572" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/572" ); 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/572"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/572"
)
meal = res.json() Response
{
"id": 572,
"userId": 137,
"name": "Hummus and Veggies",
"kind": "snack",
"calories": 592,
"proteinGrams": 51.8,
"carbsGrams": 51.3,
"fatGrams": 19.9,
"eatenAt": "2025-05-23T04:21:57.295Z",
"createdAt": "2025-05-23T04:28:58.849Z"
}