Go Back   Developer Program Forum > Sports API > PHP

PHP Discussions about the widely-used general-purpose scripting language PHP that is especially suited for Web development and can be embedded into HTML.

Post Reply
Thread Tools Display Modes
Old 03-18-2010, 01:38 PM
st693ava st693ava is offline
Junior Member
Join Date: Mar 2010
Posts: 7
Default betfair live score


I'am using the free api and i want know how can i obtain the game result in live game.

For Example Manchester United 2 - 0 Liverpool

Old 03-22-2010, 12:45 PM
Mr Stokes's Avatar
Mr Stokes Mr Stokes is offline
BDP Team
Join Date: Oct 2008
Posts: 63


Unfortunately, there is no way to access live score or result information via the Betfair API.

Old 03-25-2010, 06:36 PM
st693ava st693ava is offline
Junior Member
Join Date: Mar 2010
Posts: 7

Thanks Mr. Stokes.

Do you have any other idea how to obtain the soccer game results in play?
Do you know any free service?

Old 06-21-2010, 09:02 PM
threesixes threesixes is offline
Junior Member
Join Date: May 2010
Posts: 8

I use soccerway.com
Old 07-24-2014, 05:09 PM
stoneobias1 stoneobias1 is offline
Junior Member
Join Date: Jul 2014
Posts: 1

I use sportsstand . com
Old 09-23-2014, 12:33 PM
krtz104 krtz104 is offline
Junior Member
Join Date: Oct 2012
Posts: 1
Default live match scroe code

Might help someone. I use this code to get the score from live matches so I don't have to intervene with my bot's score based logic. It's messy but works ok. Hoping they add this information to the API soon as it takes around 3 seconds to load the score using a GET:

$EventID = ""; // Event ID

// Get match page
$get_prices = file_get_contents("http://www.betfair.com/exchange/football/event?id=$EventID&exp=e");
$get_prices = strip_tags($get_prices);

// Get current score
$score = explode("Elapsed", $get_prices);
$score = explode("viewportSizeWide\"", $score[0]);
$score = explode(";", $score[1]);
$score = explode("|", $score[1]);
$score = trim(preg_replace('/\s\s+/', '', $score[1]));

$score1 = $score2 = 0;
if( preg_match("/ - /", $score) ) {
	$score = explode(" - ", $score);
	$score1 = substr ( $score[0], -1 );
	$score2 = substr ( $score[1], 0, 1 );
Post Reply

live game result

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Any API to get football score in real time? javadev Betfair Sports API - API NG 5 06-01-2010 02:56 PM
Live score feeds debapriyapal84 Betfair Sports API - API NG 9 03-29-2010 11:44 AM
BF For Live Betting Vreljanski .NET 4 02-05-2010 11:28 AM
Bet in live learsi1 Betfair Sports API - API NG 1 11-04-2009 08:58 AM
Football Score Feed TheSheriff Betfair Sports API - API NG 0 09-18-2009 09:11 AM

All times are GMT. The time now is 12:33 PM.

BETFAIR® and the BETFAIR LOGO are registered trade marks of The Sporting Exchange Limited. Data on Betfair website(s) (including pricing data) is protected by © and database rights. It may not be used for any purpose without a licence. © The Sporting Exchange Limited. All rights reserved.