Developer API

Alpha This is a new service – your feedback will help us to improve it.

Election lookup widget

Embed our free lookup widget on your website, and give your users access to postcode specific information about voting in their area. By entering their postcode, your users can quickly access information on the following:

You can add the Electoral Commission’s election lookup widget to any website.

Here’s how the lookup widget will look on your site. Feel free to test it by entering a postcode, bearing in mind that we add data in the run up to the polls.

First, choose from the options below and hit ‘Generate’.

Lookup widget options

Then, use the code to embed the lookup widget in your website.


  <noscript>
    <a href="https://www.electoralcommission.org.uk/i-am-a/voter/your-election-information">
      Find election information at
      <span aria-label="The Electoral Commision">
      electoralcommission.org.uk</span>
    </a>
  </noscript>

  <div id="dc_wdiv" aria-live="polite" role="region"
    data-candidates="true">
  </div>
  <script type="text/javascript" src="https://api.electoralcommission.org.uk/widget/widget.js">
  </script>