ボットにできること
/stats コマンド
/api/v1/account/displayName/{name} でディスプレイネームを解決し、/api/v2/stats/{accountId} で戦績を取得
ショップの日次投稿
毎日 0:00 UTC に GET /api/v1/shop で本日のラインナップを自動投稿
/news コマンド
/api/v1/news/br でバトルロイヤル・世界を救え・クリエイティブの最新ニュースを投稿
/weapons コマンド
/api/v2/weapons で武器ステータスを表示(category・gamemode フィルター対応)
/cosmetic 検索
/api/v2/cosmetics/search?q=Raven のように名前でスキンを検索
/season コマンド
/api/v1/season で現行シーズンの情報と日程を表示
Stats コマンド — コードはわずか 10 行
// Step 1: resolve display name → Epic account ID
const accountRes = await fetch(
`https://prod.api-fortnite.com/api/v1/account/displayName/${username}`,
{ headers: { "x-api-key": API_KEY } }
);
const account = await accountRes.json();
// Step 2: fetch stats
const statsRes = await fetch(
`https://prod.api-fortnite.com/api/v2/stats/${account.id}`,
{ headers: { "x-api-key": API_KEY } }
);
const stats = await statsRes.json();
await interaction.reply(`Stats loaded for **${username}**!`);対応エンドポイント
GET /api/v1/account/displayName/{name}ディスプレイネーム → アカウント ID の解決GET /api/v2/stats/{accountId}プレイヤー戦績POST /api/v2/stats/bulk複数プレイヤーの戦績を一括取得GET /api/v1/shop本日のアイテムショップ(type・rarity・search フィルター)GET /api/v1/news/brバトルロイヤルのゲーム内ニュースGET /api/v2/cosmetics/search名前でコスメティックを検索GET /api/v2/weapons武器ステータス(patch・category・gamemode)GET /api/v1/season現行シーズンの番号と日程GET /api/v2/stats/leaderboard/{stat}統計キー別のグローバルリーダーボードレート制限
ほとんどの Discord ボットには無料プランで十分です。大規模なサーバーや多数の同時リクエストを扱う場合は、Pro プラン(8.49 €/月、9.99 $、1499 ¥、7.49 £)で全エンドポイントを 1 日 500,000 リクエストまで利用できます。
プランを比較 →完全チュートリアル
セットアップ、スラッシュコマンド、日次 cron ジョブ、デプロイまでをステップごとに解説します。
フォートナイト Discord ボットの作り方 →