andrewsnowden / dota2py

Python tools for Dota 2
MIT License
115 stars 36 forks source link

Number of matches requested #17

Open DrunkDutch opened 9 years ago

DrunkDutch commented 9 years ago

Quick question regarding get_match_history, it seems to limit the matches_requested to 100, is there anyway to expand that to a higher limit or is it a fault on my part

djmorrsee commented 9 years ago

It's a limit of the API, the max is 100 matches returned.

A work around is to do multiple requests. Use the 'start_at_match_id' parameter with the id of the earliest match in the batch of 100 you get.

DrunkDutch commented 9 years ago

Yeah, I realized that, it's just that all the documentation on hand, including the one linked too in the readme still has it listed as 25 games per request.

On Sat, Mar 7, 2015 at 11:24 PM, Daniel Morrissey notifications@github.com wrote:

It's a limit of the API, the max is 100 matches returned.

A work around is to do multiple requests. Use the 'start_at_match_id' parameter with the id of the earliest match in the batch of 100 you get.

— Reply to this email directly or view it on GitHub https://github.com/andrewsnowden/dota2py/issues/17#issuecomment-77732474 .