We’ve rolled out a little extra functionality on our political markets for any hackers out there. You can now get live prices for any of our political markets in either JSON or XML. For example:

The “overall majority” market as JSON is: http://api.smarkets.com/v1/markets/2gvp44k

Or the “Will the BNP win a seat” market in XML is: http://api.smarkets.com/v1/markets/2gvqip0.xml

Simply browse to any political market and view the source to see the link for that market. It’ll look something like this:

<link rel="alternate quotes"
    href="http://api.smarkets.com/v1/markets/2nktxr8"
    title="Clegg TV wins" type="application/json">
<link rel="alternate quotes"
    href="http://api.smarkets.com/v1/markets/2nktxr8.xml"
    title="Clegg TV wins" type="text/xml">

We have a much richer API in development so this is just a peek at the functionality to come. Have fun with our data, we’d love to see what you come up with. Let us know any feedback.

Follow

Get every new post delivered to your Inbox.