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

Fetching only parsed ranked games #2840

Open
batukav opened this issue Feb 3, 2025 · 5 comments
Open

Fetching only parsed ranked games #2840

batukav opened this issue Feb 3, 2025 · 5 comments

Comments

@batukav
Copy link

batukav commented Feb 3, 2025

Hi all,

I was wondering if there's a simple way to fetch the parsed ranked games, similar to the parsedMatches endpoint.

My current solution is to use GET /parsedMatches to get last parsed 100 game ids, use GET /matches/{match_id} to get the games by id, and then filter out by the game mode. However, after the filtering I generally end up with only a few ranked games and this feels like a wasteful way to find data only for the ranked games.

Cheers

@howardchung
Copy link
Member

We don't currently support filters on the parsed match list unfortunately

@batukav
Copy link
Author

batukav commented Feb 3, 2025 via email

@howardchung
Copy link
Member

Yes, happy to discuss potential implementations! Quick possiblity would probably be a new column in parsed_matches that has the game_mode and then insert the game_mode when we populate the field + add a query param to filter on game mode.

An alternative would be to gather your list of ranked match IDs separately and then request parses for those matches.

@batukav
Copy link
Author

batukav commented Feb 3, 2025

Great! I had something similar to your first suggestion in mind. You can assign this issue to me, if you want. I should have time in the upcoming days to create the pull request.

An alternative would be to gather your list of ranked match IDs separately and then request parses for those matches.

That'd work but how do I get the ranked match IDs separately using the API? I'm interested in analysing at least a few thousand games so manually creating a list out of option for me.

@howardchung
Copy link
Member

The publicMatches endpoint does have a rank filter so you could probably use that

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