Govinfo Content
government__govinfo-contentRetrieve official U.S. government documents like court opinions, laws, and regulations in HTML, XML, MODS, or PREMIS formats with quality scoring and source verification for research and compliance needs.
Instructions
[Government & Public Data Agent] Fetch the actual text content of a GovInfo package or granule (court opinion, public law, Federal Register notice, CFR section, etc.) in HTML, XML, MODS, or PREMIS format. For PDFs use the pdfLink from govinfo-package. Source: GovInfo (GPO) (Public Domain), updates daily. Returns the Katzilla envelope { data, quality, citation } — quality scores freshness/uptime/confidence; citation carries the source URL, license, and a SHA-256 data hash for audit.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| packageId | Yes | GovInfo package identifier | |
| granuleId | No | Optional granule identifier — fetch a sub-document instead of the full package | |
| format | No | Content format: htm (HTML body — best for reading), xml (USLM/MODS XML), mods (MODS metadata XML), premis (preservation metadata XML). PDF is not supported here — use the pdfLink from govinfo-package. | htm |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Structured payload from the upstream source. | |
| text | No | Pre-rendered text representation, when applicable. | |
| quality | Yes | Quality scorecard: freshness, uptime, completeness, confidence, certainty. | |
| citation | Yes | Provenance block — source, license, retrieval timestamp, SHA-256 data hash, pre-formatted citation text. |