example-data.com

meals / #216

userId
Samson Stroman @samson_stroman
name
Falafel Bowl
kind
lunch
calories
307
proteinGrams
27.1
carbsGrams
19.4
fatGrams
13.4
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/216"
)
meal = res.json()
{
  "id": 216,
  "userId": 52,
  "name": "Falafel Bowl",
  "kind": "lunch",
  "calories": 307,
  "proteinGrams": 27.1,
  "carbsGrams": 19.4,
  "fatGrams": 13.4,
  "eatenAt": "2026-03-08T16:52:39.843Z",
  "createdAt": "2026-03-08T16:54:00.849Z"
}
Draftbit