example-data.com

meals / #49

userId
Mara Johnson @mara.johnson17
name
Brown Rice and Veggies
kind
lunch
calories
326
proteinGrams
40.6
carbsGrams
9.5
fatGrams
13.9
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/49"
)
meal = res.json()
{
  "id": 49,
  "userId": 12,
  "name": "Brown Rice and Veggies",
  "kind": "lunch",
  "calories": 326,
  "proteinGrams": 40.6,
  "carbsGrams": 9.5,
  "fatGrams": 13.9,
  "eatenAt": "2025-12-10T15:57:12.468Z",
  "createdAt": "2025-12-10T16:03:56.285Z"
}
Draftbit