example-data.com

meals / #237

userId
Raheem Kovacek @raheem_kovacek3
name
Granola Bowl
kind
breakfast
calories
411
proteinGrams
39.9
carbsGrams
15.8
fatGrams
20.9
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/237"
)
meal = res.json()
{
  "id": 237,
  "userId": 57,
  "name": "Granola Bowl",
  "kind": "breakfast",
  "calories": 411,
  "proteinGrams": 39.9,
  "carbsGrams": 15.8,
  "fatGrams": 20.9,
  "eatenAt": "2025-12-24T03:29:57.475Z",
  "createdAt": "2025-12-24T03:40:52.460Z"
}
Draftbit