example-data.com

meals / #132

userId
Izaiah Rempel @izaiah_rempel
name
Roasted Chicken
kind
dinner
calories
502
proteinGrams
32.8
carbsGrams
15.6
fatGrams
34.3
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/132"
)
meal = res.json()
{
  "id": 132,
  "userId": 31,
  "name": "Roasted Chicken",
  "kind": "dinner",
  "calories": 502,
  "proteinGrams": 32.8,
  "carbsGrams": 15.6,
  "fatGrams": 34.3,
  "eatenAt": "2026-05-21T09:32:25.941Z",
  "createdAt": "2026-05-21T09:51:30.376Z"
}
Draftbit