Elections PEI API

Peter Rukavina

Today’s project: providing access in XML to data about provincial electoral districts and polling divisions from Elections PEI via the Elections PEI API. The API saw initial use last year when we exposed municipal election ward and poll information; it’s now been extended to cover provincial election data as well.

Through the API you can get programmatic access to things like:

It’s a simple REST API that associates each of the electoral district’s regular HTML web pages with an equivalent XML page. So the regular old human-readable page of information about District 12, Poll 5 at:

http://www.electionspei.ca/provincial/districts/district12/poll5

Has its XML cousin at:

http://www.electionspei.ca/xml/provincial/districts/district12/poll5

The development of the API with Elections PEI is a long-term effort and will continue; as such, we welcome feedback to api@electionspei.ca about how it meets, or does not meet, your data needs.

Add new comment

Plain text

  • Allowed HTML tags: <b> <i> <em> <strong> <blockquote> <code> <ul> <ol> <li>
  • Lines and paragraphs break automatically.

About This Blog

Photo of Peter RukavinaI am . I am a writer, letterpress printer, and a curious person.

To learn more about me, read my /nowlook at my bio, listen to audio I’ve posted, read presentations and speeches I’ve written, or get in touch (peter@rukavina.net is the quickest way). 

You can subscribe to an RSS feed of posts, an RSS feed of comments, or a podcast RSS feed that just contains audio posts. You can also receive a daily digests of posts by email.

Search