usgpo / api

services to access govinfo content and metadata
https://api.govinfo.gov
Other
183 stars 58 forks source link

Packages for BILLS collection not available for congress sessions 102 and older #153

Closed alenafirefly closed 1 month ago

alenafirefly commented 7 months ago

For congress sessions 102 and older:

  1. 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

  2. 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" }

  3. 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

llaplant commented 7 months ago

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