LibraryOfCongress / api.congress.gov

congress.gov API
605 stars 38 forks source link

Floor Status #167

Open chrisgilldc opened 8 months ago

chrisgilldc commented 8 months ago

Good afternoon. I'm looking for a way to get current floor status for the chambers. This appears on the congress.gov webpage, but isn't exposed through the API. Having a simple "/floor_status" endpoint to return something like '{ "house": "convened", "senate": "adjourned"}' would be a nice convenience. Including the additional data the website has one adjournment time, convening time and next convening would be nice but not essential, that can be gotten from the chambers' legislative calendars. It's (close to) real time status that's hard to find. Thanks!

rbram commented 8 months ago

Hello. Thank you for your suggestion. We will investigate opportunities to provide a simple endpoint.

DanielSchuman commented 6 months ago

Just to add a note: there is "in session" data in the House and Senate from which this could be provided.

If you look at the House.gov website, there appears to be a call to https://in-session.house.gov that returns 0 or 1 (i.e. yes or no). Here is a screen shot of the code on the House's website:

image

This likely is maintained by the House Clerk. You could connect with them to provide this information.

It is likely there is a similar element for the Senate webpage, which includes an element when the Senate floor is in session. Contacting the webmaster for the Senate website may reveal a similar call.

chrisgilldc commented 5 months ago

Daniel, hadn't clocked that, thank you for pointing it out. I'll certainly give that a shot when I have time to get back to my project. Thanks!