API Access
Access dataset files directly from scripts, code, or AI agents.
Browse dataset files
API Access
Access dataset files directly from scripts, code, or AI agents.
Dataset Files
Each file has a stable URL (r-link) that you can use directly in scripts, apps, or AI agents. These URLs are permanent and safe to hardcode.
/core/gold-prices/
https://datahub.io/core/gold-prices/_r/-/.gitignore
https://datahub.io/core/gold-prices/_r/-/FRESHNESS_CHECK.md
https://datahub.io/core/gold-prices/_r/-/README.md
https://datahub.io/core/gold-prices/_r/-/UPDATE_SCRIPT_MAINTENANCE_REPORT.md
https://datahub.io/core/gold-prices/_r/-/cache/annual.xls
https://datahub.io/core/gold-prices/_r/-/cache/historical_gold_prices.pdf
https://datahub.io/core/gold-prices/_r/-/cache/monthly.xls
https://datahub.io/core/gold-prices/_r/-/data/annual.csv
https://datahub.io/core/gold-prices/_r/-/data/monthly-processed.csv
https://datahub.io/core/gold-prices/_r/-/data/monthly.csv
https://datahub.io/core/gold-prices/_r/-/datapackage.json
Key Files
Start with these files — they give you everything you need to understand and access the dataset.
datapackage.json— metadata & schema
https://datahub.io/core/gold-prices/_r/-/datapackage.json
README.md— documentation
https://datahub.io/core/gold-prices/_r/-/README.md
Typical Usage
- 1. Fetch datapackage.json to inspect schema and resources
- 2. Download data resources listed in datapackage.json
- 3. Read README.md for full context
Data Views
Data Files
Explore with AImonthly-processed
| Field | Type | Description |
|---|---|---|
| Date | date | First day of the month in YYYY-MM-DD format (ISO 8601). |
| Price | number | Gold price in USD per troy ounce. |
Download
Download CSVAbout
- Monthly gold prices in USD per troy ounce from 1833 to present, with dates formatted as ISO 8601 full dates (YYYY-MM-DD). Rows from 1833 to 1959 carry the annual average price repeated for every month of the year, as no true monthly readings exist for that period.
- Last updated
- 8 April 2026
- Total rows
- ...
- Format
- CSV
- File size
- 42.6 kB
annual
| Field | Type | Description |
|---|---|---|
| Date | year | Year of the observation (YYYY). |
| Price | number | Annual average gold price in USD per troy ounce. |
Download
Download CSVAbout
- Annual average gold prices in USD per troy ounce from 1833 to present.
- Last updated
- 8 April 2026
- Total rows
- ...
- Format
- CSV
- File size
- 2.38 kB
monthly
| Field | Type | Description |
|---|---|---|
| Date | yearmonth | Year and month of the observation in YYYY-MM format. |
| Price | number | Gold price in USD per troy ounce. |
Download
Download CSVAbout
- Monthly gold prices in USD per troy ounce from 1833 to present, with dates in YYYY-MM format. Rows from 1833 to 1959 carry the annual average price repeated for every month of the year, as no true monthly readings exist for that period.
- Last updated
- 8 April 2026
- Total rows
- ...
- Format
- CSV
- File size
- 35.6 kB
About this dataset
Update Script Maintenance Report
Date: 2026-03-03
- Investigated local updater setup failure caused by strict dependency pinning on this runtime.
- Updated
scripts/requirements.txtto use compatible ranges:xlrd>=2.0.1pandas>=2.2.3,<3.1
- Updated
scripts/process.pyto gracefully skip PDF merge when upstream PDF endpoint serves non-PDF content. - Executed updater (
python scripts/process.py) and refreshed monthly/annual data from XLS sources while safely skipping blocked PDF merge. - This improves cross-environment install reliability and prevents hard failures from upstream PDF source changes.