propublica / sunlight-congress

The Sunlight Foundation's Congress API. Shut down on Oct. 1, 2017.
https://www.propublica.org/nerds/item/congress-api-bill-subjects-personal-explanations-and-sunsetting-sunlight
Other
169 stars 65 forks source link

Some bills have null responses for search endpoint (but not bills endpoint) #538

Closed dwillis closed 7 years ago

dwillis commented 7 years ago

Example: https://congress.api.sunlightfoundation.com/bills/search?per_page=50&page=1&apikey=5ddd9b522b204fb599123fc03b6d8745&congress=114&fields=*,summary_short&bill_id=hr22-114

markdboyd commented 7 years ago

I have a different example, but I think the same fundamental problem: some filter fields don't seem to work correctly for the bills/search/ endpoint that do work for the bills/ endpoint.

In my case, I have noticed that when filtering for bills that are awaiting signature, I do get a response from the bills/ endpoint:

https://congress.api.sunlightfoundation.com/bills?apikey=&history.awaiting_signature=true&congress=114

But not the bills/search/ endpoint:

https://congress.api.sunlightfoundation.com/bills/search?apikey=&congress=114&history.awaiting_signature=true