example-data.com

meals / #150

userId
Lenny Howe @lenny.howe
name
Shrimp and Veggies
kind
dinner
calories
545
proteinGrams
30.6
carbsGrams
30.3
fatGrams
33.5
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/150"
)
meal = res.json()
{
  "id": 150,
  "userId": 37,
  "name": "Shrimp and Veggies",
  "kind": "dinner",
  "calories": 545,
  "proteinGrams": 30.6,
  "carbsGrams": 30.3,
  "fatGrams": 33.5,
  "eatenAt": "2025-12-08T16:17:27.497Z",
  "createdAt": "2025-12-08T16:47:12.653Z"
}
Draftbit