-
Notifications
You must be signed in to change notification settings - Fork 60
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
Can not access/retrieve above offset 10.000 of Congressional Hearings packages #60
Comments
@uwieske - 10,000 records is a current limitation of the collections service - See collection update . The You can try to use a smaller time range for the request, or use our newly available This provides similar, but enhanced, functionality as our sitemaps (CHRG index) All 2010 CHRG packages Using this, you can get multiple years at a time. I hope this is helpful. The majority of hearings are from after 1993, but we have been making a large corpus of select digitized hearing available as well - currently they go back to 1957.
|
@jonquandt Thank you for the thorough information. I completely missed the note. I ve just read it. So, that means that requests are capped given a date (corresponding to lastModified) and from that date max 10.000 records are retrieved. So if I think of a smart time interval (startdate-enddate) where the probability is high to stay in 10.000 records range, I could subsequently shift the interval as a time window over timeline and retrieve more than 10.000 records with almost no overlap? I will try the other endpoint |
@uwieske - yes, that seems reasonable, though I would suggest that The
e.g. vs. no modifiedSince: You could do something similar with the collections endpoint by limiting to a given congress - in this case: So, either way will work -- just depends on your preference for calling. I hope that helps. |
Hi
The API response indicates that there are about 30.000 packages, but I am able to retrieve from offset 0 till 10000 packages. At offset 10000 I get an error. I have tried some arbitrary values above 10.000, but I get also an error when performing a GET on packages.
This is URL I am calling when the error occurs: https://api.govinfo.gov/collections/CHRG/2010-01-01T00:00:00Z?offset=10000&pageSize=100&api_key=<MY_APY_KEY>
The text was updated successfully, but these errors were encountered: