Betfair Developers


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
st693ava st693ava is offline
Junior Member
 
Default betfair live score

Hi BDP.

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

Thanks.
Mr Stokes's Avatar
Mr Stokes Mr Stokes is offline
BDP Team
 
Default

Hi,

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

MS
st693ava st693ava is offline
Junior Member
 
Default

Thanks Mr. Stokes.

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

Thanks
threesixes threesixes is offline
Junior Member
 
Default

I use soccerway.com
stoneobias1 stoneobias1 is offline
Junior Member
 
Default

I use sportsstand . com
krtz104 krtz104 is offline
Junior Member
 
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:

Code:
$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

Tags
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 Exchange API 5 01-06-2010 03:56 PM
Live score feeds debapriyapal84 Exchange API 9 29-03-2010 12:44 PM
BF For Live Betting Vreljanski .NET 4 05-02-2010 12:28 PM
Bet in live learsi1 Exchange API 1 04-11-2009 09:58 AM
Football Score Feed TheSheriff Exchange API 0 18-09-2009 10:11 AM