example-data.com

nutrition-logs / #57

userId
Jensen Bashirian @jensen_bashirian
date
2026-03-17
totalCalories
1715
totalProteinGrams
172
totalCarbsGrams
116.1
totalFatGrams
62.5
waterMl
1909
createdAt

Component variants

Related

curl -sS \
  "https://example-data.com/api/v1/nutrition-logs/57" \
  -H "Accept: application/json"
const res = await fetch(
  "https://example-data.com/api/v1/nutrition-logs/57"
);
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/57"
);
const nutritionLog = (await res.json()) as NutritionLog;
import requests

res = requests.get(
    "https://example-data.com/api/v1/nutrition-logs/57"
)
nutrition_log = res.json()
{
  "id": 57,
  "userId": 29,
  "date": "2026-03-17",
  "totalCalories": 1715,
  "totalProteinGrams": 172,
  "totalCarbsGrams": 116.1,
  "totalFatGrams": 62.5,
  "waterMl": 1909,
  "createdAt": "2026-03-17T23:59:59.999Z"
}
Draftbit