odota / core

Open source Dota 2 data platform
https://www.opendota.com
MIT License
1.51k stars 300 forks source link

Incorrect api response #2756

Closed Madcrossbiz closed 6 months ago

Madcrossbiz commented 6 months ago

Is everything okay with this API (https://api.opendota.com/api/leagues/{league_id}/matches)? There's either an empty array or a completely different response, not like the one you've shown here:

json Copy code { "match_id": 3703866531, "duration": 0, "start_time": 0, "radiant_team_id": 0, "radiant_name": "string", "dire_team_id": 0, "dire_name": "string", "leagueid": 0, "league_name": "string", "series_id": 0, "series_type": 0, "radiant_score": 0, "dire_score": 0, "radiant_win": true, "radiant": true }

Example with league id https://api.opendota.com/api/leagues/16169/matches

howardchung commented 6 months ago

I think we only documented a subset of the returned fields. But the intent of this endpoint is to return match IDs, so we could probably reduce the amount of data loaded

Madcrossbiz commented 6 months ago

I think we only documented a subset of the returned fields. But the intent of this endpoint is to return match IDs, so we could probably reduce the amount of data loaded

Please just provide the information that is specified in your API documentation. Currently, there is unnecessary and incorrect information there. We need information about league matches, specifically who is playing whom and when, not the logs of the match itself...