example-data.com

meals / #152

userId
Lenny Howe @lenny.howe
name
Brown Rice and Veggies
kind
lunch
calories
362
proteinGrams
9.7
carbsGrams
53.7
fatGrams
12
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/152"
)
meal = res.json()
{
  "id": 152,
  "userId": 37,
  "name": "Brown Rice and Veggies",
  "kind": "lunch",
  "calories": 362,
  "proteinGrams": 9.7,
  "carbsGrams": 53.7,
  "fatGrams": 12,
  "eatenAt": "2026-04-23T18:52:22.989Z",
  "createdAt": "2026-04-23T19:12:56.223Z"
}
Draftbit