example-data.com

meals / #71

userId
Casimir Smitham @casimir_smitham35
name
Hard Boiled Eggs
kind
snack
calories
529
proteinGrams
46.2
carbsGrams
19.5
fatGrams
29.6
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/71"
)
meal = res.json()
{
  "id": 71,
  "userId": 16,
  "name": "Hard Boiled Eggs",
  "kind": "snack",
  "calories": 529,
  "proteinGrams": 46.2,
  "carbsGrams": 19.5,
  "fatGrams": 29.6,
  "eatenAt": "2025-05-24T11:54:57.747Z",
  "createdAt": "2025-05-24T12:07:24.738Z"
}
Draftbit