-
Notifications
You must be signed in to change notification settings - Fork 106
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
Test /schedule_a/by_state/by_candidate data #3777
Comments
@lbeaufort @PaulClark2 I don't see /candidates/totals/by_state endpoint. Do you mean the endpoint /schedules/schedule_a/by_state/by_candidate/? Or this is going to be a new endpoint? |
@fecjjeng you are correct, can you update the issue? |
We need to be able to check these individual aggregate endpoints (by_state and by_size etc) so we should consider adding totals /schedule_a/individuals/by_candidate one level up totals for if feasible, we should be able to check this data for committees as well Individual contributions won't match financial summary line 11a because transfers (line 12) can contain individual contributions.
|
Update - it looks like this endpoint already had election_full capability - I'm going to work on adding a totals endpoint and QAing the data. Examples: Election full = False Election full = True |
Findings:
**** Checking: H8NC09123, MCCREADY, DANIEL in prod. Election year is 2020. **** Candidate ID totals: https://api.open.fec.gov/v1/candidate/H8NC09123/totals?cycle=2020&full_election=False&api_key=DEMO_KEY **** Checking: H0PA12181, KELLER, FRED in prod. Election year is 2020. **** Candidate ID totals: https://api.open.fec.gov/v1/candidate/H0PA12181/totals?cycle=2020&full_election=False&api_key=DEMO_KEY Script
|
PA-12 had a special general on 5/21. NC-09 is scheduled to have a special election 9/10. PA-12
NC-09
|
@PaulClark2 it looks like the difference is due to the unitemized totals - maybe it's double-counting? I need to investigate further. **** Checking: H0PA12181, KELLER, FRED in prod. Election year is 2020. **** Candidate ID totals: https://api.open.fec.gov/v1/candidate/H0PA12181/totals?cycle=2020&full_election=False&api_key=DEMO_KEY unitemized total: $29,658.69 **** Checking: H8NC09123, MCCREADY, DANIEL in prod. Election year is 2020. **** Candidate ID totals: https://api.open.fec.gov/v1/candidate/H8NC09123/totals?cycle=2020&full_election=False&api_key=DEMO_KEY unitemized total: $707,665.35 |
I split the remaining work into a follow-up ticket: #3816 |
Example: https://api.open.fec.gov/v1/schedules/schedule_a/by_state/by_candidate/?api_key=DEMO_KEY&candidate_id=P80001571&cycle=2020&per_page=99
The text was updated successfully, but these errors were encountered: