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

Retrieve bills by congress and session #57

Closed
cnizzardini opened this issue Jan 19, 2020 · 1 comment
Closed

Retrieve bills by congress and session #57

cnizzardini opened this issue Jan 19, 2020 · 1 comment
Assignees

Comments

@cnizzardini
Copy link

Is there a way to specify a specific congress and session when returning packages from the BILLS collection? Currently, we must determine the start and end date on our own.

If not, is there some other API or XML feed I can use to determine the start and end dates of congresses and sessions?

Context is I have open-sourced a piece of a project (https://github.com/cnizzardini/gov-info) I am working on. I'd like to streamline pulling this information without having to manually define start and end dates for a congress within my application.

@jonquandt
Copy link
Member

@cnizzardini - currently, you can use the congress parameter to specify the Congress wwithin the collections service. E.g.:
https://api.govinfo.gov/collections/BILLS/2020-01-01T00:00:00Z?pageSige=100&offset=0&congress=116&api_key=DEMO_KEY

You can also add the docClass parameter to retrieve different bill types (he, s, hres, sconres, etc.)

The collections service doesn’t currently have a parameter that allows choosing a given session. It’s something we can look into, though we are also in the process of designing the search service.

Would having #25 be useful in the meantime?

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

2 participants