← clify home · catalogue

govinfo API for agents (unofficial) — JSON over curl

GovInfo (U.S. Government Publishing Office): browse collections such as Congressional Bills and the Federal Register, read daily Federal Register tables of contents, look up document details, related documents, committee publications and government authors, and fetch document text and MODS metadata.

Host: govinfo.gov. Call these verified read commands with plain curl; no install, key, or account. Use the public JSON API with plain curl. No install, key, account, or browser is needed. Start with San Francisco and U.S. agent tasks: events, startup jobs, BART and Muni departures, Craigslist listings, local news, public datasets and prediction markets. Example: curl 'https://clify-dev.netlify.app/search?q=SF+tech+events'. Responses are one JSON object. The hosted MCP and GitHub repo are also available.

Machine-readable command schema · Source website

Commands

list-categories

List GovInfo collection categories and the collections (code, slug) in each Params: none Read-only

curl 'https://clify-dev.netlify.app/govinfo/list-categories'

get-collection

Get metadata for a collection: title, description, help/RSS links and related resources Params: collection* Read-only

curl 'https://clify-dev.netlify.app/govinfo/get-collection?collection=bills'

browse-collection

List the top-level browse nodes of a collection (congresses for bills, years for the Federal Register) with document counts Params: collection*, sortDirection Read-only

curl 'https://clify-dev.netlify.app/govinfo/browse-collection?collection=bills'

list-bill-types

List the bill types (hr, s, hres, hjres, hconres, ...) in a Congress, with counts Params: congress*, sortDirection Read-only

curl 'https://clify-dev.netlify.app/govinfo/list-bill-types?congress=119'

list-bill-ranges

List the bill-number ranges (e.g. [0-99]) for one bill type in a Congress, with counts Params: congress*, billType*, sortDirection Read-only

curl 'https://clify-dev.netlify.app/govinfo/list-bill-ranges?congress=119&billType=hr'

list-bills

List bill versions (package IDs, titles, publish dates, file links) in a bill-number range of a Congress and bill type Params: congress*, billType*, range*, sortDirection, pageSize, offset Read-only

curl 'https://clify-dev.netlify.app/govinfo/list-bills?congress=119&billType=hr&range=%5B0-99%5D'

list-fr-months

List the months of a Federal Register year, with document counts Params: year*, sortDirection Read-only

curl 'https://clify-dev.netlify.app/govinfo/list-fr-months?year=2025'

list-fr-issues

List the daily Federal Register issues in a month (issue labels like 'Friday, January 31, Pages 8625-8752') with whole-issue download links Params: year*, month*, sortDirection Read-only

curl 'https://clify-dev.netlify.app/govinfo/list-fr-issues?year=2025&month=01'

list-fr-issue-agencies

List the agencies that have documents in one daily Federal Register issue, with counts Params: year*, month*, issue*, sortDirection Read-only

curl 'https://clify-dev.netlify.app/govinfo/list-fr-issue-agencies?year=2025&month=01&issue=Friday%2C+January+31%2C+Pages+8625-8752'

list-fr-agency-documents

List one agency's documents in a daily Federal Register issue (granule IDs, titles, sections, pages) Params: year*, month*, issue*, agency*, sortDirection Read-only

curl 'https://clify-dev.netlify.app/govinfo/list-fr-agency-documents?year=2025&month=01&issue=Friday%2C+January+31%2C+Pages+8625-8752&agency=Environmental+Protection+Agency'

get-fr-toc

Get the Federal Register table of contents for a date: every agency with its document subjects, pages and FR doc numbers Params: date* Read-only

curl 'https://clify-dev.netlify.app/govinfo/get-fr-toc?date=2025-01-31'

get-content-details

Get details for a document (granule) or package: title, metadata table, download links (PDF/HTML/MODS/ZIP), citations and dates Params: packageId*, granuleId Read-only

curl 'https://clify-dev.netlify.app/govinfo/get-content-details?packageId=FR-2025-01-31&granuleId=2025-02106'

List the kinds of related documents available for a granule (e.g. FR-DOCKETID: documents sharing a docket ID) Params: packageId*, granuleId*, relatedType Read-only

curl 'https://clify-dev.netlify.app/govinfo/list-related-collections?packageId=FR-2025-01-31&granuleId=2025-02106'

List documents related to a granule within a related collection, e.g. Federal Register documents sharing its docket ID Params: packageId*, granuleId*, relatedCollection, api_limit Read-only

curl 'https://clify-dev.netlify.app/govinfo/list-related-documents?packageId=FR-2025-01-31&granuleId=2025-02106'

get-document-in-context

Show where a granule sits in its package (issue/agency browse node) plus whole-issue download renditions Params: granuleId* Read-only

curl 'https://clify-dev.netlify.app/govinfo/get-document-in-context?granuleId=2025-02106'

list-government-authors

List government authors (agencies, courts, congressional bodies) grouped by executive, judicial and legislative branch Params: none Read-only

curl 'https://clify-dev.netlify.app/govinfo/list-government-authors'

browse-committee

List the publication collections (bills, reports, hearings, ...) available for a congressional committee Params: chamber*, committee* Read-only

curl 'https://clify-dev.netlify.app/govinfo/browse-committee?chamber=senate&committee=judiciary'

browse-committee-collection

List the Congresses for which a committee has publications in one collection (e.g. hearings, reports, bills) Params: chamber*, committee*, collection* Read-only

curl 'https://clify-dev.netlify.app/govinfo/browse-committee-collection?chamber=senate&committee=judiciary&collection=CHRG'

get-document-html

Fetch the full text (HTML rendition) of a bill version or a Federal Register document Params: packageId*, fileId* Read-only

curl 'https://clify-dev.netlify.app/govinfo/get-document-html?packageId=FR-2025-01-31&fileId=2025-02106'

get-package-mods

Get the MODS bibliographic metadata of a package (converted from XML to JSON): titles, names/sponsors, dates, identifiers, links Params: packageId* Read-only

curl 'https://clify-dev.netlify.app/govinfo/get-package-mods?packageId=BILLS-119hr30ih'