example-data.com

meals / #143

userId
Koby Pouros @koby_pouros60
name
Beef Tacos
kind
dinner
calories
333
proteinGrams
10.5
carbsGrams
35.5
fatGrams
16.5
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/143"
)
meal = res.json()
{
  "id": 143,
  "userId": 34,
  "name": "Beef Tacos",
  "kind": "dinner",
  "calories": 333,
  "proteinGrams": 10.5,
  "carbsGrams": 35.5,
  "fatGrams": 16.5,
  "eatenAt": "2025-10-09T05:20:56.660Z",
  "createdAt": "2025-10-09T05:45:47.235Z"
}
Draftbit