example-data.com

meals / #235

userId
Raheem Kovacek @raheem_kovacek3
name
Granola Bowl
kind
breakfast
calories
405
proteinGrams
10.2
carbsGrams
22.3
fatGrams
30.6
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/235"
)
meal = res.json()
{
  "id": 235,
  "userId": 57,
  "name": "Granola Bowl",
  "kind": "breakfast",
  "calories": 405,
  "proteinGrams": 10.2,
  "carbsGrams": 22.3,
  "fatGrams": 30.6,
  "eatenAt": "2025-07-12T15:40:15.038Z",
  "createdAt": "2025-07-12T15:54:58.237Z"
}
Draftbit