example-data.com

meals / #101

userId
Ericka DuBuque @ericka.dubuque
name
Tofu Curry
kind
dinner
calories
698
proteinGrams
27.8
carbsGrams
57
fatGrams
39.9
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/101"
)
meal = res.json()
{
  "id": 101,
  "userId": 23,
  "name": "Tofu Curry",
  "kind": "dinner",
  "calories": 698,
  "proteinGrams": 27.8,
  "carbsGrams": 57,
  "fatGrams": 39.9,
  "eatenAt": "2026-02-08T03:28:38.000Z",
  "createdAt": "2026-02-08T03:45:18.562Z"
}
Draftbit