example-data.com

meals / #136

userId
Kariane Schmitt @kariane.schmitt97
name
Turkey Sandwich
kind
lunch
calories
587
proteinGrams
35.9
carbsGrams
64.9
fatGrams
20.4
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/136"
)
meal = res.json()
{
  "id": 136,
  "userId": 32,
  "name": "Turkey Sandwich",
  "kind": "lunch",
  "calories": 587,
  "proteinGrams": 35.9,
  "carbsGrams": 64.9,
  "fatGrams": 20.4,
  "eatenAt": "2025-10-17T15:03:37.343Z",
  "createdAt": "2025-10-17T15:23:54.823Z"
}
Draftbit