example-data.com

meals / #153

userId
Lenny Howe @lenny.howe
name
Grilled Steak
kind
dinner
calories
360
proteinGrams
7.9
carbsGrams
46.3
fatGrams
15.9
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/153"
)
meal = res.json()
{
  "id": 153,
  "userId": 37,
  "name": "Grilled Steak",
  "kind": "dinner",
  "calories": 360,
  "proteinGrams": 7.9,
  "carbsGrams": 46.3,
  "fatGrams": 15.9,
  "eatenAt": "2025-10-03T18:03:29.486Z",
  "createdAt": "2025-10-03T18:19:58.951Z"
}
Draftbit