R6-Data.js
A developer-first Rainbow Six Siege API wrapper for Node.js with full TypeScript support. Fetch R6 player stats, ranks, operators, maps, seasons, cosmetics, and more.
Full TypeScript
Typed parameters and responses to build safely and faster.
High-level SDK
Simple methods like r6.players.getPlayerStats() and r6.game.getMaps().
Built for R6 apps
Ideal for stats trackers, dashboards, Discord bots, and tooling.
API key based
Register on r6data.eu to generate an API key.
Quickstart
Install the package and initialize R6Client. Then call typed methods to fetch stats and game metadata.
Install
npm i r6-data.js
Initialize
const { R6Client } = require('r6-data.js');
const r6 = new R6Client({
apiKey: 'YOUR_API_KEY'
});
Examples
Copy-paste ready snippets to build a Rainbow Six API powered app in minutes.
Get account info
Retrieve player profile data from the official Rainbow Six Siege API.
- Typed parameters in TypeScript.
-
Use
nameOnPlatformandplatformTypeto identify the account.
const accountInfo = await r6.players.getAccountInfo({
nameOnPlatform: 'PlayerName',
platformType: 'uplay'
});
Get ranked stats
Fetch detailed gameplay stats and filter by mode using board_id.
-
Supports
pcandconsoleviaplatform_families. -
Filter by
ranked,casual,eventand more.
const rankedStats = await r6.players.getPlayerStats({
nameOnPlatform: 'PlayerName',
platformType: 'uplay',
platform_families: 'pc',
board_id: 'ranked'
});
Filter maps and operators
Query game metadata with optional filters to build databases, search and tooling.
- Works with maps, operators, seasons, weapons, charms, skins and more.
- Composable filters to match your UI needs.
const mapsByPlaylist = await r6.game.getMaps({ playlists: 'ranked' });
const ash = await r6.game.getOperators({ name: 'Ash' });
const blackIce = await r6.game.getSeasons({ name: 'Black Ice' });
Discord webhook embed
Send Rainbow Six Siege stats directly to Discord in rich embeds.
- Automatically formats Ubisoft + Steam data for a clean Discord output.
- Perfect for Discord bots and community servers.
const playerStats = await r6.players.getPlayerStats({
nameOnPlatform: 'PlayerName',
platformType: 'uplay',
platform_families: 'pc'
});
await r6.webhooks.createDiscordR6Webhook(
'https://discord.com/api/webhooks/YOUR_WEBHOOK_ID/YOUR_WEBHOOK_TOKEN',
playerStats,
{
playerName: 'PlayerName',
title: 'Rainbow Six Siege Stats',
message: 'Here are the latest R6 stats!',
color: 0xF99E1A
}
);
Looking for the full method list?
Browse the complete documentation for R6-Data.js, including usage notes and examples for all resources.
Open Package Docs