Skip to main content

UK Public Sector Code by Organisation

An independent project

Organisation mapping

A mapping of GitHub organisations to UK public sector organisations. Each entry has a type field: gov_uk entries reference the GOV.UK Organisations API. english_council entries reference the planning.data.gov.uk local authority dataset. All entries include a Wikidata ID.

The URLs below are permanent - safe to use in automated pipelines.

Licence: CC BY 4.0

Format

JSON

Schema

org-mapping.schema.json

Example
{
  "last_updated": "2026-03-30",
  "organisations": [
    {
      "type": "gov_uk",
      "govuk_slug": "home-office",
      "wikidata_id": "Q763388",
      "site_slug": "home-office",
      "site_url": "https://publicsectorcodebyorg.co.uk/org/home-office",
      "github_orgs": ["UKHomeOffice", "UKHomeOfficeForms", "HO-CTO"]
    },
    {
      "type": "english_council",
      "england_planning_data_reference": "COV",
      "wikidata_id": "Q5179058",
      "site_slug": "coventry-city-council",
      "site_url": "https://publicsectorcodebyorg.co.uk/org/coventry-city-council",
      "github_orgs": ["coventry-city-council"]
    },
    {
      "type": "other",
      "wikidata_id": "Q28530250",
      "site_slug": "city-of-edinburgh-council",
      "site_url": "https://publicsectorcodebyorg.co.uk/org/city-of-edinburgh-council",
      "github_orgs": ["edinburghcouncil"]
    }
  ]
}
Fields
FieldDescription
last_updatedISO 8601 date the file was last updated
typegov_uk, english_council, or other
govuk_slugGOV.UK organisation slug (gov_uk entries only)
england_planning_data_referenceplanning.data.gov.uk local authority reference code (english_council entries only)
wikidata_idWikidata entity ID (e.g. Q5995) — present for all entries
site_slugURL slug for the organisation's page on this site
site_urlURL of the organisation's page on this site
github_orgsArray of GitHub organisation names belonging to this organisation

CSV

One row per GitHub organisation.

Example
github_org,org_type,govuk_slug,england_planning_data_reference,wikidata_id,site_slug,site_url
UKHomeOffice,gov_uk,home-office,,Q763388,home-office,https://publicsectorcodebyorg.co.uk/org/home-office
UKHomeOfficeForms,gov_uk,home-office,,Q763388,home-office,https://publicsectorcodebyorg.co.uk/org/home-office
HO-CTO,gov_uk,home-office,,Q763388,home-office,https://publicsectorcodebyorg.co.uk/org/home-office
coventry-city-council,english_council,,COV,Q5179058,coventry-city-council,https://publicsectorcodebyorg.co.uk/org/coventry-city-council
edinburghcouncil,other,,,Q28530250,city-of-edinburgh-council,https://publicsectorcodebyorg.co.uk/org/city-of-edinburgh-council
Columns
ColumnDescription
github_orgGitHub organisation name. Empty if the organisation has no mapped GitHub presence.
org_typegov_uk, english_council, or other
govuk_slugGOV.UK organisation slug (gov_uk entries only)
england_planning_data_referenceplanning.data.gov.uk local authority reference code (english_council entries only)
wikidata_idWikidata entity ID (e.g. Q5995)
site_slugURL slug for the organisation's page on this site
site_urlURL of the organisation's page on this site

Related data sources

Data sources used to build and enrich this site. Many fields in the mapping are keys into these datasets.

  • UK X-Gov Open Source Repo Scraper

    GitHub repository data for UK public sector organisations, maintained by the UK cross-government software community.

    Use the github_orgs field to filter repos by owner. Each entry in the scraper JSON has an owner field matching the GitHub organisation name.

  • GOV.UK Organisations API

    Official metadata for central government organisations — names, formats, status, parent/child relationships. Open Government Licence.

    Use govuk_slug to query a specific organisation: GET https://www.gov.uk/api/organisations/{govuk_slug}. Or fetch the full list paginated from https://www.gov.uk/api/organisations.

  • planning.data.gov.uk — Local authority dataset

    Official metadata for English local authorities — names, types, ONS codes, websites. Open Government Licence.

    Use england_planning_data_reference to query a specific authority: GET https://www.planning.data.gov.uk/entity.json?dataset=local-authority&reference={england_planning_data_reference}.

  • Wikidata

    Structured data about organisations including names, websites, and relationships. CC0.

    Use wikidata_id to look up an entity directly at https://www.wikidata.org/entity/{wikidata_id}, or query via SPARQL at https://query.wikidata.org/sparql using BIND(wd:{wikidata_id} AS ?item).

  • Civil Service Statistics

    Annual FTE data for civil service departments and agencies, published by the Cabinet Office. Used to populate Total FTE and Digital & data FTE figures for central government organisations on this site.

    Matched to organisations via GOV.UK organisation titles. Data from Table 8A (FTE by profession and department).

  • LGA Quarterly Workforce Survey (QPSES)

    Quarterly headcount and FTE data for English and Welsh local authorities, published by the Local Government Association.

    Used to populate the Total FTE figures shown for English councils on this site. Matched to councils via ONS geography codes.

Contributing

The mapping is maintained manually. If you spot an error or want to add an organisation, open an issue or pull request on GitHub.