API AccessAccess dataset files directly from scripts, code, or AI agents.
Browse dataset files
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 Previews
monthly-processed
Schema
| name | type | format | description |
|---|---|---|---|
| Date | date | any | |
| Price | number | Gold price in USD per troy ounce |
annual
Schema
| name | type | format |
|---|---|---|
| Date | yearmonth | default |
| Price | number | default |
monthly
Schema
| name | type | format |
|---|---|---|
| Date | yearmonth | default |
| Price | number | default |
Data Files
| File | Description | Size | Last modified | Download |
|---|---|---|---|---|
monthly-processed | 44.9 kB | 4 days ago | monthly-processed | |
annual | 2.38 kB | 18 days ago | annual | |
monthly | 35.6 kB | 18 days ago | monthly |
| Files | Size | Format | Created | Updated | License | Source |
|---|---|---|---|---|---|---|
| 3 | 82.9 kB | csv | 4 days ago | Worldbank gold prices |
Monthly gold prices in USD since 1833 (sourced from the World Gold Council). The data is derived from historical records compiled by Timothy Green and supplemented by data provided by the World Bank.
Data
Preparation
You will need Python 3.6 or greater and dataflows library 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,
- This one is presented by Timothy Green Historical Gold Price Table the description is available historical-data-1883 and the data used up until 1960 year.
- The second dataset was obtained from the Worldbank-Commodity-Market, which is regularly updated and provides comprehensive, up-to-date data on a wide range of commodity prices. This dataset includes historical data dating back to 1960, extending up to the present day.
Automation
This dataset is automatically updates every month on the datahub.io site: http://datahub.io/core/gold-prices
License
The maintainers have licensed under the Public Domain Dedication and License. The source at the Bundesbank indicates no obvious restrictions on the data and the amount means that database rights are doubtful.