XauCloud Data API
A read-only REST API over HTTPS returning JSON. Base URL:
Authentication
Send your key as a bearer token. Keys look like xcd_…, are shown once when created, and are stored only as a SHA-256 hash. Create and revoke keys in the console.
curl "https://data.xaucloud.io/api/data/v1/datasets/calendar?limit=5" \ -H "Authorization: Bearer $XAUCLOUD_DATA_KEY"
import os, requests
r = requests.get(
"https://data.xaucloud.io/api/data/v1/datasets/calendar?limit=5",
headers={"Authorization": f"Bearer {os.environ['XAUCLOUD_DATA_KEY']}"},
timeout=10,
)
r.raise_for_status()
for row in r.json()["rows"]:
print(row)const res = await fetch("https://data.xaucloud.io/api/data/v1/datasets/calendar?limit=5", {
headers: { Authorization: `Bearer ${process.env.XAUCLOUD_DATA_KEY}` },
});
if (!res.ok) throw new Error(`XauCloud Data ${res.status}`);
const { rows } = await res.json();
console.log(rows);Errors
Errors return JSON with an error code and often a human-readable detail.
| HTTP | error | Meaning |
|---|---|---|
| 400 | INVALID_DATASET_OR_QUERY | Unknown dataset or bad query parameter. |
| 401 | INVALID_API_KEY / INVALID_OR_EXPIRED_API_KEY | Missing, malformed, revoked or expired key. |
| 403 | DATASET_NOT_AVAILABLE | Dataset is listed but not on sale (pending redistribution rights). |
| 429 | QUOTA_EXCEEDED_OR_KEY_CHANGED | Minute, day or month quota reached for this key. |
| 503 | NO_CURRENT_SOURCE_RECORDS | No fresh records right now. The body still says why; nothing stale is passed off as current. |
Rate limits
Quotas apply per key in fixed UTC windows (minute, day, calendar month). Every successful response carries X-RateLimit-Plan; check remaining quota with GET /usage.
| Plan | Per minute | Per day | Per month |
|---|---|---|---|
| sandbox | 10 | 250 | 5,000 |
| developer | 60 | 5,000 | 100,000 |
| professional | 300 | 30,000 | 1,000,000 |
| business | 1,000 | 100,000 | 3,000,000 |
Get a dataset
Returns the newest rows (1–100, default 25). id is one of: signals, forecasts, event_reactions, release_history, news_reactions, employment, inflation, treasury, positioning, releases, calendar. See datasets for fields.
{
"dataset": "treasury",
"as_of": "2026-11-25T10:00:00.000Z",
"frequency": "business daily",
"source_status": "CURRENT_COLLECTION",
"sources": [
{
"id": "treasury-nominal",
"last_success_at": "…",
"status": "CURRENT_COLLECTION"
}
],
"rows": [
"…"
],
"qualification": "…"
}Catalog
No key needed. Lists every dataset with its rights class and whether it is available.
Usage
Current plan, limits and this key's usage in the active minute, day and month windows.
Freshness fields
source_status is CURRENT_COLLECTION, PARTIAL or STALE_OR_UNAVAILABLE. as_of is when we answered; each source reports its own last_success_at. Collection freshness is not publication freshness: monthly data stays monthly. Sandbox signals carry delayed_hours: 24.
MCP
AI agents can use the read-only public MCP server at https://xaucloud.io/mcp (Streamable HTTP, no auth). See MCP setup.