example-data.com

meals / #190

userId
Lacy Gusikowski @lacy.gusikowski
name
Pancakes
kind
breakfast
calories
610
proteinGrams
6.8
carbsGrams
72.1
fatGrams
32.7
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/190"
)
meal = res.json()
{
  "id": 190,
  "userId": 47,
  "name": "Pancakes",
  "kind": "breakfast",
  "calories": 610,
  "proteinGrams": 6.8,
  "carbsGrams": 72.1,
  "fatGrams": 32.7,
  "eatenAt": "2025-09-07T03:50:59.329Z",
  "createdAt": "2025-09-07T04:06:25.192Z"
}
Draftbit