example-data.com

meals / #239

userId
Autumn Bartell @autumn.bartell95
name
Overnight Oats
kind
breakfast
calories
369
proteinGrams
28.2
carbsGrams
57.3
fatGrams
3
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/239"
)
meal = res.json()
{
  "id": 239,
  "userId": 58,
  "name": "Overnight Oats",
  "kind": "breakfast",
  "calories": 369,
  "proteinGrams": 28.2,
  "carbsGrams": 57.3,
  "fatGrams": 3,
  "eatenAt": "2025-10-06T14:18:43.302Z",
  "createdAt": "2025-10-06T14:19:32.186Z"
}
Draftbit