example-data.com

meals / #201

userId
Green Kozey @green_kozey22
name
Veggie Burger
kind
lunch
calories
564
proteinGrams
28.2
carbsGrams
28.3
fatGrams
37.6
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/201"
)
meal = res.json()
{
  "id": 201,
  "userId": 49,
  "name": "Veggie Burger",
  "kind": "lunch",
  "calories": 564,
  "proteinGrams": 28.2,
  "carbsGrams": 28.3,
  "fatGrams": 37.6,
  "eatenAt": "2025-12-04T22:06:11.641Z",
  "createdAt": "2025-12-04T22:11:41.250Z"
}
Draftbit