> ## Documentation Index
> Fetch the complete documentation index at: https://valaw.madebyjet.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Choosing a VALORANT API

> Official Riot VALORANT API vs. the unofficial HenrikDev API, and how valaw compares to pulsefire, RiotWatcher, and raw aiohttp for Python Discord bots and stats sites.

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

| | Official Riot API | HenrikDev API |
| - | - | - |
| Run by | Riot Games | A community developer (not affiliated with Riot) |
| Data source | Riot's public developer API | VALORANT's internal game-client APIs |
| Access | Riot production key, approved per product | Free key from the HenrikDev dashboard (requires joining their Discord) |
| Rate limits | Production keys start at 500 requests / 10 s and 30,000 / 10 min, per region | Basic keys are about 30 requests/min; higher tiers need review or a paid plan |
| Rank / MMR by Riot ID | No. Rank only appears per match (`competitiveTier`) and on the ranked leaderboards | Yes, including MMR history |
| Match history | Yes, full detail with round-by-round kills, damage, economy, and positions. Players must opt in through RSO | Yes, plus stored match history |
| Leaderboards, content, server status | Yes | Yes |
| Console (PlayStation, Xbox) | Yes | Yes |
| Stability | Versioned, documented, supported by Riot | Can break when Riot changes internal APIs; depends on one service staying up |
| Intended for | Public products that Riot reviews | Hobby and small projects. Its own docs say it's not intended for production use |

### 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](https://valaw.madebyjet.dev/guides/production-key.md).

### 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](https://github.com/Henrik-3/unofficial-valorant-api) before you build.

> [!NOTE]
>
> 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

| Library | Games | Style | Built-in rate limiting / caching | VALORANT coverage |
| - | - | - | - | - |
| **valaw** | VALORANT only | async (`aiohttp`), typed dataclasses | Rate limiting built in (see [Rate limits](https://valaw.madebyjet.dev/guides/rate-limits.md)); caching is up to you | Account, content, match, ranked, status, console, RSO link helper |
| [pulsefire](https://github.com/ianhco/pulsefire) | All Riot games | async, typed | Yes, via middleware | Content, match, ranked, status |
| [RiotWatcher](https://github.com/pseudonym117/Riot-Watcher) | Mostly League of Legends | sync (`requests`) | Yes, a basic rate limiter | Content and match |
| Raw `aiohttp` / `httpx` | Any | Whatever you write | Whatever you write | Whatever you write |

[Pyot](https://github.com/ianhco/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](https://valaw.madebyjet.dev/guides/raw-data.md).
* 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](https://valaw.madebyjet.dev/examples/discord-bot.md) 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

> [card] [Get a production key](https://valaw.madebyjet.dev/guides/production-key.md)
>
> What Riot asks for, and how to get approved.

> [card] [Build a Discord bot](https://valaw.madebyjet.dev/examples/discord-bot.md)
>
> A complete VALORANT bot with slash commands, caching, and RSO.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.