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.
/luccasmmg/crime-uk/
https://datahub.io/luccasmmg/crime-uk/_r/-/.gitignore
https://datahub.io/luccasmmg/crime-uk/_r/-/README.md
https://datahub.io/luccasmmg/crime-uk/_r/-/UPDATE_SCRIPT_MAINTENANCE_REPORT.md
https://datahub.io/luccasmmg/crime-uk/_r/-/data/forces.csv
https://datahub.io/luccasmmg/crime-uk/_r/-/data/forces.json
https://datahub.io/luccasmmg/crime-uk/_r/-/datapackage.json
https://datahub.io/luccasmmg/crime-uk/_r/-/package-lock.json
https://datahub.io/luccasmmg/crime-uk/_r/-/package.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/luccasmmg/crime-uk/_r/-/datapackage.json
README.md— documentation
https://datahub.io/luccasmmg/crime-uk/_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 AIforces
| Field | Type |
|---|---|
| id | string |
| label | string |
Download
Download CSVAbout
- Last updated
- 6 March 2026
- Total rows
- ...
- Format
- CSV
- File size
- 1.56 kB
About this dataset
Update Script Maintenance Report
Date: 2026-03-03
- Modernized scraper compatibility in
scripts/scrape.js:- switched source page to HTTPS,
- replaced deprecated
path.existsSyncwithfs.existsSync, - migrated OSGB36 conversion from unmaintained
proj4jsusage toproj4, - added missing CLI command wiring in npm scripts.
- Reworked force metadata collection to use live API endpoint
https://data.police.uk/api/forces.npm run scrapelinksnow stores force metadata incache/linklist.json.npm run scrapeforcesnow writesdata/forces.csvanddata/forces.jsonfrom API results.
- Added
package.jsonand lockfile for reproducible local/CI runs. - Added first GitHub Actions automation workflow at
.github/workflows/actions.ymlto refresh metadata on schedule. - Updated
scripts/README.mdto document runnable commands.