example-data.com

meals / #51

userId
Mara Johnson @mara.johnson17
name
Beef Tacos
kind
dinner
calories
680
proteinGrams
53
carbsGrams
45.9
fatGrams
31.6
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/51"
)
meal = res.json()
{
  "id": 51,
  "userId": 12,
  "name": "Beef Tacos",
  "kind": "dinner",
  "calories": 680,
  "proteinGrams": 53,
  "carbsGrams": 45.9,
  "fatGrams": 31.6,
  "eatenAt": "2026-02-03T11:05:32.164Z",
  "createdAt": "2026-02-03T11:18:32.043Z"
}
Draftbit