
Package granules
GET/packages/{packageId}/granules
curl -X POST https://api.orthogonal.com/v1/run \
-H 'Authorization: Bearer orth_live_••••' \
-H 'Content-Type: application/json' \
-d '{
"api": "govinfo-api",
"path": "",
"method": "GET",
"query": {
"offsetMark": "",
"pageSize":
}
}'
{
"success": true,
"data": {
"count": 53,
"offset": null,
"granules": [ 1 item ],
"nextPage": "https://api.govinfo.gov/packages/CREC-2018-01-04/granules?[redacted token]&pageSize=1",
"pageSize": 1,
"previousPage": null
}
}
A real response, recorded when Orthogonal checked this endpoint.
$0.003per call
Every call costs the same.
You aren't charged for failed calls. A wallet payment for a failed call is refunded.
About this endpoint
Get a list of granules associated with a package (such as the individual documents in a daily Federal Register issue).
Path parameters
packageIdrequiredstringGoes in the path: replace {packageId} in the request.Query parameters
offsetMarkstringIndicates starting record for a given request. Use in conjunction with pageSize to paginate through the results. For the first request, use * - for subsequent requests, this information will be provided in the nextPage field of the current response.offsetintegerThis is the starting record you wish to retrieve-- 0 is the first record. This parameter is being deprecated and will be removed in the future. Please begin transitioning to use offsetMark instead. For more information see the deprecation warning announcement and discussion on this <a href="https://github.com/usgpo/api/issues/187" target="blank"> GitHub issue (usgpo/api #187) <i class="bi bi-github"></i></a>pageSizerequiredintegerThe number of records to return for a given request. Max value is 1000md5stringmd5 hash value of the html content file - can be used to identify changes in individual granules for the HOB and CRI collections.granuleClassstringFilter the results by overarching collection-specific categories. The values vary from collection to collection. For example, For example, granuleClass in CREC corresponds with Congressional Record Section ---e.g. . DAILYDIGEST, EXTENSIONS, SENATE, HOUSEResponse types
countintegeroffsetintegerpageSizeintegernextPagestringpreviousPagestringmessagestringMore from GovInfo API
- Collection listGET/collections$0.003 per callFixed
- Collection updates in rangeGET/collections/{collection}/{lastModifiedStartDate}/{lastModifiedEndDate}$0.003 per callFixed
- Related documents by collectionGET/related/{accessId}/{collection}$0.003 per callFixed
- Collection updates sinceGET/collections/{collection}/{lastModifiedStartDate}$0.003 per callFixed
- Related documentsGET/related/{accessId}$0.003 per callFixed
- Granule summaryGET/packages/{packageId}/granules/{granuleId}/summary$0.003 per callFixed
- Package summaryGET/packages/{packageId}/summary$0.003 per callFixed
- Packages published in rangeGET/published/{dateIssuedStartDate}/{dateIssuedEndDate}$0.003 per callFixed
- Publication searchPOST/search$0.003 per callFixed
- Packages published sinceGET/published/{dateIssuedStartDate}$0.003 per callFixed