aomstats can be used to create a !rank command for stream chats. You can use the following template url to create a custom url command for your channel: aomstats.io/api/twitch/profile/<profile_id>
Simply replace <profile_id> with your profile id. To find your profile id go the Leaderboard page , search for your profile, and copy the profile id from the url. A full url will look like: aomstats.io/api/twitch/profile/1073837713
This url will output text that can be used by chatbots. An example:
Username is currently rank 45 in Sup 1v1 with a rating of 1561. 289 games, 56.40% win rate, 163W 126L
You can append a leaderboard id (1, 2, 3, 4) to the url to get the rank for different ranked ladders, Supremacy 1v1, Supremacy Team, Deathmatch 1v1, and Deathmatch Team, respectively. For example this link would get Nakamura's deathmatch 1v1 rank and info: aomstats.io/api/twitch/profile/1073744200?leaderboard=3
Once you have your personalized url, you can use it with your chatbot to create a !rank command. Many chatbots have special keywords that will fetch content from a url for a command. For example, Nightbot has urlfetch .
Using Nightbot as an example, you can set up a custom !rank command like so:
Using this command in a Twitch chat would then look like: