example-data.com

meals / #198

userId
Maymie Boehm @maymie.boehm90
name
Brown Rice and Veggies
kind
lunch
calories
512
proteinGrams
37.6
carbsGrams
59.9
fatGrams
13.5
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/198"
)
meal = res.json()
{
  "id": 198,
  "userId": 48,
  "name": "Brown Rice and Veggies",
  "kind": "lunch",
  "calories": 512,
  "proteinGrams": 37.6,
  "carbsGrams": 59.9,
  "fatGrams": 13.5,
  "eatenAt": "2025-12-28T02:28:30.418Z",
  "createdAt": "2025-12-28T02:42:10.281Z"
}
Draftbit