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

Adding conditions to get requests #91

Open
morden35 opened this issue Nov 21, 2021 · 2 comments
Open

Adding conditions to get requests #91

morden35 opened this issue Nov 21, 2021 · 2 comments

Comments

@morden35
Copy link

Hi there!

I would like to be able to add a condition to a Collections request. For example, I want to get all bills where 'climate' or 'Climate' is contained in the title. At the moment, I am doing this using python/regex after I request all bills for a given congress, however this method is limited by the 10,000 collections cap. Thank you in advance!

@jonquandt
Copy link
Member

This is something we'd look to address with #1, which is rising higher in our priority list for development. No tentative dates for release currently.

@jonquandt
Copy link
Member

@morden35 - following up on this older request. The Search service could provide this functionality, like so:

curl -X 'POST' \
  'https://api.govinfo.gov/search?api_key=DEMO_KEY' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "query": "title:climate collection:bills lastModified:range(2023-11-01T00:00:00Z,)",
  "pageSize": 100,
  "offsetMark": "*",
  "sorts": [
    {
      "field": "lastModified",
      "sortOrder": "DESC"
    }
  ]
}'

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
@jonquandt @morden35 and others