example-data.com

meals / #5

userId
Amina King @amina_king41
name
Avocado Toast
kind
breakfast
calories
805
proteinGrams
59.9
carbsGrams
54.8
fatGrams
38.5
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/5"
)
meal = res.json()
{
  "id": 5,
  "userId": 2,
  "name": "Avocado Toast",
  "kind": "breakfast",
  "calories": 805,
  "proteinGrams": 59.9,
  "carbsGrams": 54.8,
  "fatGrams": 38.5,
  "eatenAt": "2026-01-10T06:38:10.401Z",
  "createdAt": "2026-01-10T06:54:07.309Z"
}
Draftbit