example-data.com

meals / #104

userId
Celia D'Amore @celia_damore
name
Protein Bar
kind
snack
calories
619
proteinGrams
6.3
carbsGrams
72.5
fatGrams
33.7
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/104"
)
meal = res.json()
{
  "id": 104,
  "userId": 24,
  "name": "Protein Bar",
  "kind": "snack",
  "calories": 619,
  "proteinGrams": 6.3,
  "carbsGrams": 72.5,
  "fatGrams": 33.7,
  "eatenAt": "2025-06-07T06:12:18.522Z",
  "createdAt": "2025-06-07T06:22:13.202Z"
}
Draftbit