Legislative Lookup: Updated with 113th Congress for 2013!

API Documentation

Mobile Commons Legislative Lookup 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:


    <?xml version="1.0" encoding="UTF-8"?>
        <display_name>NY 66th</display_name>
        <display_name>NY 10th</display_name>
        <display_name>NY 26th</display_name>

If no latitude and longitude is supplied:


    <?xml version="1.0" encoding="UTF-8"?>
      <error>Must supply lat and lng parameters</error>

If the latitude and longitude is outside of the United States, and does not match any legislative district geographies:


    <?xml version="1.0" encoding="UTF-8"?>
      <error>No district found</error>