nutrition-logs #131
- userId
-
Kaden Brekke @kaden_brekke
- date
- 2025-10-03
- totalCalories
- 1920
- totalProteinGrams
- 136.4
- totalCarbsGrams
- 146
- totalFatGrams
- 87.8
- waterMl
- 3562
- createdAt
Overview
nutrition-logs / #131
#131
#131
Request
curl example
curl -sS \ "https://example-data.com/api/v1/nutrition-logs/131" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/nutrition-logs/131" ); 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/131"
);
const nutritionLog = (await res.json()) as NutritionLog; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/nutrition-logs/131"
)
nutrition_log = res.json() Response
{
"id": 131,
"userId": 67,
"date": "2025-10-03",
"totalCalories": 1920,
"totalProteinGrams": 136.4,
"totalCarbsGrams": 146,
"totalFatGrams": 87.8,
"waterMl": 3562,
"createdAt": "2025-10-03T23:59:59.999Z"
}