example-data.com

meals / #166

userId
Gwendolyn Wyman @gwendolyn.wyman87
name
Avocado Toast
kind
breakfast
calories
638
proteinGrams
37.4
carbsGrams
60.5
fatGrams
27.4
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/166"
)
meal = res.json()
{
  "id": 166,
  "userId": 40,
  "name": "Avocado Toast",
  "kind": "breakfast",
  "calories": 638,
  "proteinGrams": 37.4,
  "carbsGrams": 60.5,
  "fatGrams": 27.4,
  "eatenAt": "2025-06-09T08:41:53.918Z",
  "createdAt": "2025-06-09T09:06:55.260Z"
}
Draftbit