Almonds
- userId
-
Diana Murazik @diana.murazik31
- name
- Almonds
- kind
- snack
- calories
- 646
- proteinGrams
- 33.6
- carbsGrams
- 56.3
- fatGrams
- 31.8
- eatenAt
- createdAt
Overview
meals / #523
Almonds
#523
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/523" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/523" ); 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/523"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/523"
)
meal = res.json() Response
{
"id": 523,
"userId": 125,
"name": "Almonds",
"kind": "snack",
"calories": 646,
"proteinGrams": 33.6,
"carbsGrams": 56.3,
"fatGrams": 31.8,
"eatenAt": "2025-10-27T19:07:48.687Z",
"createdAt": "2025-10-27T19:19:11.868Z"
}