example-data.com

meals / #56

userId
Judy Hackett @judy_hackett49
name
Greek Yogurt Parfait
kind
breakfast
calories
520
proteinGrams
13.1
carbsGrams
61
fatGrams
24.8
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/56"
)
meal = res.json()
{
  "id": 56,
  "userId": 13,
  "name": "Greek Yogurt Parfait",
  "kind": "breakfast",
  "calories": 520,
  "proteinGrams": 13.1,
  "carbsGrams": 61,
  "fatGrams": 24.8,
  "eatenAt": "2026-04-03T02:40:37.373Z",
  "createdAt": "2026-04-03T03:09:16.585Z"
}
Draftbit