example-data.com

meals / #161

userId
Margaretta Barrows @margaretta_barrows41
name
Quinoa Bowl
kind
lunch
calories
226
proteinGrams
22.7
carbsGrams
7.4
fatGrams
11.7
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/161"
)
meal = res.json()
{
  "id": 161,
  "userId": 39,
  "name": "Quinoa Bowl",
  "kind": "lunch",
  "calories": 226,
  "proteinGrams": 22.7,
  "carbsGrams": 7.4,
  "fatGrams": 11.7,
  "eatenAt": "2025-07-26T02:37:56.593Z",
  "createdAt": "2025-07-26T02:59:21.337Z"
}
Draftbit