Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty match data returned when searching for matches and teams from a specific league #2813

Open
anandmudgerikar opened this issue Dec 7, 2024 · 3 comments

Comments

@anandmudgerikar
Copy link

I am trying to build a ranking system for my amateur league and running into issues when loading match data for my league.

The api call for getting league info works fine:

request: https://api.opendota.com/api/leagues/16585
response: {'leagueid': 16585, 'ticket': None, 'banner': None, 'tier': 'excluded', 'name': 'AD2L Season 41'}

However, when trying to get matches and teams info for this league, the api returns empty responses.

request: https://api.opendota.com/api/leagues/16585/matches
response: []

request: https://api.opendota.com/api/leagues/16585/teams
response: []

I also checked that this is the case for other leagues, i tried different league ids but all empty.

@anandmudgerikar anandmudgerikar changed the title Empty match data returned on https://api.opendota.com/api/leagues/{league_id}/matches requests Empty match data returned when searching for matches and teams from a specific league Dec 7, 2024
@howardchung
Copy link
Member

We only track leagues with tier "premium" or "professional" (otherwise there are too many matches)

@anandmudgerikar
Copy link
Author

Gotcha. Any recommendations for getting this info some other way? I do see that all the league matches are marked with league_id, can I query the matches table directly?

@howardchung
Copy link
Member

The table will not contain the matches since we only insert if it's a tracked league.

If you have the match IDs, you can still query for individual match data/request parsing via the regular match data endpoints

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants