data_object NPM Package • R6 API Wrapper

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.

verified Full TypeScript

Typed parameters and responses to build safely and faster.

bolt High-level SDK

Simple methods like r6.players.getPlayerStats() and r6.game.getMaps().

public Built for R6 apps

Ideal for stats trackers, dashboards, Discord bots, and tooling.

security 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.

  • check_circle Typed parameters in TypeScript.
  • check_circle Use nameOnPlatform and platformType to 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.

  • check_circle Supports pc and console via platform_families.
  • check_circle Filter by ranked, casual, event and 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.

  • check_circle Works with maps, operators, seasons, weapons, charms, skins and more.
  • check_circle 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.

  • check_circle Automatically formats Ubisoft + Steam data for a clean Discord output.
  • check_circle 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_in_new Open Package Docs