api.congress.gov
api.congress.gov copied to clipboard
Add endpoint for fetching bills by subject-policy area
Problem
Currently, each bill includes its subject-policy area, but I have to open and navigate through individual bills to check if they belong to a specific subject-policy area. This makes it inefficient to retrieve a collection of bills under the same category. Additionally, the API responses do not provide a direct link to the official bill page (e.g., Congress.gov), which would be very helpful for quickly accessing full details.
Proposed Solution
-
Introduce an endpoint that supports filtering bills by subject-policy area. For example, allowing a query parameter like: /bill?subjectPolicyArea=Health This would return all bills that fall under the specified subject-policy area.
-
Include the official source link for each bill in the API response. For example: https://www.congress.gov/bill/119th-congress/house-bill/2215?s=8&r=1 This would allow developers to directly integrate clickable links into their applications, redirecting users to the full bill details.
Manually iterating through all bills and checking their subject-policy area (time-consuming and inefficient). Manually constructing source links outside of the API (prone to errors and inconsistent).
This feature would ease data retrieval, reduce repetitive navigation, and make the API more user-friendly for developers working with large datasets, while also enabling quick access to the official bill details.
Looking forward to your feedback. Thank you!