example-data.com

meals / #121

userId
Rosella Homenick @rosella.homenick
name
Brown Rice and Veggies
kind
lunch
calories
519
proteinGrams
21.6
carbsGrams
32.9
fatGrams
33.4
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/121"
)
meal = res.json()
{
  "id": 121,
  "userId": 27,
  "name": "Brown Rice and Veggies",
  "kind": "lunch",
  "calories": 519,
  "proteinGrams": 21.6,
  "carbsGrams": 32.9,
  "fatGrams": 33.4,
  "eatenAt": "2025-12-30T23:05:53.830Z",
  "createdAt": "2025-12-30T23:10:00.007Z"
}
Draftbit