example-data.com

meals / #75

userId
Gavin Lowe @gavin_lowe
name
Oatmeal with Berries
kind
breakfast
calories
598
proteinGrams
47.3
carbsGrams
57.9
fatGrams
19.7
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/75"
)
meal = res.json()
{
  "id": 75,
  "userId": 17,
  "name": "Oatmeal with Berries",
  "kind": "breakfast",
  "calories": 598,
  "proteinGrams": 47.3,
  "carbsGrams": 57.9,
  "fatGrams": 19.7,
  "eatenAt": "2026-05-20T03:24:52.521Z",
  "createdAt": "2026-05-20T03:25:32.814Z"
}
Draftbit