example-data.com

meals / #223

userId
Jo Haag-Mayer @jo_haag-mayer
name
Apple and Peanut Butter
kind
snack
calories
451
proteinGrams
14
carbsGrams
10.1
fatGrams
39.4
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/223"
)
meal = res.json()
{
  "id": 223,
  "userId": 54,
  "name": "Apple and Peanut Butter",
  "kind": "snack",
  "calories": 451,
  "proteinGrams": 14,
  "carbsGrams": 10.1,
  "fatGrams": 39.4,
  "eatenAt": "2026-04-13T04:37:57.815Z",
  "createdAt": "2026-04-13T05:04:11.443Z"
}
Draftbit