example-data.com

meals / #151

userId
Lenny Howe @lenny.howe
name
Granola Bowl
kind
breakfast
calories
795
proteinGrams
54.2
carbsGrams
64.4
fatGrams
35.6
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/151"
)
meal = res.json()
{
  "id": 151,
  "userId": 37,
  "name": "Granola Bowl",
  "kind": "breakfast",
  "calories": 795,
  "proteinGrams": 54.2,
  "carbsGrams": 64.4,
  "fatGrams": 35.6,
  "eatenAt": "2025-08-01T08:09:28.638Z",
  "createdAt": "2025-08-01T08:14:04.868Z"
}
Draftbit