example-data.com

meals / #83

userId
Melba Collier @melba.collier
name
Granola Bowl
kind
breakfast
calories
377
proteinGrams
5.4
carbsGrams
70.7
fatGrams
8.1
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/83"
)
meal = res.json()
{
  "id": 83,
  "userId": 19,
  "name": "Granola Bowl",
  "kind": "breakfast",
  "calories": 377,
  "proteinGrams": 5.4,
  "carbsGrams": 70.7,
  "fatGrams": 8.1,
  "eatenAt": "2025-12-13T22:48:01.099Z",
  "createdAt": "2025-12-13T23:02:13.736Z"
}
Draftbit