Hummus and Veggies
- userId
-
Karolann Legros @karolann_legros
- name
- Hummus and Veggies
- kind
- snack
- calories
- 304
- proteinGrams
- 15.4
- carbsGrams
- 39.1
- fatGrams
- 9.6
- eatenAt
- createdAt
Overview
meals / #1003
Hummus and Veggies
#1003
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/1003" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/1003" ); 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/1003"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/1003"
)
meal = res.json() Response
{
"id": 1003,
"userId": 246,
"name": "Hummus and Veggies",
"kind": "snack",
"calories": 304,
"proteinGrams": 15.4,
"carbsGrams": 39.1,
"fatGrams": 9.6,
"eatenAt": "2026-03-15T09:38:22.762Z",
"createdAt": "2026-03-15T09:51:26.434Z"
}