example-data.com

meals / #182

userId
Myrtie Daniel @myrtie_daniel33
name
Hummus and Veggies
kind
snack
calories
583
proteinGrams
54.9
carbsGrams
47.9
fatGrams
19.1
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/182"
)
meal = res.json()
{
  "id": 182,
  "userId": 45,
  "name": "Hummus and Veggies",
  "kind": "snack",
  "calories": 583,
  "proteinGrams": 54.9,
  "carbsGrams": 47.9,
  "fatGrams": 19.1,
  "eatenAt": "2025-06-01T08:47:45.601Z",
  "createdAt": "2025-06-01T09:04:29.666Z"
}
Draftbit