example-data.com

meals / #15

userId
Cayla Farrell @cayla_farrell
name
Mediterranean Bowl
kind
dinner
calories
628
proteinGrams
25
carbsGrams
51.9
fatGrams
35.6
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/15"
)
meal = res.json()
{
  "id": 15,
  "userId": 4,
  "name": "Mediterranean Bowl",
  "kind": "dinner",
  "calories": 628,
  "proteinGrams": 25,
  "carbsGrams": 51.9,
  "fatGrams": 35.6,
  "eatenAt": "2025-07-04T12:37:06.892Z",
  "createdAt": "2025-07-04T12:39:00.373Z"
}
Draftbit