example-data.com

meals / #45

userId
Leonel Hamill @leonel_hamill33
name
Sushi Roll
kind
lunch
calories
603
proteinGrams
51.6
carbsGrams
35.7
fatGrams
28.2
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/45"
)
meal = res.json()
{
  "id": 45,
  "userId": 11,
  "name": "Sushi Roll",
  "kind": "lunch",
  "calories": 603,
  "proteinGrams": 51.6,
  "carbsGrams": 35.7,
  "fatGrams": 28.2,
  "eatenAt": "2025-06-22T08:42:11.646Z",
  "createdAt": "2025-06-22T08:44:11.657Z"
}
Draftbit