example-data.com

meals / #58

userId
Alanna Kilback @alanna_kilback31
name
Greek Yogurt Parfait
kind
breakfast
calories
753
proteinGrams
43.7
carbsGrams
63.8
fatGrams
35.9
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/58"
)
meal = res.json()
{
  "id": 58,
  "userId": 14,
  "name": "Greek Yogurt Parfait",
  "kind": "breakfast",
  "calories": 753,
  "proteinGrams": 43.7,
  "carbsGrams": 63.8,
  "fatGrams": 35.9,
  "eatenAt": "2025-08-22T04:52:27.123Z",
  "createdAt": "2025-08-22T05:18:42.293Z"
}
Draftbit