example-data.com

meals / #25

userId
Brycen Bayer @brycen_bayer60
name
Oatmeal with Berries
kind
breakfast
calories
320
proteinGrams
54.8
carbsGrams
17.2
fatGrams
3.5
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/25"
)
meal = res.json()
{
  "id": 25,
  "userId": 6,
  "name": "Oatmeal with Berries",
  "kind": "breakfast",
  "calories": 320,
  "proteinGrams": 54.8,
  "carbsGrams": 17.2,
  "fatGrams": 3.5,
  "eatenAt": "2025-08-29T18:44:35.584Z",
  "createdAt": "2025-08-29T19:01:12.792Z"
}
Draftbit