example-data.com

meals / #229

userId
Niko Wisozk @niko_wisozk
name
Protein Shake
kind
breakfast
calories
432
proteinGrams
40.7
carbsGrams
34.7
fatGrams
14.5
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/229"
)
meal = res.json()
{
  "id": 229,
  "userId": 56,
  "name": "Protein Shake",
  "kind": "breakfast",
  "calories": 432,
  "proteinGrams": 40.7,
  "carbsGrams": 34.7,
  "fatGrams": 14.5,
  "eatenAt": "2026-05-20T23:03:17.267Z",
  "createdAt": "2026-05-20T23:28:35.495Z"
}
Draftbit