example-data.com

meals / #168

userId
Amely Daniel @amely_daniel
name
Sushi Roll
kind
lunch
calories
329
proteinGrams
35.9
carbsGrams
17.6
fatGrams
12.8
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/168"
)
meal = res.json()
{
  "id": 168,
  "userId": 41,
  "name": "Sushi Roll",
  "kind": "lunch",
  "calories": 329,
  "proteinGrams": 35.9,
  "carbsGrams": 17.6,
  "fatGrams": 12.8,
  "eatenAt": "2026-04-04T12:21:00.725Z",
  "createdAt": "2026-04-04T12:22:26.991Z"
}
Draftbit