example-data.com

meals / #84

userId
Melba Collier @melba.collier
name
Grilled Steak
kind
dinner
calories
607
proteinGrams
10.4
carbsGrams
54.1
fatGrams
38.8
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/84"
)
meal = res.json()
{
  "id": 84,
  "userId": 19,
  "name": "Grilled Steak",
  "kind": "dinner",
  "calories": 607,
  "proteinGrams": 10.4,
  "carbsGrams": 54.1,
  "fatGrams": 38.8,
  "eatenAt": "2025-11-14T21:08:32.773Z",
  "createdAt": "2025-11-14T21:10:52.750Z"
}
Draftbit