example-data.com

meals / #218

userId
Darian Schaden @darian_schaden36
name
Quinoa Bowl
kind
lunch
calories
433
proteinGrams
20.6
carbsGrams
13.6
fatGrams
32.9
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/218"
)
meal = res.json()
{
  "id": 218,
  "userId": 53,
  "name": "Quinoa Bowl",
  "kind": "lunch",
  "calories": 433,
  "proteinGrams": 20.6,
  "carbsGrams": 13.6,
  "fatGrams": 32.9,
  "eatenAt": "2025-10-13T21:39:58.373Z",
  "createdAt": "2025-10-13T21:53:14.012Z"
}
Draftbit