example-data.com

meals / #191

userId
Lacy Gusikowski @lacy.gusikowski
name
Pasta with Marinara
kind
dinner
calories
362
proteinGrams
47.1
carbsGrams
23.1
fatGrams
9
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/191"
)
meal = res.json()
{
  "id": 191,
  "userId": 47,
  "name": "Pasta with Marinara",
  "kind": "dinner",
  "calories": 362,
  "proteinGrams": 47.1,
  "carbsGrams": 23.1,
  "fatGrams": 9,
  "eatenAt": "2026-03-12T22:06:01.320Z",
  "createdAt": "2026-03-12T22:30:07.497Z"
}
Draftbit