publicbodies
A database of public bodies (or organizations): Examples are: Government Ministries or Departments State-run Health organizations Police and fire departments Visit the site: https://publicbod...
Report an issue- Downloads
- 26,960
- Last updated
- Data files
- 11
- Total size
- 11 MB
- Format
- csv
- License
- ODC-PDDL-1.0
Public Bodies
A database of public bodies (or organizations):
Government-run or controlled organizations or entities which may or may not
have distinct corporate existence
Examples are:
- Government Ministries or Departments
- State-run Health organizations
- Police and fire departments
Visit the site: https://publicbodies.org/
Data
Data is stored in CSVs partitioned by country or region (e.g. EU) in the data folder. Files are named by two-letter ISO code.
Contribute data
Please just add a CSV file and submit a pull request or open an issue.
The set of fields required in the CSV file can be seen in the field list on:
public-body-schema.json. You can also check out
the existing data in data/ for hints. To learn more about Data
Packages, visit https://specs.frictionlessdata.io/.
If you can, developing a bot to automatically and periodically collect the data is even better.
For developers of the website
The website is a Jekyll site. To get it running locally:
-
Install Docker.
-
Get the code
git clone https://github.com/okfn/publicbodies cd publicbodies -
Run Jekyll
cd website export JEKYLL_VERSION=4.2.0 docker run --rm --volume="$PWD:/srv/jekyll" -it jekyll/minimal:$JEKYLL_VERSION jekyll build --baseurl $PWD/_site/ --watchThe built website will appear on the
website/_sitefolder.
The list of outstanding issues is at: https://github.com/okfn/publicbodies/issues
For developers of data collector bots
Data is kept automatically up-to-date by bots that collect and update
data once a week. The scripts are kept on the
scripts/import directory, followed by the international
place code (e.g. br for Brazil, it for Italy).
The script MUST be runnable from a command line interface. It should
display the available options if run with the --help parameter, and
output data to the file chosen by the --output parameter. For example:
python3 scripts/import/br/import_br.py --help
usage: import_br.py [-h] [--output file_name]
Imports Brazilian public body data from the official source and complements it
with data from several auxiliary sources. Official source: [SIORG's open data
API](https://dados.gov.br/dataset/siorg)
optional arguments:
-h, --help show this help message and exit
--output file_name filename for the data output as CSV
When making requests, bots MUST use the Public Bodies Bot user agent string to identify themselves to servers:
PublicBodiesBot (https://github.com/okfn/publicbodies)
If using Python, use the same libraries already defined in scrips/requirements.txt, in order to keep the project dependencies tidy, and only add new ones if strictly necessary.
After creating a new bot, make sure to add it to the update data workflow so that it runs regularly and keeps the data up-to-date.
Original preparation
Details of the automated data extraction to build the original database.
Data sources:
- Brazil
- Brazilian Government's SIORG – https://dados.gov.br/dataset/siorg
- European Union
- Italy
- Opendata IPA (amministrazioni / enti)
- Germany
- FragDenStaat.de – (private GoogleDoc)
- Bund.de – https://www.bund.de/Content/DE/Behoerden/Suche/Formular.html
- United Kingdom
- WhatDoTheyKnow.com – https://www.whatdotheyknow.com/body/all-authorities.csv
- United States of America
- A-Z Index of U.S. Government Departments and Agencies – https://www.usa.gov/federal-agencies/a
API access
Access dataset files directly from scripts, code, or AI agents.
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.
- Fetch data/datapackage.json to inspect schema and resources
- Download data resources listed in data/datapackage.json
- Read README.md for full context
- .gitignorehttps://datahub.io/core/publicbodies/_r/-/.gitignore
- CNAMEhttps://datahub.io/core/publicbodies/_r/-/CNAME
- FRESHNESS_CHECK.mdhttps://datahub.io/core/publicbodies/_r/-/FRESHNESS_CHECK.md
- LICENSEhttps://datahub.io/core/publicbodies/_r/-/LICENSE
- README.mddocumentationhttps://datahub.io/core/publicbodies/_r/-/README.md
- UPDATE_SCRIPT_MAINTENANCE_REPORT.mdhttps://datahub.io/core/publicbodies/_r/-/UPDATE_SCRIPT_MAINTENANCE_REPORT.md
- data/br.csvhttps://datahub.io/core/publicbodies/_r/-/data/br.csv
- data/ch.csvhttps://datahub.io/core/publicbodies/_r/-/data/ch.csv
- data/data-validation.yamlhttps://datahub.io/core/publicbodies/_r/-/data/data-validation.yaml
- data/datapackage.jsonmetadata & schemahttps://datahub.io/core/publicbodies/_r/-/data/datapackage.json
- data/de.csvhttps://datahub.io/core/publicbodies/_r/-/data/de.csv
- data/eu.csvhttps://datahub.io/core/publicbodies/_r/-/data/eu.csv
- data/gb.csvhttps://datahub.io/core/publicbodies/_r/-/data/gb.csv
- data/gr.csvhttps://datahub.io/core/publicbodies/_r/-/data/gr.csv
- data/it.csvhttps://datahub.io/core/publicbodies/_r/-/data/it.csv
- data/np.csvhttps://datahub.io/core/publicbodies/_r/-/data/np.csv
- data/nz.csvhttps://datahub.io/core/publicbodies/_r/-/data/nz.csv
- data/public-body-schema.jsonhttps://datahub.io/core/publicbodies/_r/-/data/public-body-schema.json
- data/se.csvhttps://datahub.io/core/publicbodies/_r/-/data/se.csv
- data/us.csvhttps://datahub.io/core/publicbodies/_r/-/data/us.csv
- datapackage.jsonhttps://datahub.io/core/publicbodies/_r/-/datapackage.json
- website/_config.ymlhttps://datahub.io/core/publicbodies/_r/-/website/_config.yml
- website/_data/about-this-dir.txthttps://datahub.io/core/publicbodies/_r/-/website/_data/about-this-dir.txt
- website/_includes/footer.htmlhttps://datahub.io/core/publicbodies/_r/-/website/_includes/footer.html
- website/_includes/head.htmlhttps://datahub.io/core/publicbodies/_r/-/website/_includes/head.html
- website/_includes/navbar.htmlhttps://datahub.io/core/publicbodies/_r/-/website/_includes/navbar.html
- website/_jurisdictions/br.mdhttps://datahub.io/core/publicbodies/_r/-/website/_jurisdictions/br.md
- website/_jurisdictions/ch.mdhttps://datahub.io/core/publicbodies/_r/-/website/_jurisdictions/ch.md
- website/_jurisdictions/de.mdhttps://datahub.io/core/publicbodies/_r/-/website/_jurisdictions/de.md
- website/_jurisdictions/eu.mdhttps://datahub.io/core/publicbodies/_r/-/website/_jurisdictions/eu.md
- website/_jurisdictions/gb.mdhttps://datahub.io/core/publicbodies/_r/-/website/_jurisdictions/gb.md
- website/_jurisdictions/gr.mdhttps://datahub.io/core/publicbodies/_r/-/website/_jurisdictions/gr.md
- website/_jurisdictions/it.mdhttps://datahub.io/core/publicbodies/_r/-/website/_jurisdictions/it.md
- website/_jurisdictions/np.mdhttps://datahub.io/core/publicbodies/_r/-/website/_jurisdictions/np.md
- website/_jurisdictions/nz.mdhttps://datahub.io/core/publicbodies/_r/-/website/_jurisdictions/nz.md
- website/_jurisdictions/se.mdhttps://datahub.io/core/publicbodies/_r/-/website/_jurisdictions/se.md
- website/_jurisdictions/us.mdhttps://datahub.io/core/publicbodies/_r/-/website/_jurisdictions/us.md
- website/_layouts/body.htmlhttps://datahub.io/core/publicbodies/_r/-/website/_layouts/body.html
- website/_layouts/default.htmlhttps://datahub.io/core/publicbodies/_r/-/website/_layouts/default.html
- website/_layouts/jurisdiction.htmlhttps://datahub.io/core/publicbodies/_r/-/website/_layouts/jurisdiction.html
- website/assets/font/FontAwesome.otfhttps://datahub.io/core/publicbodies/_r/-/website/assets/font/FontAwesome.otf
- website/assets/font/fontawesome-webfont.eothttps://datahub.io/core/publicbodies/_r/-/website/assets/font/fontawesome-webfont.eot
- website/assets/font/fontawesome-webfont.svghttps://datahub.io/core/publicbodies/_r/-/website/assets/font/fontawesome-webfont.svg
- website/assets/font/fontawesome-webfont.ttfhttps://datahub.io/core/publicbodies/_r/-/website/assets/font/fontawesome-webfont.ttf
- website/assets/font/fontawesome-webfont.woffhttps://datahub.io/core/publicbodies/_r/-/website/assets/font/fontawesome-webfont.woff
- website/assets/images/favicon.icohttps://datahub.io/core/publicbodies/_r/-/website/assets/images/favicon.ico
- website/assets/images/logo-okl.pnghttps://datahub.io/core/publicbodies/_r/-/website/assets/images/logo-okl.png
- website/assets/stylesheets/bootstrap/accordion.lesshttps://datahub.io/core/publicbodies/_r/-/website/assets/stylesheets/bootstrap/accordion.less
- website/assets/stylesheets/bootstrap/alerts.lesshttps://datahub.io/core/publicbodies/_r/-/website/assets/stylesheets/bootstrap/alerts.less
- website/assets/stylesheets/bootstrap/bootstrap.lesshttps://datahub.io/core/publicbodies/_r/-/website/assets/stylesheets/bootstrap/bootstrap.less
- website/assets/stylesheets/bootstrap/breadcrumbs.lesshttps://datahub.io/core/publicbodies/_r/-/website/assets/stylesheets/bootstrap/breadcrumbs.less
- website/assets/stylesheets/bootstrap/button-groups.lesshttps://datahub.io/core/publicbodies/_r/-/website/assets/stylesheets/bootstrap/button-groups.less
- website/assets/stylesheets/bootstrap/buttons.lesshttps://datahub.io/core/publicbodies/_r/-/website/assets/stylesheets/bootstrap/buttons.less
- website/assets/stylesheets/bootstrap/carousel.lesshttps://datahub.io/core/publicbodies/_r/-/website/assets/stylesheets/bootstrap/carousel.less
- website/assets/stylesheets/bootstrap/close.lesshttps://datahub.io/core/publicbodies/_r/-/website/assets/stylesheets/bootstrap/close.less
- website/assets/stylesheets/bootstrap/code.lesshttps://datahub.io/core/publicbodies/_r/-/website/assets/stylesheets/bootstrap/code.less
- website/assets/stylesheets/bootstrap/component-animations.lesshttps://datahub.io/core/publicbodies/_r/-/website/assets/stylesheets/bootstrap/component-animations.less
- website/assets/stylesheets/bootstrap/dropdowns.lesshttps://datahub.io/core/publicbodies/_r/-/website/assets/stylesheets/bootstrap/dropdowns.less
- website/assets/stylesheets/bootstrap/forms.lesshttps://datahub.io/core/publicbodies/_r/-/website/assets/stylesheets/bootstrap/forms.less
- website/assets/stylesheets/bootstrap/grid.lesshttps://datahub.io/core/publicbodies/_r/-/website/assets/stylesheets/bootstrap/grid.less
- website/assets/stylesheets/bootstrap/hero-unit.lesshttps://datahub.io/core/publicbodies/_r/-/website/assets/stylesheets/bootstrap/hero-unit.less
- website/assets/stylesheets/bootstrap/labels-badges.lesshttps://datahub.io/core/publicbodies/_r/-/website/assets/stylesheets/bootstrap/labels-badges.less
- website/assets/stylesheets/bootstrap/layouts.lesshttps://datahub.io/core/publicbodies/_r/-/website/assets/stylesheets/bootstrap/layouts.less
- website/assets/stylesheets/bootstrap/media.lesshttps://datahub.io/core/publicbodies/_r/-/website/assets/stylesheets/bootstrap/media.less
- website/assets/stylesheets/bootstrap/mixins.lesshttps://datahub.io/core/publicbodies/_r/-/website/assets/stylesheets/bootstrap/mixins.less
- website/assets/stylesheets/bootstrap/modals.lesshttps://datahub.io/core/publicbodies/_r/-/website/assets/stylesheets/bootstrap/modals.less
- website/assets/stylesheets/bootstrap/navbar.lesshttps://datahub.io/core/publicbodies/_r/-/website/assets/stylesheets/bootstrap/navbar.less
- website/assets/stylesheets/bootstrap/navs.lesshttps://datahub.io/core/publicbodies/_r/-/website/assets/stylesheets/bootstrap/navs.less
- website/assets/stylesheets/bootstrap/pager.lesshttps://datahub.io/core/publicbodies/_r/-/website/assets/stylesheets/bootstrap/pager.less
- website/assets/stylesheets/bootstrap/pagination.lesshttps://datahub.io/core/publicbodies/_r/-/website/assets/stylesheets/bootstrap/pagination.less
- website/assets/stylesheets/bootstrap/popovers.lesshttps://datahub.io/core/publicbodies/_r/-/website/assets/stylesheets/bootstrap/popovers.less
- website/assets/stylesheets/bootstrap/progress-bars.lesshttps://datahub.io/core/publicbodies/_r/-/website/assets/stylesheets/bootstrap/progress-bars.less
- website/assets/stylesheets/bootstrap/reset.lesshttps://datahub.io/core/publicbodies/_r/-/website/assets/stylesheets/bootstrap/reset.less
- website/assets/stylesheets/bootstrap/responsive-1200px-min.lesshttps://datahub.io/core/publicbodies/_r/-/website/assets/stylesheets/bootstrap/responsive-1200px-min.less
- website/assets/stylesheets/bootstrap/responsive-767px-max.lesshttps://datahub.io/core/publicbodies/_r/-/website/assets/stylesheets/bootstrap/responsive-767px-max.less
- website/assets/stylesheets/bootstrap/responsive-768px-979px.lesshttps://datahub.io/core/publicbodies/_r/-/website/assets/stylesheets/bootstrap/responsive-768px-979px.less
- website/assets/stylesheets/bootstrap/responsive-navbar.lesshttps://datahub.io/core/publicbodies/_r/-/website/assets/stylesheets/bootstrap/responsive-navbar.less
- website/assets/stylesheets/bootstrap/responsive-utilities.lesshttps://datahub.io/core/publicbodies/_r/-/website/assets/stylesheets/bootstrap/responsive-utilities.less
- website/assets/stylesheets/bootstrap/responsive.lesshttps://datahub.io/core/publicbodies/_r/-/website/assets/stylesheets/bootstrap/responsive.less
- website/assets/stylesheets/bootstrap/scaffolding.lesshttps://datahub.io/core/publicbodies/_r/-/website/assets/stylesheets/bootstrap/scaffolding.less
- website/assets/stylesheets/bootstrap/sprites.lesshttps://datahub.io/core/publicbodies/_r/-/website/assets/stylesheets/bootstrap/sprites.less
- website/assets/stylesheets/bootstrap/tables.lesshttps://datahub.io/core/publicbodies/_r/-/website/assets/stylesheets/bootstrap/tables.less
- website/assets/stylesheets/bootstrap/tests/buttons.htmlhttps://datahub.io/core/publicbodies/_r/-/website/assets/stylesheets/bootstrap/tests/buttons.html
- website/assets/stylesheets/bootstrap/tests/css-tests.csshttps://datahub.io/core/publicbodies/_r/-/website/assets/stylesheets/bootstrap/tests/css-tests.css
- website/assets/stylesheets/bootstrap/tests/css-tests.htmlhttps://datahub.io/core/publicbodies/_r/-/website/assets/stylesheets/bootstrap/tests/css-tests.html
- website/assets/stylesheets/bootstrap/tests/forms-responsive.htmlhttps://datahub.io/core/publicbodies/_r/-/website/assets/stylesheets/bootstrap/tests/forms-responsive.html
- website/assets/stylesheets/bootstrap/tests/forms.htmlhttps://datahub.io/core/publicbodies/_r/-/website/assets/stylesheets/bootstrap/tests/forms.html
- website/assets/stylesheets/bootstrap/tests/navbar-fixed-top.htmlhttps://datahub.io/core/publicbodies/_r/-/website/assets/stylesheets/bootstrap/tests/navbar-fixed-top.html
- website/assets/stylesheets/bootstrap/tests/navbar-static-top.htmlhttps://datahub.io/core/publicbodies/_r/-/website/assets/stylesheets/bootstrap/tests/navbar-static-top.html
- website/assets/stylesheets/bootstrap/tests/navbar.htmlhttps://datahub.io/core/publicbodies/_r/-/website/assets/stylesheets/bootstrap/tests/navbar.html
- website/assets/stylesheets/bootstrap/thumbnails.lesshttps://datahub.io/core/publicbodies/_r/-/website/assets/stylesheets/bootstrap/thumbnails.less
- website/assets/stylesheets/bootstrap/tooltip.lesshttps://datahub.io/core/publicbodies/_r/-/website/assets/stylesheets/bootstrap/tooltip.less
- website/assets/stylesheets/bootstrap/type.lesshttps://datahub.io/core/publicbodies/_r/-/website/assets/stylesheets/bootstrap/type.less
- website/assets/stylesheets/bootstrap/utilities.lesshttps://datahub.io/core/publicbodies/_r/-/website/assets/stylesheets/bootstrap/utilities.less
- website/assets/stylesheets/bootstrap/variables.lesshttps://datahub.io/core/publicbodies/_r/-/website/assets/stylesheets/bootstrap/variables.less
- website/assets/stylesheets/bootstrap/wells.lesshttps://datahub.io/core/publicbodies/_r/-/website/assets/stylesheets/bootstrap/wells.less
- website/assets/stylesheets/bootswatch.lesshttps://datahub.io/core/publicbodies/_r/-/website/assets/stylesheets/bootswatch.less
- website/assets/stylesheets/font-awesome/bootstrap.lesshttps://datahub.io/core/publicbodies/_r/-/website/assets/stylesheets/font-awesome/bootstrap.less
- website/assets/stylesheets/font-awesome/core.lesshttps://datahub.io/core/publicbodies/_r/-/website/assets/stylesheets/font-awesome/core.less
- website/assets/stylesheets/font-awesome/extras.lesshttps://datahub.io/core/publicbodies/_r/-/website/assets/stylesheets/font-awesome/extras.less
- website/assets/stylesheets/font-awesome/font-awesome-ie7.lesshttps://datahub.io/core/publicbodies/_r/-/website/assets/stylesheets/font-awesome/font-awesome-ie7.less
- website/assets/stylesheets/font-awesome/font-awesome.lesshttps://datahub.io/core/publicbodies/_r/-/website/assets/stylesheets/font-awesome/font-awesome.less
- website/assets/stylesheets/font-awesome/icons.lesshttps://datahub.io/core/publicbodies/_r/-/website/assets/stylesheets/font-awesome/icons.less
- website/assets/stylesheets/font-awesome/mixins.lesshttps://datahub.io/core/publicbodies/_r/-/website/assets/stylesheets/font-awesome/mixins.less
- website/assets/stylesheets/font-awesome/path.lesshttps://datahub.io/core/publicbodies/_r/-/website/assets/stylesheets/font-awesome/path.less
- website/assets/stylesheets/font-awesome/variables.lesshttps://datahub.io/core/publicbodies/_r/-/website/assets/stylesheets/font-awesome/variables.less
- website/assets/stylesheets/publicbodies.csshttps://datahub.io/core/publicbodies/_r/-/website/assets/stylesheets/publicbodies.css
- website/assets/stylesheets/publicbodies.lesshttps://datahub.io/core/publicbodies/_r/-/website/assets/stylesheets/publicbodies.less
- website/assets/stylesheets/variables.lesshttps://datahub.io/core/publicbodies/_r/-/website/assets/stylesheets/variables.less
- website/index.mdhttps://datahub.io/core/publicbodies/_r/-/website/index.md