example-data.com

meals / #202

userId
Green Kozey @green_kozey22
name
Overnight Oats
kind
breakfast
calories
358
proteinGrams
9
carbsGrams
28.3
fatGrams
23.2
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/202"
)
meal = res.json()
{
  "id": 202,
  "userId": 49,
  "name": "Overnight Oats",
  "kind": "breakfast",
  "calories": 358,
  "proteinGrams": 9,
  "carbsGrams": 28.3,
  "fatGrams": 23.2,
  "eatenAt": "2025-09-13T08:08:17.304Z",
  "createdAt": "2025-09-13T08:33:11.565Z"
}
Draftbit