nutrition-logs #332
- userId
-
Alexander Beahan @alexander.beahan57
- date
- 2026-01-03
- totalCalories
- 2550
- totalProteinGrams
- 184.2
- totalCarbsGrams
- 200.5
- totalFatGrams
- 112.4
- waterMl
- 1277
- createdAt
Overview
nutrition-logs / #332
#332
#332
Request
curl example
curl -sS \ "https://example-data.com/api/v1/nutrition-logs/332" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/nutrition-logs/332" ); const nutritionLog = await res.json();
TypeScript example
// Download once: mkdir -p types && curl -o types/nutrition-logs.d.ts https://example-data.com/types/nutrition-logs.d.ts
import type { NutritionLog } from "./types/nutrition-logs";
const res = await fetch(
"https://example-data.com/api/v1/nutrition-logs/332"
);
const nutritionLog = (await res.json()) as NutritionLog; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/nutrition-logs/332"
)
nutrition_log = res.json() Response
{
"id": 332,
"userId": 169,
"date": "2026-01-03",
"totalCalories": 2550,
"totalProteinGrams": 184.2,
"totalCarbsGrams": 200.5,
"totalFatGrams": 112.4,
"waterMl": 1277,
"createdAt": "2026-01-03T23:59:59.999Z"
}