### Packages API Source: https://api.govinfo.gov/docs/index Return content and metadata for individual documents. ```APIDOC ## GET /packages/{packageId}/summary ### Description Return a JSON summary for a specified package. ### Method GET ### Endpoint /packages/{packageId}/summary ### Parameters #### Path Parameters - **packageId** (string) - Required - The unique identifier for the package. ### Response #### Success Response (200) - **summary** (object) - A summary of the package. #### Response Example ```json { "summary": { "title": "Example Package Title", "packageId": "pkg123" } } ``` ## GET /packages/{packageId}/granules ### Description Get a list of granules associated with a package. ### Method GET ### Endpoint /packages/{packageId}/granules ### Parameters #### Path Parameters - **packageId** (string) - Required - The unique identifier for the package. ### Response #### Success Response (200) - **granules** (array) - A list of granules within the package. #### Response Example ```json { "granules": [ { "granuleId": "granule456", "title": "Example Granule" } ] } ``` ## GET /packages/{packageId}/granules/{granuleId}/summary ### Description Return a JSON summary for a specified granule. ### Method GET ### Endpoint /packages/{packageId}/granules/{granuleId}/summary ### Parameters #### Path Parameters - **packageId** (string) - Required - The unique identifier for the package. - **granuleId** (string) - Required - The unique identifier for the granule. ### Response #### Success Response (200) - **summary** (object) - A summary of the granule. #### Response Example ```json { "summary": { "title": "Example Granule Title", "granuleId": "granule456" } } ``` ``` -------------------------------- ### Search Documents Source: https://api.govinfo.gov/docs/index Discover documents on GovInfo using search queries and field operators available in the GovInfo UI. ```APIDOC ## POST /search ### Description Discover documents on GovInfo using search queries and field operators available in the GovInfo UI. ### Method POST ### Endpoint /search ### Parameters #### Request Body - **query** (string) - Required - The search query string. - **fields** (object) - Optional - Field operators for refining the search. ### Request Example ```json { "query": "climate change", "fields": { "publication_date": ">=2023-01-01" } } ``` ### Response #### Success Response (200) - **results** (array) - A list of documents matching the search criteria. - **count** (integer) - The total number of documents found. #### Response Example ```json { "results": [ { "packageId": "//www.govinfo.gov/content/pkg/CPRT-2023report/pdf/CPRT-2023report.pdf", "title": "2023 Climate Change Report" } ], "count": 1 } ``` ``` -------------------------------- ### Collections API Source: https://api.govinfo.gov/docs/index Discover new and updated documents based on GovInfo lastModified date/time. ```APIDOC ## GET /collections ### Description Request a list of collections. Response includes collectionCode, collectionName, package, and granule counts. ### Method GET ### Endpoint /collections ### Response #### Success Response (200) - **collections** (array) - A list of available collections. #### Response Example ```json { "collections": [ { "collectionCode": "CFR", "collectionName": "Code of Federal Regulations", "packageCount": 15000, "granuleCount": 50000 } ] } ``` ## GET /collections/{collection}/{lastModifiedStartDate} ### Description Retrieve new or updated packages for a collection given a start date and time. ### Method GET ### Endpoint /collections/{collection}/{lastModifiedStartDate} ### Parameters #### Path Parameters - **collection** (string) - Required - The identifier for the collection. - **lastModifiedStartDate** (string) - Required - The start date and time for filtering modified packages (YYYY-MM-DDTHH:MM:SSZ). ### Response #### Success Response (200) - **packages** (array) - A list of updated packages. #### Response Example ```json { "packages": [ { "packageId": "//www.govinfo.gov/content/pkg/CFR-2023...", "title": "Updated CFR Volume" } ] } ``` ## GET /collections/{collection}/{lastModifiedStartDate}/{lastModifiedEndDate} ### Description Retrieve new or updated packages for a collection within a date range. ### Method GET ### Endpoint /collections/{collection}/{lastModifiedStartDate}/{lastModifiedEndDate} ### Parameters #### Path Parameters - **collection** (string) - Required - The identifier for the collection. - **lastModifiedStartDate** (string) - Required - The start date and time for filtering modified packages (YYYY-MM-DDTHH:MM:SSZ). - **lastModifiedEndDate** (string) - Required - The end date and time for filtering modified packages (YYYY-MM-DDTHH:MM:SSZ). ### Response #### Success Response (200) - **packages** (array) - A list of updated packages within the specified date range. #### Response Example ```json { "packages": [ { "packageId": "//www.govinfo.gov/content/pkg/CFR-2023...", "title": "Updated CFR Volume" } ] } ``` ``` -------------------------------- ### Related Documents API Source: https://api.govinfo.gov/docs/index Discover relationships between documents available on GovInfo. ```APIDOC ## GET /related/{accessId} ### Description Get a list of relationships for a given access ID. ### Method GET ### Endpoint /related/{accessId} ### Parameters #### Path Parameters - **accessId** (string) - Required - The unique identifier for the document. ### Response #### Success Response (200) - **relatedDocuments** (array) - A list of related documents. #### Response Example ```json { "relatedDocuments": [ { "accessId": "relatedDoc101", "title": "Related Document Example" } ] } ``` ## GET /related/{accessId}/{collection} ### Description Get a list of relationships for a given access ID within a specific collection. ### Method GET ### Endpoint /related/{accessId}/{collection} ### Parameters #### Path Parameters - **accessId** (string) - Required - The unique identifier for the document. - **collection** (string) - Required - The identifier for the collection. ### Response #### Success Response (200) - **relatedDocuments** (array) - A list of related documents within the specified collection. #### Response Example ```json { "relatedDocuments": [ { "accessId": "relatedDoc101", "title": "Related Document Example in Collection" } ] } ``` ``` -------------------------------- ### Published Documents API Source: https://api.govinfo.gov/docs/index Discover documents on GovInfo based on official publication date. ```APIDOC ## GET /published/{dateIssuedStartDate} ### Description Retrieve a list of packages based on the `dateIssued` value. ### Method GET ### Endpoint /published/{dateIssuedStartDate} ### Parameters #### Path Parameters - **dateIssuedStartDate** (string) - Required - The start date for filtering packages by `dateIssued` (YYYY-MM-DD). ### Response #### Success Response (200) - **packages** (array) - A list of packages published on or after the specified date. #### Response Example ```json { "packages": [ { "packageId": "pkg789", "title": "Document Published Today" } ] } ``` ## GET /published/{dateIssuedStartDate}/{dateIssuedEndDate} ### Description Retrieve a list of packages based on the `dateIssued` value within a date range. ### Method GET ### Endpoint /published/{dateIssuedStartDate}/{dateIssuedEndDate} ### Parameters #### Path Parameters - **dateIssuedStartDate** (string) - Required - The start date for filtering packages by `dateIssued` (YYYY-MM-DD). - **dateIssuedEndDate** (string) - Required - The end date for filtering packages by `dateIssued` (YYYY-MM-DD). ### Response #### Success Response (200) - **packages** (array) - A list of packages published within the specified date range. #### Response Example ```json { "packages": [ { "packageId": "pkg789", "title": "Document Published in Range" } ] } ``` ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.