nutrition-logs #165
- userId
-
Amya Powlowski @amya_powlowski32
- date
- 2025-06-23
- totalCalories
- 2148
- totalProteinGrams
- 126
- totalCarbsGrams
- 259.6
- totalFatGrams
- 67.3
- waterMl
- 3452
- createdAt
Overview
nutrition-logs / #165
#165
#165
Request
curl example
curl -sS \ "https://example-data.com/api/v1/nutrition-logs/165" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/nutrition-logs/165" ); 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/165"
);
const nutritionLog = (await res.json()) as NutritionLog; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/nutrition-logs/165"
)
nutrition_log = res.json() Response
{
"id": 165,
"userId": 80,
"date": "2025-06-23",
"totalCalories": 2148,
"totalProteinGrams": 126,
"totalCarbsGrams": 259.6,
"totalFatGrams": 67.3,
"waterMl": 3452,
"createdAt": "2025-06-23T23:59:59.999Z"
}