Live Data Feed Integration

In the tradition of providing our affiliate partners the best services available. Not only do we offer you the standard links, but also an easy to integrate search results display for use within your own site.

The table below shows an example of the data feed showing Aldershot petrol prices:

The information box shows the minimum, maximum and average prices for each type of petrol in the Aldershot area from the last update. The area can easily be changed to suit your needs, if for example you want to show price data in a particular postcode, or county.

Here is the code required to generate the box used above: <link rel="stylesheet" type="text/css" href="http://www.petrolprices.com/feeds/averages.css" /> <script type="text/javascript" src="http://www.petrolprices.com/feeds/averages-basic.php?search_type=town&search_value=aldershot"></script> You may change the following variables in the javascript include: Calling the javascript without a search_type argument will return the average prices for the whole of the UK.

Affiliates may add an additional argument to the javascript include, ref, with their affiliate ID to earn credit for any signups made through the link in the data feed.

Advanced users may wish to change the style of the data feed box by excluding the stylesheet link in the above text and setting styles in their own stylesheet. Our stylesheet may be used as an example, and can be viewed here.