example-data.com

meals / #17

userId
Cayla Farrell @cayla_farrell
name
Shrimp and Veggies
kind
dinner
calories
432
proteinGrams
50.7
carbsGrams
9.3
fatGrams
21.3
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/17"
)
meal = res.json()
{
  "id": 17,
  "userId": 4,
  "name": "Shrimp and Veggies",
  "kind": "dinner",
  "calories": 432,
  "proteinGrams": 50.7,
  "carbsGrams": 9.3,
  "fatGrams": 21.3,
  "eatenAt": "2026-05-05T13:17:50.027Z",
  "createdAt": "2026-05-05T13:27:11.960Z"
}
Draftbit