Almonds
- userId
-
Sammy Schmidt @sammy.schmidt
- name
- Almonds
- kind
- snack
- calories
- 557
- proteinGrams
- 14.3
- carbsGrams
- 63.3
- fatGrams
- 27.4
- eatenAt
- createdAt
Overview
meals / #766
Almonds
#766
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/766" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/766" ); 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/766"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/766"
)
meal = res.json() Response
{
"id": 766,
"userId": 186,
"name": "Almonds",
"kind": "snack",
"calories": 557,
"proteinGrams": 14.3,
"carbsGrams": 63.3,
"fatGrams": 27.4,
"eatenAt": "2025-09-15T05:02:49.441Z",
"createdAt": "2025-09-15T05:25:12.908Z"
}