example-data.com

meals / #65

userId
Zachariah Herzog @zachariah_herzog42
name
Avocado Toast
kind
breakfast
calories
393
proteinGrams
6.9
carbsGrams
35.7
fatGrams
24.7
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/65"
)
meal = res.json()
{
  "id": 65,
  "userId": 15,
  "name": "Avocado Toast",
  "kind": "breakfast",
  "calories": 393,
  "proteinGrams": 6.9,
  "carbsGrams": 35.7,
  "fatGrams": 24.7,
  "eatenAt": "2025-08-26T11:47:38.024Z",
  "createdAt": "2025-08-26T11:56:44.126Z"
}
Draftbit