Horse Racing Data Feeds

Horse racing data feeds offer a wide range of structured data from live results to statistics, race fixtures and race cards. You can check the advantages of including different types of data feeds from XML, CSV, RSS to widgets, with pros and cons for each implementation, but this article we will show you how to get implemented in your web pages a few free sources of horse racing data and also get better SEO results.
 horse racing

RacingStats247.com is the data provider in our examples below. It offers different data implementations like iframe widgets & white labels or RSS feeds, but in this article we will focus on showing you how to include RSS data in your website content in a way that both offers useful updated content in your pages and also adds value to your SEO work as the content will be seen as originating from your own website.

Below RSS implementations require some simple PHP codes implementations, therefore in order for the code to be run in your website, the pages should be either .php or, in the case of .html / .htm file, you  will have to tell your server to run PHP code in such files using a simple command in your .htaccess file.

Race Results per Racecourse

To show the latest race results from individual racecourses you can use the following code:

Implementation:

  1. Copy the above code in a Notepad file for edit
  2. Visit RacingStats247 RSS Feeds page, go to the Racecourse RSS Feed section and select the country of desired racecourse and the racecourse you are interested in to get the latest results
  3. Copy the link provided on Step 2 and Paste it in the Notepad file, on line 3, at the $url variable (changing the other link provided as example there between “”)
  4. In the Notepad file go line 5 where you have $i < 8. You can change here the value of 8 in another number as this will be the number of races showed by the code with results
  5. On line 10, you should also change the “Aintree” with the name of the racecourse you are pulling the feed for so that it shows the correct name in your results (ex you may change this to Cheltenham if you are pulling results for Cheltenham racetrack)
  6. Copy the code from the Notepad file to the page where you want to show the latest match results and make sure the page is set to run the PHP code implemented. Upload the page on your web hosting account.
  7. Recommended to list the source of the data provided by including on your website a link to RacingStats247.com

Leave a Reply