example-data.com

nutrition-logs / #105

userId
Simeon Robel @simeon_robel12
date
2025-08-19
totalCalories
2220
totalProteinGrams
54.6
totalCarbsGrams
345.8
totalFatGrams
68.7
waterMl
1239
createdAt

Component variants

Related

curl -sS \
  "https://example-data.com/api/v1/nutrition-logs/105" \
  -H "Accept: application/json"
const res = await fetch(
  "https://example-data.com/api/v1/nutrition-logs/105"
);
const nutritionLog = await res.json();
import type { NutritionLog } from "https://example-data.com/types/nutrition-logs.d.ts";

const res = await fetch(
  "https://example-data.com/api/v1/nutrition-logs/105"
);
const nutritionLog = (await res.json()) as NutritionLog;
import requests

res = requests.get(
    "https://example-data.com/api/v1/nutrition-logs/105"
)
nutrition_log = res.json()
{
  "id": 105,
  "userId": 55,
  "date": "2025-08-19",
  "totalCalories": 2220,
  "totalProteinGrams": 54.6,
  "totalCarbsGrams": 345.8,
  "totalFatGrams": 68.7,
  "waterMl": 1239,
  "createdAt": "2025-08-19T23:59:59.999Z"
}
Draftbit