example-data.com

meals / #44

userId
Leonel Hamill @leonel_hamill33
name
Hummus and Veggies
kind
snack
calories
263
proteinGrams
35.5
carbsGrams
14
fatGrams
7.2
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/44"
)
meal = res.json()
{
  "id": 44,
  "userId": 11,
  "name": "Hummus and Veggies",
  "kind": "snack",
  "calories": 263,
  "proteinGrams": 35.5,
  "carbsGrams": 14,
  "fatGrams": 7.2,
  "eatenAt": "2026-04-03T23:47:20.263Z",
  "createdAt": "2026-04-03T23:57:14.734Z"
}
Draftbit