example-data.com

meals / #24

userId
Brycen Bayer @brycen_bayer60
name
Quinoa Bowl
kind
lunch
calories
480
proteinGrams
8.5
carbsGrams
44.2
fatGrams
29.9
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/24"
)
meal = res.json()
{
  "id": 24,
  "userId": 6,
  "name": "Quinoa Bowl",
  "kind": "lunch",
  "calories": 480,
  "proteinGrams": 8.5,
  "carbsGrams": 44.2,
  "fatGrams": 29.9,
  "eatenAt": "2025-06-18T22:27:06.243Z",
  "createdAt": "2025-06-18T22:46:21.528Z"
}
Draftbit