example-data.com

meals / #64

userId
Zachariah Herzog @zachariah_herzog42
name
Scrambled Eggs
kind
breakfast
calories
652
proteinGrams
43.9
carbsGrams
33.5
fatGrams
38
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/64"
)
meal = res.json()
{
  "id": 64,
  "userId": 15,
  "name": "Scrambled Eggs",
  "kind": "breakfast",
  "calories": 652,
  "proteinGrams": 43.9,
  "carbsGrams": 33.5,
  "fatGrams": 38,
  "eatenAt": "2025-12-15T23:48:17.500Z",
  "createdAt": "2025-12-16T00:06:31.008Z"
}
Draftbit