example-data.com

meals / #189

userId
Della Labadie @della_labadie
name
Almonds
kind
snack
calories
494
proteinGrams
42.1
carbsGrams
49.8
fatGrams
14
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/189"
)
meal = res.json()
{
  "id": 189,
  "userId": 46,
  "name": "Almonds",
  "kind": "snack",
  "calories": 494,
  "proteinGrams": 42.1,
  "carbsGrams": 49.8,
  "fatGrams": 14,
  "eatenAt": "2026-04-07T19:49:41.297Z",
  "createdAt": "2026-04-07T20:12:32.852Z"
}
Draftbit