Remove this ad
avatar

ossi

rookie botter

Posts: 16 Member Since: June 12, 2008

Lead

July 6, 2012 08:27:28

Tags : :


Hi guys,

I was changing some code this morning and I decided to use a new url for retrieving data from Betfair. The URL is http://uk-api.betfair.com/www/sports/exchange/readonly/v1.0/bymarket? and I suddenly realised that the param marketids is plural so with mounting excitement I entered marketIds=1.106044240,1.106044222 and lo and behold, I got the data returned for both events. How cool is that I thought, but then I started wandering if Betfair will count this as a single call or will they charge me once for each eventid in the url? So what I am wondering is: if I make a request with 10 eventids, will I be restricted to 1 of these requests per second or 10 of them per second before I have to start paying Betfair for the number of requests?

The second question I have is; Another parameter in this URL is types that is in the form &types=MARKET_STATE%2CMARKET_RATES%2CMARKET_DESCRIPTION%2CEVENT%2CRUNNER_DESCRIPTION%2CRUNNER_STATE%2CRUNNER_EXCHANGE_PRICES_BEST%2CRUNNER_METADATA
Does anyone know if there are any other types of data one could request in the same call? Current bets would be nice :-)

Thank you in advance for any feed back

Ossi


I should have mentioned, I did search for an answer and the closest I came (so far) is http://jhw.github.com/blog/2012/05/10/betfair-unofficial-json-api/ who is only aware of the types I mentioned above.

Quote    Reply   
Remove this ad
Remove this ad
avatar

birchy

Betfair Elite

Posts: 591 Member Since:May 11, 2008

#1 [url]

July 12, 2012 18:24:14

That is obviously the first stages of the "universal" API I suggested on the BDP forum a couple of years ago. I believe they're standardizing to a JSON format so that all servers output the same information and the various front-ends will be rendered client-side. Then there will be a "direct access" API that gives us raw JSON to play with. There will no longer be any "advantage" to scraping the website vs using the API. Will be interesting to see what they do with the API subscriptions - I think it will be totally free but restricted like Betdaq.

As for your other questions, I don't think many people use web scraping any more since the Free API has reasonable limits nowadays. If I were you, I would email bdp@betfair.com. Neil is surprisingly helpful and will more than likely answer your questions better than anyone on here can.

www.bespokebots.com

"This time next year Rodney, we'll be millionaires!"

Quote    Reply   
avatar

ossi

rookie botter

Posts: 16 Member Since:June 12, 2008

#2 [url]

July 13, 2012 20:23:40

Thanks for the reply. I will try asking BF directly. 
As for your comment that the Free API has reasonable limits...I am not aware that anything has changed in as far as I can not get more then 60 market prices per minute. Scraping gives me 600 requests in the same time frame. I do not see anywhere that the limits have changed.

Once more, thanks for the response.

Ossi

Quote    Reply   
avatar

ossi

rookie botter

Posts: 16 Member Since:June 12, 2008

#4 [url]

July 17, 2012 18:31:15

I got a reply from Neil at BF today and for anyone else interested, here it is:

Each marketId included in the request URL will be counted as one request for the purpose of calculating the data request charge.

There isn't any specific documentation available for use if the URL via the Betfair website.  However, we are in the process of creating the next version of the Betfair API which will be along similar lines.


Ossi

Quote    Reply   
avatar

jptrader

rookie botter

Posts: 3 Member Since:August 13, 2012

#5 [url]

August 14, 2012 07:53:56

Implemented this, and made it work for markets on UK exchange. Anyone made it work on australian markets?

JP

Quote    Reply   
Remove this ad
avatar

ossi

rookie botter

Posts: 16 Member Since:June 12, 2008

#6 [url]

August 14, 2012 11:13:51

Have not beenable to get it towork on AU markets yet.
Something to bear in mind though, each eventid in the request counts as a hit, so unless you are an API subscriber, you are restricted to 10 per second. Neil at bf confirmed this last week.

Ossi

Quote    Reply   
avatar

vonnch

rookie botter

Posts: 24 Member Since:November 24, 2013

#9 [url]

January 8, 2015 17:40:45

Wait a few months and we will have a JSON format API. 


Hi. I couldn't find any release notes on this but is this already release? I let to check the link if there's one already please.image

Last Edited By: vonnch January 8, 2015 17:51:58. Edited 2 times.

Quote    Reply   
avatar

birchy

Betfair Elite

Posts: 591 Member Since:May 11, 2008

#10 [url]

January 9, 2015 12:32:18

vonnch wrote:

Vonnch, you have replied to a 2.5 year old thread. We were referring to the JSON API which has now been released as API-NG...
Please try to avoid bumping old conversations as it only causes confusion. Thanks.

www.bespokebots.com

"This time next year Rodney, we'll be millionaires!"

Quote    Reply   
Remove this ad
Add Reply

Quick Reply

bbcode help