API AccessAccess dataset files directly from scripts, code, or AI agents.
Browse dataset files
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/london-life-expectancy/
https://datahub.io/core/london-life-expectancy/_r/-/README.md
https://datahub.io/core/london-life-expectancy/_r/-/UPDATE_SCRIPT_MAINTENANCE_REPORT.md
https://datahub.io/core/london-life-expectancy/_r/-/data/female-life-expectancy.csv
https://datahub.io/core/london-life-expectancy/_r/-/data/life-expectancy-at-65.csv
https://datahub.io/core/london-life-expectancy/_r/-/data/male-life-expectancy.csv
https://datahub.io/core/london-life-expectancy/_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/london-life-expectancy/_r/-/datapackage.json
README.md— documentation
https://datahub.io/core/london-life-expectancy/_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 Previews
male-life-expectancy
Loading data...
Schema
| name | type | format |
|---|---|---|
| New code | string | default |
| Area code | any | default |
| Local Authority | string | default |
| Year | any | default |
| Value | any | default |
female-life-expectancy
Loading data...
Schema
| name | type | format |
|---|---|---|
| New code | string | default |
| Area code | any | default |
| Local Authority | string | default |
| Year | any | default |
| Value | any | default |
life-expectancy-at-65
Loading data...
Schema
| name | type | format | decimalChar | groupChar |
|---|---|---|---|---|
| Area code | string | default | ||
| Local Authority | string | default | ||
| 2000-2002 | number | default | . | |
| 2001-2003 | number | default | . | |
| 2002-2004 | number | default | . | |
| 2003-2005 | number | default | . | |
| 2004-2006 | number | default | . | |
| 2005-2007 | number | default | . | |
| 2006-2008 | number | default | . | |
| 2007-2009 | number | default | . | |
| 2008-2010 | number | default | . | |
| 2009-2011 | number | default | . | |
| 2010-2012 | number | default | . | |
| 2011-2013 | number | default | . | |
| 2012-2014 | number | default | . | |
| 2013-2015 | number | default | . | |
| 2014-2016 | number | default | . | |
| 2015-2017 | number | default | . | |
| 2016-2018 | number | default | . |
Data Files
| File | Description | Size | Last modified | Download |
|---|---|---|---|---|
male-life-expectancy | 56.9 kB | about 2 months ago | male-life-expectancy | |
female-life-expectancy | 56.9 kB | about 2 months ago | female-life-expectancy | |
life-expectancy-at-65 | 13.4 kB | about 2 months ago | life-expectancy-at-65 |
| Files | Size | Format | Created | Updated | License | Source |
|---|---|---|---|---|---|---|
| 3 | 127 kB | csv | about 2 months ago | UK Open Government Licence |
Update Script Maintenance Report
Date: 2026-03-04
- Re-ran
scripts/london-life-expectancy.pyand verified the existing pipeline still executes against the London Datastore XLS endpoint. - Added first GitHub Actions automation workflow at
.github/workflows/actions.ymlwith:- monthly schedule,
- manual
workflow_dispatch, contents: writepermissions,- commit-if-changed behavior for
data/anddatapackage.json.
- The current script source remains limited to 2016-2018 content from the legacy London Datastore file.
- Freshness beyond 2016-2018 requires migration to newer ONS successor datasets (latest coverage: 2022-2024), which use a different publication path than the legacy URL in the script.