example-data.com

meals / #139

userId
Cassidy Christiansen @cassidy_christiansen38
name
Avocado Toast
kind
breakfast
calories
640
proteinGrams
46.8
carbsGrams
60.7
fatGrams
23.3
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/139"
)
meal = res.json()
{
  "id": 139,
  "userId": 33,
  "name": "Avocado Toast",
  "kind": "breakfast",
  "calories": 640,
  "proteinGrams": 46.8,
  "carbsGrams": 60.7,
  "fatGrams": 23.3,
  "eatenAt": "2025-10-16T10:59:19.859Z",
  "createdAt": "2025-10-16T11:00:17.297Z"
}
Draftbit