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.
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.
Start with these files — they give you everything you need to understand and access the dataset.
- 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
Monthly gold prices in USD since 1833. Historical data (1833–1959) is sourced from records compiled by Timothy Green; data from 1960 to the present is sourced from the World Bank Commodity Markets ("Pink Sheet").
Data
Preparation
You will need Python 3.11 or greater to run the script.
To update the data run the process script locally:
# Install requirements
pip install -r scripts/requirements.txt
python scripts/process.py
Notes from the Sources
- Currently data has been sourced using multiple datasets:
- Historical data (1833–1959): Timothy Green's Historical Gold Price Table, originally hosted at the National Mining Association. Note: as of 2026 this PDF requires a login to download; the update script handles this gracefully by skipping the PDF merge if the file is unavailable. Because only annual figures exist for this period, the monthly and monthly-processed files repeat the annual average price for every month of the year (i.e. all 12 months in 1890 carry the same value).
- Modern data (1960–present): World Bank Commodity Markets, which is regularly updated and provides comprehensive, up-to-date data on a wide range of commodity prices.
Automation
This dataset is automatically updated daily via GitHub Actions. View the dataset on DataHub: https://datahub.io/core/gold-prices
License
The maintainers have licensed this dataset under the Public Domain Dedication and License. The World Bank data is freely available with no obvious restrictions; the Timothy Green historical records similarly carry no known restrictions.