APIs and data
We have a number of API's and datasets that we will be releasing over the coming months.
Currency rate feed
This feed provides the latest exchange rates based on the euro. It is updated every day at 4:30PM UTC.
Here is an example of how to grab them in Python. Obviously you would want to do something with them afterwards like save them to a caching system or database.
import sys import urllib from xml.dom import minidom try: url = 'http://www.apricotwebsolutions.com/apis/currency/feeds/latest/' dom = minidom.parse(urllib.urlopen(url)) except IOError: sys.exit('Could not connect to service') for node in dom.getElementsByTagName('rate'): currency_code = node.getAttribute('currency_code') currency_name = node.getAttribute('currency_name') date = node.getAttribute('date') rate = node.childNodes.data
+44 (0) 333 444 9055
39 Hungerford Crescent