Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add multiples Bills search endpoint #314

Open
Avinamor opened this issue Feb 7, 2025 · 4 comments
Open

Add multiples Bills search endpoint #314

Avinamor opened this issue Feb 7, 2025 · 4 comments

Comments

@Avinamor
Copy link

Avinamor commented Feb 7, 2025

Hello!

We work closely with the Bills part of the API and it became a huge pain using GET /bill/:congress/:billType/:billNumber endpoint.

Please add an endpoint to fetch multiple Bills (a list of bills based on Congress) and a Search endpoint for Bills.
That would make a big impact.

  • if you need any help, please let me know. We can do the coding part for you :)
@Gmanicus
Copy link

Gmanicus commented Feb 8, 2025

I believe this is what you're looking for: https://api.congress.gov/#/bill/bill_list_by_congress 🙂

However, I don't believe they have a general search endpoint. Did you mean an endpoint to search for bills by title?

@Avinamor
Copy link
Author

@Gmanicus thanks for the reply.

We need a general search endpoint. :(
By the way, do you know if the "title" field is static (As I understand that some fields can be updated with time)?

@apreiter18
Copy link
Collaborator

apreiter18 commented Feb 10, 2025

We will investigate the feasibility of incorporating a search endpoint for bills, @Avinamor.

The title field is not static; here is a good example: 118 HR 2882

This bill started with an "Official Title as Introduced": To reauthorize the Morris K. Udall and Stewart L. Udall Trust Fund, and for other purposes.

but the official title as agreed to by the House and Senate was: Making further consolidated appropriations for the fiscal year ending September 30, 2024, and for other purposes.

The Congress.gov API has an endpoint that returns all the titles for a bill /bill/{congress}/{billType}/{billNumber}/titles

Here is an example for HR 2882: https://api.congress.gov/v3/bill/118/hr/2882/titles?api_key=YOUR_KEY

I hope this helps.

@Avinamor
Copy link
Author

@apreiter18 Thanks a lot! Will be waiting for updates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants