example-data.com

meals / #213

userId
Samson Stroman @samson_stroman
name
Pancakes
kind
breakfast
calories
607
proteinGrams
58.1
carbsGrams
63.3
fatGrams
13.5
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/213"
)
meal = res.json()
{
  "id": 213,
  "userId": 52,
  "name": "Pancakes",
  "kind": "breakfast",
  "calories": 607,
  "proteinGrams": 58.1,
  "carbsGrams": 63.3,
  "fatGrams": 13.5,
  "eatenAt": "2025-09-21T05:42:15.057Z",
  "createdAt": "2025-09-21T06:10:46.687Z"
}
Draftbit