example-data.com

meals / #122

userId
Queen Lubowitz @queen.lubowitz76
name
Cottage Cheese
kind
snack
calories
605
proteinGrams
27.4
carbsGrams
51.4
fatGrams
32.2
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/122"
)
meal = res.json()
{
  "id": 122,
  "userId": 28,
  "name": "Cottage Cheese",
  "kind": "snack",
  "calories": 605,
  "proteinGrams": 27.4,
  "carbsGrams": 51.4,
  "fatGrams": 32.2,
  "eatenAt": "2026-03-24T15:05:00.304Z",
  "createdAt": "2026-03-24T15:14:19.387Z"
}
Draftbit