example-data.com

meals / #238

userId
Autumn Bartell @autumn.bartell95
name
Smoothie Bowl
kind
breakfast
calories
334
proteinGrams
24.4
carbsGrams
8.2
fatGrams
22.6
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/238"
)
meal = res.json()
{
  "id": 238,
  "userId": 58,
  "name": "Smoothie Bowl",
  "kind": "breakfast",
  "calories": 334,
  "proteinGrams": 24.4,
  "carbsGrams": 8.2,
  "fatGrams": 22.6,
  "eatenAt": "2025-05-22T14:36:45.697Z",
  "createdAt": "2025-05-22T14:37:23.994Z"
}
Draftbit