example-data.com

meals / #186

userId
Della Labadie @della_labadie
name
Chicken Caesar Salad
kind
lunch
calories
323
proteinGrams
14.2
carbsGrams
52.8
fatGrams
6.1
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/186"
)
meal = res.json()
{
  "id": 186,
  "userId": 46,
  "name": "Chicken Caesar Salad",
  "kind": "lunch",
  "calories": 323,
  "proteinGrams": 14.2,
  "carbsGrams": 52.8,
  "fatGrams": 6.1,
  "eatenAt": "2026-02-17T16:39:49.127Z",
  "createdAt": "2026-02-17T16:49:03.950Z"
}
Draftbit