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.- Display realtime minimum, maximum and average prices on your website
- Easy to integrate data feed
- Results refined by either postcode, town name, or county
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:
- search_type - valid values are: postcode, town, county
- search_value - example values: gu124rq, aldershot, hampshire
You may alter the way national averages look by using the following parameters:
- types - fuel types you would like to display (e.g. unleaded|diesel|super+unleaded)
- title - heading you would prefer to use (e.g. National+Average+Prices)
- simple - if set to 'true', will only display the average and not min. and max. values.
An additional argument of target may be added to the include specifying where the PetrolPrice.com link should open. To open the link in a new window the argument should be target=_blank. By default the link will open in the same window.
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.