example-data.com

meals / #59

userId
Alanna Kilback @alanna_kilback31
name
Smoothie Bowl
kind
breakfast
calories
430
proteinGrams
7.8
carbsGrams
13.1
fatGrams
38.5
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/59"
)
meal = res.json()
{
  "id": 59,
  "userId": 14,
  "name": "Smoothie Bowl",
  "kind": "breakfast",
  "calories": 430,
  "proteinGrams": 7.8,
  "carbsGrams": 13.1,
  "fatGrams": 38.5,
  "eatenAt": "2026-03-04T14:56:12.952Z",
  "createdAt": "2026-03-04T15:22:45.866Z"
}
Draftbit