Closed alenafirefly closed 1 month ago
For congress sessions 102 and older:
GET https://api.govinfo.gov/published/{fromDate}/{toDate}?offsetMark=%2A&pageSize=1000&collection=BILLS returns no results. For example: https://api.govinfo.gov/published/1991-01-03/1993-01-05?offsetMark=%2A&pageSize=1000&collection=BILLS&api_key=DEMO_KEY
POST https://api.govinfo.gov/search for collection BILLS returns no results. E.g.: https://api.govinfo.gov/search?api_key=DEMO_KEY request body: { "query": "collection:(BILLS) AND congress:102 AND publishdate:range(1991-01-03,1993-01-04)", "pageSize": 1000, "offsetMark": "*", "sorts": [ { "field": "publishdate", "sortOrder": "ASC" } ], "historical": true, "resultLevel": "package" }
GET https://api.govinfo.gov/collections/BILLS - only returns data from 2021-12-23 till now, older data not available. E.g.: https://api.govinfo.gov/collections/BILLS/2019-01-03T00:01:00Z/2021-01-04T00:01:00Z?offset=0&pageSize=1000&api_key=DEMO_KEY
Bills are available on GovInfo back to the 103rd Congress. This is why bills prior to the 103rd are not available in the API. https://www.govinfo.gov/app/collection/BILLS
For congress sessions 102 and older:
GET https://api.govinfo.gov/published/{fromDate}/{toDate}?offsetMark=%2A&pageSize=1000&collection=BILLS returns no results. For example: https://api.govinfo.gov/published/1991-01-03/1993-01-05?offsetMark=%2A&pageSize=1000&collection=BILLS&api_key=DEMO_KEY
POST https://api.govinfo.gov/search for collection BILLS returns no results. E.g.: https://api.govinfo.gov/search?api_key=DEMO_KEY request body: { "query": "collection:(BILLS) AND congress:102 AND publishdate:range(1991-01-03,1993-01-04)", "pageSize": 1000, "offsetMark": "*", "sorts": [ { "field": "publishdate", "sortOrder": "ASC" } ], "historical": true, "resultLevel": "package" }
GET https://api.govinfo.gov/collections/BILLS - only returns data from 2021-12-23 till now, older data not available. E.g.: https://api.govinfo.gov/collections/BILLS/2019-01-03T00:01:00Z/2021-01-04T00:01:00Z?offset=0&pageSize=1000&api_key=DEMO_KEY