example-data.com

meals / #220

userId
Jo Haag-Mayer @jo_haag-mayer
name
Rice Cakes
kind
snack
calories
299
proteinGrams
15.6
carbsGrams
10.7
fatGrams
21.5
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/220"
)
meal = res.json()
{
  "id": 220,
  "userId": 54,
  "name": "Rice Cakes",
  "kind": "snack",
  "calories": 299,
  "proteinGrams": 15.6,
  "carbsGrams": 10.7,
  "fatGrams": 21.5,
  "eatenAt": "2026-02-06T03:40:19.031Z",
  "createdAt": "2026-02-06T03:47:57.426Z"
}
Draftbit