example-data.com

meals / #144

userId
Koby Pouros @koby_pouros60
name
Grilled Chicken Salad
kind
lunch
calories
471
proteinGrams
15.2
carbsGrams
56.9
fatGrams
20.3
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/144"
)
meal = res.json()
{
  "id": 144,
  "userId": 34,
  "name": "Grilled Chicken Salad",
  "kind": "lunch",
  "calories": 471,
  "proteinGrams": 15.2,
  "carbsGrams": 56.9,
  "fatGrams": 20.3,
  "eatenAt": "2025-06-08T17:31:14.371Z",
  "createdAt": "2025-06-08T17:43:35.701Z"
}
Draftbit