Operations at https://nyc.electionapi.com/psl - City of New York Poll Site Locator App |
---|
The Poll Site Locator http://pollsitelocator.com (NYC=http://nyc.pollsitelocator.com) enables voters to find their poll site and upcoming election information by supplying their home address. This site returns current poll site, voting district, upcoming elections (if any) and any contests established on the ballot for that voting district.
At any time you may view a list of currently supported API for this app by using this web address: https://nyc.electionapi.com/psl/help.
ElectionAPI.com provides a mechanism for retrieving the information supplied by pollsitelocator.com through an HTTP interface that returns data.
This page describes the service operations at this endpoint.
NOTE: Be sure to include the API Key parameter with your call see api_keys |
---|
New API to Support Early Voting Sites - Version 1.0
Uri | Method | |
---|---|---|
version/1.0/accountlanguages | GET | Service at https://nyc.electionapi.com/psl/version/1.0/accountlanguages |
version/1.0/accountlinks | GET | Service at https://nyc.electionapi.com/psl/version/1.0/accountlinks?lang={CODE} |
version/1.0/contestlist | GET | Service at https://nyc.electionapi.com/psl/version/1.0/contestlist?districtkey={DISTRICTKEY}&electionid={ELECTIONID} |
version/1.0/customerror | GET | Service at https://nyc.electionapi.com/psl/version/1.0/customerror |
version/1.0/languages/{code}/strings | GET | Service at https://nyc.electionapi.com/psl/version/1.0/languages/{CODE}/strings |
version/1.0/pollsiteinfo | GET | Service at https://nyc.electionapi.com/psl/version/1.0/pollsiteinfo?latitude={LATITUDE}&longitude={LONGITUDE}&county={COUNTY}&streetnumber={STREETNUMBER}&streetname={STREETNAME}&postalcode={POSTALCODE} |
Old API (beta version) for Backward Compatibility Only - Please use API above (Version 1.0) if possible
Uri | Method | Description |
---|---|---|
accountlanguages | GET | Service at https://nyc.electionapi.com/psl/accountlanguages |
accountlinks | GET | Service at https://nyc.electionapi.com/psl/accountlinks?lang={CODE} |
contestlist | GET | Not Supported |
customerror | GET | Service at https://nyc.electionapi.com/psl/customerror |
languages/{code}/strings | GET | Service at https://nyc.electionapi.com/psl/languages/{CODE}/strings |
pollsiteinfo | GET | Service at https://nyc.electionapi.com/psl/pollsiteinfo?latitude={LATITUDE}&longitude={LONGITUDE}&county={COUNTY}&streetnumber={STREETNUMBER}&streetname={STREETNAME}&postalcode={POSTALCODE} |