example-data.com

meals / #115

userId
Melvina Reilly @melvina_reilly83
name
Hard Boiled Eggs
kind
snack
calories
659
proteinGrams
41.6
carbsGrams
74.7
fatGrams
21.5
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/115"
)
meal = res.json()
{
  "id": 115,
  "userId": 26,
  "name": "Hard Boiled Eggs",
  "kind": "snack",
  "calories": 659,
  "proteinGrams": 41.6,
  "carbsGrams": 74.7,
  "fatGrams": 21.5,
  "eatenAt": "2025-08-17T08:55:04.307Z",
  "createdAt": "2025-08-17T09:00:50.639Z"
}
Draftbit