example-data.com

meals / #41

userId
Jaycee Erdman @jaycee_erdman96
name
Oatmeal with Berries
kind
breakfast
calories
593
proteinGrams
40.4
carbsGrams
28.3
fatGrams
35.3
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/41"
)
meal = res.json()
{
  "id": 41,
  "userId": 10,
  "name": "Oatmeal with Berries",
  "kind": "breakfast",
  "calories": 593,
  "proteinGrams": 40.4,
  "carbsGrams": 28.3,
  "fatGrams": 35.3,
  "eatenAt": "2026-01-28T18:09:25.770Z",
  "createdAt": "2026-01-28T18:34:51.261Z"
}
Draftbit