Skip to main content
If you’re building a VALORANT Discord bot, stats site, or tool in Python, you have two decisions to make:
  1. Which API: Riot’s official VALORANT API, or the unofficial HenrikDev API.
  2. Which Python library to call it with.
This page compares both as fairly as we can. valaw only wraps the official API, so if HenrikDev fits your project better, use HenrikDev.

Official API vs. HenrikDev

Use the official API when

  • You’re building something public that you want to last: a Discord bot in many servers, a website, or an app.
  • You need detailed match data, such as round-by-round stats, kill positions, or economy.
  • You want guaranteed, versioned behavior and Riot’s approval behind your product.
The cost is setup time. You need a production key, and Riot requires players to opt in through Riot Sign On (RSO) before you can show their match history. See Getting a production key.

Use HenrikDev when

  • You need a player’s current rank or MMR from just their Riot ID. The official API doesn’t offer this.
  • You’re prototyping, or building something for your friends’ server, and don’t want to wait for Riot’s review.
  • You can accept that the API may change or go down without notice.
HenrikDev has its own rules: it requires user consent, and it bans large analytics projects, public store checkers, and showing hidden names. Read them in the HenrikDev repository before you build.
Whichever you choose, Riot’s general policies still apply to your product. For example, you can’t identify players who chose to hide their name.

Python libraries for the official API

Pyot is archived. Its author recommends pulsefire instead.

Pick valaw if

  • You only need VALORANT and want a small, focused library that’s easy to read.
  • You’re writing async code, such as a discord.py bot, FastAPI, or aiohttp.
  • You want typed objects with IDE autocomplete (match.players[0].stats.kills) instead of raw dictionaries. Raw dicts are still one flag away.
  • You need console endpoints or RSO helpers.

Pick something else if

  • You also need League of Legends or TFT data: use pulsefire, so one library covers every game.
  • You want caching handled for you: pulsefire has caching middleware. valaw handles rate limits, but caching is up to you, as the Discord bot example shows.
  • Your code is synchronous: RiotWatcher is sync, though its VALORANT support is limited to content and match.
  • You only call one or two endpoints: raw aiohttp with X-Riot-Token is fine. You’ll write the URL routing, error handling, and response parsing yourself.

Next steps

Get a production key

What Riot asks for, and how to get approved.

Build a Discord bot

A complete VALORANT bot with slash commands, caching, and RSO.