Soccer Data Feeds
SoccerStats247.com is the data provider in our below examples and while it offers different data implementations like iframe widgets & white labels or widget feeds, we will show you how to include valuable data in your website content in a way that both offers useful updated content in your pages but also creates a good SEO value as the content is seen as originating from your own website.
Below widget implementations are done with some simple PHP codes implementations, therefore in order for the code to be run in your website, the pages should be either .php or, if .html / .htm, you need to tell your hosting server using the .htaccess to run PHP code within such web files.
Match Results per Soccer Competition
To show the latest match results from a soccer competition you can use the following code:
Show Match Results for Competition
$html = “”;
$url = “http://www.soccerstats247.com/MatchResultsRssWidget.aspx?langId=1&leagueId=1204”;
$xml = simplexml_load_file($url);
$description = $xml->channel->item->description;
$html .= “$description”;
echo $html;
?></div>
Implementation:
Above code will show the results for Premier League England. To implement the widget-code, simply copy the above code in your webpage html source code where you want the data to be shown
- Visit SoccerStats247 Widgets page, go to the Widget Code Generator section and select the language you want the data to be provided in and “Match Results”, following a selection of the competition you are interested in to get the latest results
- Copy the code provided on widget-code generation and paste it within your webpage source code where you wish the match results to appear
- Make sure the page is set to run the PHP code implemented. Upload the page on your web hosting account. Check soccer widgets page from WidgetLab for more info such as some hosting requirements and implementation options for other platforms like WordPress or Joomla
- Recommended to list the source of the data provided by including on your website a link to SoccerStats247.com
Match Results for Individual Team
To show the latest match results for a single team from a soccer competition you can use the following code:
Show Match Results for Team
$html = “”;
$url = “http://www.soccerstats247.com/TeamMatchesRssWidget.aspx?langId=1&teamId=9002”;
$xml = simplexml_load_file($url);
$description = $xml->channel->item->description;
$html .= “$description”;
echo $html;
?></div>
Implementation:
Above code will show the results for Arsenal in the Premier League England. To implement the widget-code, simply copy the above code in your webpage html source code where you want the data to be shown
- Visit SoccerStats247 Widgets page, go to the Widget Code Generator section and select the language you want the data to be provided in and “Team Matches”, following a selection of the competition and the team you are interested in to get the latest results
- Copy the code provided on widget-code generation and paste it within your webpage source code where you wish the match results to appear
- Make sure the page is set to run the PHP code implemented. Upload the page on your web hosting account. Check soccer widgets page from WidgetLab for more info such as some hosting requirements and implementation options for other platforms like WordPress or Joomla
- Recommended to list the source of the data provided by including on your website a link to SoccerStats247.com
Pre-Match Predictions per Soccer Competition
To show the pre-match predictions for games from a soccer competition you can use the following code:
Show Match Results for Team
$html = “”;
$url = “http://www.soccerstats247.com/MatchProbabilitiesRssWidget.aspx?langId=1&leagueId=1204”;
$xml = simplexml_load_file($url);
$description = $xml->channel->item->description;
$html .= “$description”;
echo $html;
?></div>
Above code will show the pre-match predictions for Premier League England. To implement the widget-code, simply copy the above code in your webpage html source code where you want the data to be shown
- Visit SoccerStats247 Widgets page, go to the Widget Code Generator section and select the language you want the data to be provided in and “Match Probabilities”, following a selection of the competition you are interested in to get the upcoming predictions. Predictions provided for up to 5 days in advance.
- Copy the code provided on widget-code generation and paste it within your webpage source code where you wish the match results to appear
- Make sure the page is set to run the PHP code implemented. Upload the page on your web hosting account. Check soccer widgets page from WidgetLab for more info such as some hosting requirements and implementation options for other platforms like WordPress or Joomla
- Recommended to list the source of the data provided by including on your website a link to SoccerStats247.com