Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 2.97 KB

README.md

File metadata and controls

22 lines (14 loc) · 2.97 KB

UK Government organisations

Combining lists of UK Government organisations to make useful CSV files. Automatically updates on the 1st of the month.

Sources

Data on UK Government organisations is published in a couple of places under the Open Government Licence:

  • gov.uk/government/organisations - this is an HTML page listing 607 departments, agencies and public bodies. It isn't clear how up-to-date this source is. It has a note if the organisation has a separate website (separate to gov.uk/government/organisations) although these separate website URLs can only be found by following the links and extracting the link from the subsequent webpage. These "real" URLs are saved in gov.uk_government_organisations-replacement-urls.csv.
  • gov.uk/api/organisations - this is a paged JSON endpoint that provides more data on 1207 organisations including some which are no longer operating. It provides an ID that seems to match GB-GOR as well as useful metadata about update/closed dates.

It isn't clear if these use the same source or are independently maintained.

Output

The get.pl perl script compiles the data from the two sources (HTML/JSON) into several output files. The gov.uk_government_organisations-replacement-urls.csv file can be manually updated to add replacement URLs if gov.uk/government/organisations doesn't know them. The output files are: