ElectionsAPI Documentation: Difference between revisions

no edit summary
(wip)
 
No edit summary
**<code>fill</code> - The region winner's hex color, for filling maps in with.
 
Example URL: <code>https://computernewb.com/election/api/v1/election/us/governor/2022/mn</code>
 
===/v1/election/{country}/{election}/{year}/{region}/map===
This endpoint can be used to generate a map. It returns a PNG of a filled out map. This endpoint will only work if <code>has_map</code> is <code>true</code>. Otherwise, it will throw a 404 error.
 
Example URL: <code>https://computernewb.com/election/api/v1/election/us/governor/2022/mn/map</code>
 
===/v1/election/{country}/{election}/{year}/{region}/{district}===