example-data.com

meals / #178

userId
Everett Yundt @everett_yundt11
name
String Cheese
kind
snack
calories
608
proteinGrams
41.3
carbsGrams
71
fatGrams
17.6
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/178"
)
meal = res.json()
{
  "id": 178,
  "userId": 44,
  "name": "String Cheese",
  "kind": "snack",
  "calories": 608,
  "proteinGrams": 41.3,
  "carbsGrams": 71,
  "fatGrams": 17.6,
  "eatenAt": "2026-01-14T21:48:10.926Z",
  "createdAt": "2026-01-14T22:15:59.057Z"
}
Draftbit