example-data.com

meals / #183

userId
Myrtie Daniel @myrtie_daniel33
name
Hummus and Veggies
kind
snack
calories
256
proteinGrams
17.4
carbsGrams
16.5
fatGrams
13.4
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/183"
)
meal = res.json()
{
  "id": 183,
  "userId": 45,
  "name": "Hummus and Veggies",
  "kind": "snack",
  "calories": 256,
  "proteinGrams": 17.4,
  "carbsGrams": 16.5,
  "fatGrams": 13.4,
  "eatenAt": "2025-11-09T18:11:26.678Z",
  "createdAt": "2025-11-09T18:35:25.807Z"
}
Draftbit