example-data.com

meals / #155

userId
Lenny Howe @lenny.howe
name
Chicken Caesar Salad
kind
lunch
calories
428
proteinGrams
54.2
carbsGrams
48
fatGrams
2.1
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/155"
)
meal = res.json()
{
  "id": 155,
  "userId": 37,
  "name": "Chicken Caesar Salad",
  "kind": "lunch",
  "calories": 428,
  "proteinGrams": 54.2,
  "carbsGrams": 48,
  "fatGrams": 2.1,
  "eatenAt": "2026-01-18T16:19:49.574Z",
  "createdAt": "2026-01-18T16:21:04.993Z"
}
Draftbit