Legislative Lookup
API Documentation
This web service matches a latitude and longitude with the congressional and state legislative districts for that location. It is provided free of charge with no warranty. If you use this service please cache your responses and behave responsibly. If you plan to send more than a few thousand queries per day, let us know via the list before you start.
Join our low volume mailing list for advance notice of API changes or to ask a question.
Source code is available under an MIT License at http://github.com/mcommons/legislative-lookup.
A query for a latitude and longitude: http://congress.mcommons.com/districts/lookup.xml?lat=40.7145248&lng=-74.007073
If no latitude and longitude is supplied: http://congress.mcommons.com/districts/lookup.xml
If the latitude and longitude is outside of the United States, and does not match any legislative district geographies: http://congress.mcommons.com/districts/lookup.xml?lat=64.835054&lng=147.646528