example-data.com

meals / #61

userId
Zachariah Herzog @zachariah_herzog42
name
Scrambled Eggs
kind
breakfast
calories
567
proteinGrams
9.8
carbsGrams
73.7
fatGrams
25.9
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/61"
)
meal = res.json()
{
  "id": 61,
  "userId": 15,
  "name": "Scrambled Eggs",
  "kind": "breakfast",
  "calories": 567,
  "proteinGrams": 9.8,
  "carbsGrams": 73.7,
  "fatGrams": 25.9,
  "eatenAt": "2025-07-29T20:13:20.200Z",
  "createdAt": "2025-07-29T20:20:17.571Z"
}
Draftbit