example-data.com

meals / #226

userId
Simeon Robel @simeon_robel12
name
Greek Yogurt Parfait
kind
breakfast
calories
637
proteinGrams
45.3
carbsGrams
61.4
fatGrams
23.4
eatenAt
createdAt

Component variants

Related

curl -sS \
  "https://example-data.com/api/v1/meals/226" \
  -H "Accept: application/json"
const res = await fetch(
  "https://example-data.com/api/v1/meals/226"
);
const meal = await res.json();
import type { Meal } from "https://example-data.com/types/meals.d.ts";

const res = await fetch(
  "https://example-data.com/api/v1/meals/226"
);
const meal = (await res.json()) as Meal;
import requests

res = requests.get(
    "https://example-data.com/api/v1/meals/226"
)
meal = res.json()
{
  "id": 226,
  "userId": 55,
  "name": "Greek Yogurt Parfait",
  "kind": "breakfast",
  "calories": 637,
  "proteinGrams": 45.3,
  "carbsGrams": 61.4,
  "fatGrams": 23.4,
  "eatenAt": "2026-03-19T08:22:25.608Z",
  "createdAt": "2026-03-19T08:29:49.237Z"
}
Draftbit