example-data.com

meals / #124

userId
Jensen Bashirian @jensen_bashirian
name
Sushi Roll
kind
lunch
calories
714
proteinGrams
24.7
carbsGrams
64.9
fatGrams
39.5
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/124"
)
meal = res.json()
{
  "id": 124,
  "userId": 29,
  "name": "Sushi Roll",
  "kind": "lunch",
  "calories": 714,
  "proteinGrams": 24.7,
  "carbsGrams": 64.9,
  "fatGrams": 39.5,
  "eatenAt": "2026-03-14T12:57:03.368Z",
  "createdAt": "2026-03-14T13:10:06.248Z"
}
Draftbit