example-data.com

meals / #81

userId
Kenya Abshire @kenya.abshire
name
Grilled Chicken Salad
kind
lunch
calories
273
proteinGrams
32.1
carbsGrams
26.1
fatGrams
4.5
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/81"
)
meal = res.json()
{
  "id": 81,
  "userId": 18,
  "name": "Grilled Chicken Salad",
  "kind": "lunch",
  "calories": 273,
  "proteinGrams": 32.1,
  "carbsGrams": 26.1,
  "fatGrams": 4.5,
  "eatenAt": "2025-11-12T11:30:45.177Z",
  "createdAt": "2025-11-12T11:36:05.802Z"
}
Draftbit