example-data.com

meals / #146

userId
Dwight Dicki-Medhurst @dwight.dicki-medhurst69
name
Egg White Omelette
kind
breakfast
calories
572
proteinGrams
54.8
carbsGrams
76.8
fatGrams
5.1
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/146"
)
meal = res.json()
{
  "id": 146,
  "userId": 35,
  "name": "Egg White Omelette",
  "kind": "breakfast",
  "calories": 572,
  "proteinGrams": 54.8,
  "carbsGrams": 76.8,
  "fatGrams": 5.1,
  "eatenAt": "2025-12-01T23:54:35.921Z",
  "createdAt": "2025-12-02T00:04:06.361Z"
}
Draftbit