example-data.com

meals / #120

userId
Rosella Homenick @rosella.homenick
name
Grilled Chicken Salad
kind
lunch
calories
538
proteinGrams
11.3
carbsGrams
58.3
fatGrams
28.8
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/120"
)
meal = res.json()
{
  "id": 120,
  "userId": 27,
  "name": "Grilled Chicken Salad",
  "kind": "lunch",
  "calories": 538,
  "proteinGrams": 11.3,
  "carbsGrams": 58.3,
  "fatGrams": 28.8,
  "eatenAt": "2025-07-31T15:08:42.661Z",
  "createdAt": "2025-07-31T15:15:07.166Z"
}
Draftbit