this post was submitted on 04 Nov 2024
15 points (80.0% liked)
Selfhosted
60210 readers
1174 users here now
A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.
Rules:
-
Be civil.
-
No spam.
-
Posts are to be related to self-hosting.
-
Don't duplicate the full text of your blog or readme if you're providing a link.
-
Submission headline should match the article title.
-
No trolling.
-
Promotion posts require active participation, with an account that is at least 30 days old. F/LOSS without a paywall has exceptions, with requirements. See the rules link for details.
Resources:
- selfh.st Newsletter and index of selfhosted software and apps
- awesome-selfhosted software
- awesome-sysadmin resources
- Self-Hosted Podcast from Jupiter Broadcasting
Any issues on the community? Report it using the report flag.
Questions? DM the mods!
founded 3 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Most election data comes from the Associated Press, but I don't see a place to purchase API access, may only be available to news orgs.
https://developer.ap.org/ap-elections-api/
A reddit poster had some JSONs from New York Times four years ago for 2020 but I'm not sure if you can make them work for 2024.
https://old.reddit.com/r/rstats/comments/jo1yuw/us_election_results_api/gmnxfz3/
Yeah I found the same on the AP data. I also found that reddit thread, but haven't been able to find a valid URL for this year's election. Maybe they don't make it available until voting starts?
I'll look around, I haven't done any work with the AP in years though.
Nope, no access. I'm not sure if their process but I found this.
API Keys
An API key is the access key required for making API calls. If you have not received your API key, please contact AP Customer Support.