example-data.com

meals / #185

userId
Myrtie Daniel @myrtie_daniel33
name
Lentil Soup
kind
lunch
calories
706
proteinGrams
48.1
carbsGrams
76.9
fatGrams
22.9
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/185"
)
meal = res.json()
{
  "id": 185,
  "userId": 45,
  "name": "Lentil Soup",
  "kind": "lunch",
  "calories": 706,
  "proteinGrams": 48.1,
  "carbsGrams": 76.9,
  "fatGrams": 22.9,
  "eatenAt": "2025-09-28T23:22:46.382Z",
  "createdAt": "2025-09-28T23:40:45.602Z"
}
Draftbit