Very difficult javascript/Ajax extraction using PHP

Hi, i need to make a web aplication that is able to get the contents from a webpage, the problem is almost the entire website is in ajax and i need to get an specific data and the only way to access there is inserting a javascript command.

The traditional way is to copy the webpage contents but i need to copy them after the ajax loads the info i’m looking for.

Please Help me!

I’m using javascript, php and curl is possible to make something to get that info?

Why exactly can’t you get the data directly from where their javascript gets it from? If they are accessing a php file go directly to that part in their source and grab the data with php (JS, may have security things grabbing stuff from another domain in that way).

the site is betfair.com, is using java not php