Updated

Update Script Maintenance Report

UK Crime data. This is consolidation of, pointers to, and scripts for, data from various sources, primarily the UK Government site at http://police.uk/data. See data/forces.csv and a GDocs ve...

API Access

Access dataset files directly from scripts, code, or AI agents.

Browse dataset files
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/crime-uk/
https://datahub.io/core/crime-uk/_r/-/.gitignore
https://datahub.io/core/crime-uk/_r/-/README.md
https://datahub.io/core/crime-uk/_r/-/UPDATE_SCRIPT_MAINTENANCE_REPORT.md
https://datahub.io/core/crime-uk/_r/-/data/forces.csv
https://datahub.io/core/crime-uk/_r/-/data/forces.json
https://datahub.io/core/crime-uk/_r/-/datapackage.json
https://datahub.io/core/crime-uk/_r/-/package-lock.json
https://datahub.io/core/crime-uk/_r/-/package.json
Key Files

Start with these files — they give you everything you need to understand and access the dataset.

datapackage.jsonmetadata & schema
https://datahub.io/core/crime-uk/_r/-/datapackage.json
README.mddocumentation
https://datahub.io/core/crime-uk/_r/-/README.md
Typical Usage
  1. 1. Fetch datapackage.json to inspect schema and resources
  2. 2. Download data resources listed in datapackage.json
  3. 3. Read README.md for full context

Data Previews

forces

Loading data...

Schema

nametype
idstring
labelstring

Data Files

FileDescriptionSizeLast modifiedDownload
forces
1.56 kBabout 2 months ago
forces
FilesSizeFormatCreatedUpdatedLicenseSource
11.56 kBcsvabout 2 months agoOpen Data Commons Public Domain Dedication and License v1.0Police.uk data

Update Script Maintenance Report

Date: 2026-03-03

  • Modernized scraper compatibility in scripts/scrape.js:
    • switched source page to HTTPS,
    • replaced deprecated path.existsSync with fs.existsSync,
    • migrated OSGB36 conversion from unmaintained proj4js usage to proj4,
    • 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 scrapelinks now stores force metadata in cache/linklist.json.
    • npm run scrapeforces now writes data/forces.csv and data/forces.json from API results.
  • Added package.json and lockfile for reproducible local/CI runs.
  • Added first GitHub Actions automation workflow at .github/workflows/actions.yml to refresh metadata on schedule.
  • Updated scripts/README.md to document runnable commands.