example-data.com

meals / #12

userId
Conner Bernhard @conner.bernhard33
name
Trail Mix
kind
snack
calories
553
proteinGrams
22.3
carbsGrams
76.1
fatGrams
17.7
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/12"
)
meal = res.json()
{
  "id": 12,
  "userId": 3,
  "name": "Trail Mix",
  "kind": "snack",
  "calories": 553,
  "proteinGrams": 22.3,
  "carbsGrams": 76.1,
  "fatGrams": 17.7,
  "eatenAt": "2026-04-27T15:08:28.132Z",
  "createdAt": "2026-04-27T15:27:38.647Z"
}
Draftbit