example-data.com

meals / #50

userId
Mara Johnson @mara.johnson17
name
Rice Cakes
kind
snack
calories
394
proteinGrams
12.4
carbsGrams
55.9
fatGrams
13.4
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/50"
)
meal = res.json()
{
  "id": 50,
  "userId": 12,
  "name": "Rice Cakes",
  "kind": "snack",
  "calories": 394,
  "proteinGrams": 12.4,
  "carbsGrams": 55.9,
  "fatGrams": 13.4,
  "eatenAt": "2026-03-22T11:08:44.664Z",
  "createdAt": "2026-03-22T11:19:30.787Z"
}
Draftbit