example-data.com

meals / #105

userId
Celia D'Amore @celia_damore
name
Grilled Chicken Salad
kind
lunch
calories
277
proteinGrams
26.6
carbsGrams
11.8
fatGrams
13.7
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/105"
)
meal = res.json()
{
  "id": 105,
  "userId": 24,
  "name": "Grilled Chicken Salad",
  "kind": "lunch",
  "calories": 277,
  "proteinGrams": 26.6,
  "carbsGrams": 11.8,
  "fatGrams": 13.7,
  "eatenAt": "2025-09-07T00:33:21.946Z",
  "createdAt": "2025-09-07T00:42:24.528Z"
}
Draftbit