example-data.com

meals / #33

userId
Alvena Emmerich @alvena_emmerich52
name
Almonds
kind
snack
calories
596
proteinGrams
12
carbsGrams
56.3
fatGrams
35.9
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/33"
)
meal = res.json()
{
  "id": 33,
  "userId": 8,
  "name": "Almonds",
  "kind": "snack",
  "calories": 596,
  "proteinGrams": 12,
  "carbsGrams": 56.3,
  "fatGrams": 35.9,
  "eatenAt": "2026-01-30T17:50:41.480Z",
  "createdAt": "2026-01-30T17:58:04.526Z"
}
Draftbit