Federal policy structured data options - Enterprise-CMCS/cmcs-eregulations GitHub Wiki
What are options for APIs, XML downloads, and structured permalinks for US federal policy documents, available from official government websites?
See also:
- https://usgpo.github.io/innovation/resources/ + Legislative Data Sources (linked from that page).
- https://www.govinfo.gov/features/release-notes
- https://www.fdlp.gov/training/inside-look-united-states-code
Citation tools
Put in a citation, get a set of links: https://www.law.cornell.edu/rio/
Put in a citation, get a set of links: https://github.com/unitedstates/uslaw.link - https://uslaw.link/
Citation extractor: https://github.com/unitedstates/citation
Bills
- API for bills, summaries of bills, etc - Congress.gov
- Bulk data sets for bill text, status, summaries - https://www.govinfo.gov/developers
- GovInfo Link Service for bills - https://www.govinfo.gov/link-docs
Statute
Documentation:
- Document Type Definition files - House of Representatives
Individual statute
- StatViewer, unique links to public law pages (PDFs embedded in page) - example: https://uscode.house.gov/statviewer.htm?volume=95&page=788 - House of Representatives - not sure if documented
- GovInfo Statute Compilations API - also in GovInfo Link Service
- GovInfo Public and Private Laws API - also in GovInfo Link Service
- GovInfo Statutes at Large API - also in GovInfo Link Service
Codified (US Code)
- Bulk XML downloads of public law - House of Representatives
- Pages at uscode.house.gov have permalinks to individual paragraphs - example: https://uscode.house.gov/view.xhtml?req=granuleid:USC-prelim-title42-section1320b-7&num=0&edition=prelim#substructure-location_d - documented on FAQ page
- US Code titles and sections - GovInfo API & GovInfo Link Service
Regulations (CFR)
- JSON & XML API - Current and past text - individual changes back to ~2017 - eCFR.gov
- GovInfo API and Link Service - https://www.govinfo.gov/link-docs/ - Annual editions back to 1996
Rules
Individual Federal Register documents
- JSON API - Documents, metadata, search - back to ~1994 - FederalRegister.gov
- Unique links (not sure if documented) - https://www.federalregister.gov/citation/##-FR-##### - FederalRegister.gov - partial info for documents, some back before 1994
Federal Register issues
- Library of Congress collection of scans from 1936 to 1993 is probably available via LoC APIs.
- GovInfo Link Service - https://www.govinfo.gov/link-docs/
Histories of Federal Register document "families"
- RIN data in XML - RegInfo.gov - not sure if documented - example: https://www.reginfo.gov/public/do/eAgendaViewRule?pubId=201210&RIN=0938-AR18&operation=OPERATION_EXPORT_XML (page where that's linked). Resources: XML reports for rules under review + Unified Agendas.
Comments on documents
- Individual document API - Regulations.gov
- Bulk data download - Regulations.gov
Subregulatory guidance
I don't know of any APIs for this other than ours.