Use environment variables
Configure the key as AURUM_API_KEY and inject it at runtime; do not put it in public code or chat templates.
AURUM DATA / API REFERENCE
Gold reserves, macro indicators and historical vintages. Use one API key across scripts, research tools and agents.
http://47.82.95.145/apiNew users receive a one-time total quota of 500 calls; paid plans provide monthly quotas; each account can have up to 3 active keys.
Use the catalog to find a series_id, then specify dates and as_of to fetch observations.
Read source, temporal quality and quality flags so results are verifiable and reproducible.
Examples read the key from the AURUM_API_KEY environment variable; no real credentials included.
01 / AUTHENTICATION
Data requests carry the key in an HTTP header. After signing in, create, reset or revoke keys under "My account → API settings".
Authorization: Bearer <YOUR_API_KEY>The 500-call quota for new users is a one-time total granted at signup and does not refill. Monthly (¥28, 1,200 calls/month) and annual (¥300, 1,500 calls/month) plans reset monthly on the subscription anniversary (Beijing time) and do not roll over. Creating or resetting keys does not increase it. Legacy daily-quota accounts keep their rules and reset at 00:00 Beijing time.
Each authenticated data request counts once, including requests that later return parameter or data errors. Viewing your account, managing keys, health checks and downloading docs do not consume quota.
| Response header | Meaning |
|---|---|
X-RateLimit-Limit | Current account call limit |
X-RateLimit-Remaining | Remaining calls after this request |
X-Quota-Period | lifetime total quota, monthly paid-plan quota, daily legacy daily quota |
X-RateLimit-Reset | Returned for daily and monthly quotas; Unix timestamp of the next reset |
Resetting invalidates the old key immediately; revocation permanently blocks that key. Other active keys and the account balance remain.
02 / DISCOVER
Filter available series by source, country or metric. The response includes series name, unit, frequency, coverage dates, source and temporal quality.
| Parameter | Type | Description |
|---|---|---|
source_id | string | Optional source ID, e.g. fred、imf |
country | string | Optional country or region code, as defined in catalog metadata |
metric | string | Optional metric identifier, as defined in catalog metadata |
format | string | json (default) or markdown |
curl --get "http://47.82.95.145/api/v1/series" \
--header "Authorization: Bearer $AURUM_API_KEY" \
--data-urlencode "source_id=fred"Main JSON response fields:count、data_note、series[]. Use series[].series_id to fetch observations.
03 / QUERY
Fetch observations visible at a research as_of for a given series. Results are sorted by observation date and retain vintage dates and quality flags.
| Parameter | Type | Description |
|---|---|---|
series_id Required | string | Series ID from the catalog, 2–32 characters |
as_of Required | datetime | Research as_of with timezone, e.g. 2020-01-01T00:00:00Z |
start / end | date | Optional observation date range, inclusive |
limit | integer | 1–10,000, default 1,000 |
offset | integer | Pagination offset, default 0 |
format | string | json (default) or markdown |
curl --get "http://47.82.95.145/api/v1/observations" \
--header "Authorization: Bearer $AURUM_API_KEY" \
--data-urlencode "series_id=CPIAUCSL" \
--data-urlencode "as_of=2020-01-01T00:00:00Z" \
--data-urlencode "start=2019-01-01" \
--data-urlencode "end=2019-12-31" \
--data-urlencode "limit=1000"Main JSON response fields:series_id、as_of、count、source、temporal_quality、backtest_note、observations[]. Values are strings to preserve precision.
FRED / ALFRED is filtered by historical vintage; ALFRED vintage dates are conservatively treated as available at 00:00 UTC the next day. IMF data is a current snapshot, so as_of must not be earlier than the capture time and cannot reconstruct earlier backtest points. Read the temporal quality notes in each response.
04 / BUILD WITH YOUR TOOLS
Agents that can make HTTP requests can call this REST API directly. They use the same personal key and share the account quota with scripts.
Configure the key as AURUM_API_KEY and inject it at runtime; do not put it in public code or chat templates.
First use /v1/series to confirm available series, then call /v1/observations。
Include source, observation date, as_of and quality notes in answers. For readable text, use format=markdown。
Query gold and macro data through the Aurum Data REST API.
Base URL: http://47.82.95.145/api
Auth header: Authorization: Bearer <AURUM_API_KEY environment variable>
1. Call GET /v1/series to find a real series_id.
2. Call GET /v1/observations with series_id, a timezone-aware as_of and a date range.
3. Add format=markdown for readable text.
4. Preserve source, observation date, temporal quality and backtest_note; do not treat a current snapshot as a historical vintage.
5. Each data request consumes account quota; on 429, stop retrying and check the balance.05 / RESPONSES
| Status | Description | Action |
|---|---|---|
401 | Missing key | Add the Bearer header |
403 | Invalid or revoked key | Check key status in API settings |
404 | Unknown series | Query the catalog first |
422 | Invalid parameters | Check dates, timezone and ranges |
429 | Quota exhausted | Stop retrying and check account quota |
5xx | Service temporarily unavailable | Retry later or check health |
GET http://47.82.95.145/api/healthz requires no key and does not consume quota.
{"status":"ok","database":"ok"}Error details are usually in the JSON detail field. Check the remaining-quota header; server records are authoritative.