example-data.com

meals / #181

userId
Myrtie Daniel @myrtie_daniel33
name
Apple and Peanut Butter
kind
snack
calories
705
proteinGrams
22
carbsGrams
74.8
fatGrams
35.3
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/181"
)
meal = res.json()
{
  "id": 181,
  "userId": 45,
  "name": "Apple and Peanut Butter",
  "kind": "snack",
  "calories": 705,
  "proteinGrams": 22,
  "carbsGrams": 74.8,
  "fatGrams": 35.3,
  "eatenAt": "2026-05-05T21:38:16.576Z",
  "createdAt": "2026-05-05T21:56:29.012Z"
}
Draftbit