example-data.com

nutrition-logs / #118

userId
Jarrell Flatley @jarrell_flatley39
date
2025-11-18
totalCalories
2511
totalProteinGrams
103.7
totalCarbsGrams
321.2
totalFatGrams
90.1
waterMl
1465
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/nutrition-logs/118"
)
nutrition_log = res.json()
{
  "id": 118,
  "userId": 61,
  "date": "2025-11-18",
  "totalCalories": 2511,
  "totalProteinGrams": 103.7,
  "totalCarbsGrams": 321.2,
  "totalFatGrams": 90.1,
  "waterMl": 1465,
  "createdAt": "2025-11-18T23:59:59.999Z"
}
Draftbit