example-data.com

meals / #227

userId
Simeon Robel @simeon_robel12
name
Cottage Cheese
kind
snack
calories
521
proteinGrams
47.6
carbsGrams
58.4
fatGrams
10.8
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/227"
)
meal = res.json()
{
  "id": 227,
  "userId": 55,
  "name": "Cottage Cheese",
  "kind": "snack",
  "calories": 521,
  "proteinGrams": 47.6,
  "carbsGrams": 58.4,
  "fatGrams": 10.8,
  "eatenAt": "2026-05-01T19:32:35.417Z",
  "createdAt": "2026-05-01T19:59:42.051Z"
}
Draftbit