example-data.com

meals / #4

userId
Amina King @amina_king41
name
Oatmeal with Berries
kind
breakfast
calories
294
proteinGrams
10
carbsGrams
13.2
fatGrams
22.3
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/4"
)
meal = res.json()
{
  "id": 4,
  "userId": 2,
  "name": "Oatmeal with Berries",
  "kind": "breakfast",
  "calories": 294,
  "proteinGrams": 10,
  "carbsGrams": 13.2,
  "fatGrams": 22.3,
  "eatenAt": "2026-05-18T01:02:20.184Z",
  "createdAt": "2026-05-18T01:23:48.603Z"
}
Draftbit