example-data.com

meals / #66

userId
Casimir Smitham @casimir_smitham35
name
Smoothie Bowl
kind
breakfast
calories
315
proteinGrams
48.2
carbsGrams
11.3
fatGrams
8.5
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/66"
)
meal = res.json()
{
  "id": 66,
  "userId": 16,
  "name": "Smoothie Bowl",
  "kind": "breakfast",
  "calories": 315,
  "proteinGrams": 48.2,
  "carbsGrams": 11.3,
  "fatGrams": 8.5,
  "eatenAt": "2025-06-14T04:38:30.876Z",
  "createdAt": "2025-06-14T04:50:32.603Z"
}
Draftbit