example-data.com

meals / #192

userId
Lacy Gusikowski @lacy.gusikowski
name
Chicken Caesar Salad
kind
lunch
calories
678
proteinGrams
24.1
carbsGrams
65.1
fatGrams
35.7
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/192"
)
meal = res.json()
{
  "id": 192,
  "userId": 47,
  "name": "Chicken Caesar Salad",
  "kind": "lunch",
  "calories": 678,
  "proteinGrams": 24.1,
  "carbsGrams": 65.1,
  "fatGrams": 35.7,
  "eatenAt": "2025-07-22T21:06:16.724Z",
  "createdAt": "2025-07-22T21:13:32.274Z"
}
Draftbit