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/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 Files
Explore with AImale-life-expectancy
| Field | Type | Format |
|---|---|---|
| New code | string | default |
| Area code | any | default |
| Local Authority | string | default |
| Year | any | default |
| Value | any | default |
Download
Download CSVAbout
- Last updated
- 5 March 2026
- Total rows
- ...
- Format
- CSV
- File size
- 56.9 kB
- License
- UK Open Government Licence
female-life-expectancy
| Field | Type | Format |
|---|---|---|
| New code | string | default |
| Area code | any | default |
| Local Authority | string | default |
| Year | any | default |
| Value | any | default |
Download
Download CSVAbout
- Last updated
- 5 March 2026
- Total rows
- ...
- Format
- CSV
- File size
- 56.9 kB
- License
- UK Open Government Licence
life-expectancy-at-65
| Field | 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 | . |
Download
Download CSVAbout
- Last updated
- 5 March 2026
- Total rows
- ...
- Format
- CSV
- File size
- 13.4 kB
- License
- UK Open Government Licence
About this dataset
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.