-
Notifications
You must be signed in to change notification settings - Fork 105
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
Schedule_e pagination and missing transactions bug #3396
Comments
Thanks for reporting! We're going to take a look into this issue and get back to you when we have more information on what's happening. |
run the same query on different tiers. Here are the results:
-STG:
they all yield the same results - will check the database to verify. |
database layer query give the same results: 2701 |
Hi @grimmius. We aren't able to replicate your issue. Do you mind trying your search again and seeing if you get the same result? |
Thanks for reaching out. I'm going to close this ticket as stale. Please let us know if you have any other concerns. |
I'm running into the same issue, where i try to request from the /schedules/schedule_a endpoint. I have 600,000 records to retrieve however i can't iterate past the 24th page out of 6000 pages. This is because at the 24th page, the last_index variable does not exist and so i can't jump to the next page because i can't retrieve last_index to pass on to the next request. In the case that last_index does not exist, does this mean that there is no more data to retrieve? In my code, i create a while loop to keep on retrieving the pages and updating the last_index in the parameters until i hit the end of the pagination['pages'] Here are my parameters: params = { |
Hello, Thank you for using the FEC's api. This endpoint has specific pagination requirements and can be found in the endpoint documentation: https://api.open.fec.gov/developers/#/receipts/get_schedules_schedule_a_ The relevant portion for pagination is summarized here:
The key requirement is for a new page of results, the URL must be appended as:
|
After adding the last_contribution_receipt_date to the last request, it was able to continue to the next page. Thanks for the advice, greatly appreciate it! |
I'm trying to query independent expenditures by committee. I've noticed a bug in the pagination mechanism that results in many transactions being excluded. I'll use the DCCC as an example.
The following will query the first 100 IEs for DCCC during the 2016 cycle:
https://api.open.fec.gov/v1/schedules/schedule_e/?api_key=DEMO_KEY&committee_id=C00000935&per_page=100&cycle=2016&sort=-expenditure_date
It also returns the following pagination object:
Following the documentation, appending the
last_index
value to the end of the request like&last_index=4081120171446520621
will return the the next page of results in sequence, and so on until no results are left. By the estimation given in the pagination object there should be 80 pages of results, however following thelast_index
yields only 9 more pages:Missing Transactions:
https://api.open.fec.gov/v1/schedules/schedule_e/?min_amount=134680.46&cycle=2016&committee_id=C00000935&per_page=20&sort=-expenditure_date&api_key=DEMO_KEY&max_amount=134680.46
These transactions (and many more) should be returned by the first request, but are not found on any of the pages.
The text was updated successfully, but these errors were encountered: