Posted by Steve
Monday, September 26, 2022 5:05 PM
I was looking around for a way to have my !rank command in chat automatically update in real-time with my Valorant rank. There are a couple of threads existing right now that are outdated (APIs are broken/403 errors)
Simple guide here, easy for anyone to understand! I know APIs can be a bit daunting for some <3
How to add custom commands in SE
- In StreamElements, Chatbot > Custom Commands in the sidebar
- When you've opened this page, Custom Commands > Add New Command
- Set the Command Name to something you want (i.e. !rank, !valorank, etc)
- Following section explains what you should put in "Response" to call your Valorant rank/elo - "$(urlfetch link)"
How to get Valorant API's output
This is the Valorant API link: https://api.kyroskoh.xyz/valorant/v1/mmr/REGION/NAME/TAG
Replace REGION, NAME, and TAG with your information
- REGION - EU, AP, NA, KR
- NAME/TAG = Your ingame name, e.g. Blue#Strim will be Blue/Strim
With your modified link, there are a few outputs you can have. Some common ones would be;
- Rank only ("Diamond 1.") $(urlfetch https://api.kyroskoh.xyz/valorant/v1/mmr/region/name/tag?show=rankonly&display=0)
- Rank and RR ("Diamond 1 - 78 RR.") $(urlfetch https://api.kyroskoh.xyz/valorant/v1/mmr/region/name/tag?show=combo&display=0)
- Name and Rank + RR ("Name#Tag (EU Region): Diamond 1 - 78 RR.") $(urlfetch https://api.kyroskoh.xyz/valorant/v1/mmr/region/name/tag?show=combo&display=1)
Copy and paste the code into the Response box. Much more explained in this link (credit goes to u/Passage-Special) https://community.nightdev.com/t/custom-api-valorant-mmr-rank-api-v1/30536
Hope this helps! 💙
References
- https://www.reddit.com/r/VALORANT/comments/xnyxsl/for_streamers_api_rank_command_for_valorant_in/
- https://reddit.com/xnyxsl
More Like This
Play to Phantom's strengths
Posted by Otto
Wednesday, January 20, 2021 1:43 PM
1v4 Ace Clutch All Headshots :)
Posted by Otto
Sunday, March 13, 2022 7:57 AM
Capture the portal
Posted by Otto
Tuesday, February 23, 2021 3:53 AM