Skip to main content

Fortnite Adapter

Idiomark adapter for extracting personality data from Fortnite player statistics and match history.

Features​

  • 🎯 Player statistics - K/D ratio, win rate, matches played
  • 🏆 Match history - Recent matches with placement and performance
  • 📊 Playstyle analysis - Aggressive, strategic, builder, etc.
  • 🎮 Mode preferences - Solo, Duo, Squad preferences
  • ⏱️ Time patterns - When and how much the player plays
  • 💡 Personality insights - Teamwork, persistence, creativity, competitiveness

Installation​

npm install @idiomark/adapter-fortnite

Usage​

import {
createFortniteAdapter,
fetchFortniteStats,
} from "@idiomark/adapter-fortnite";

// Basic usage
const adapter = createFortniteAdapter(
process.env.FORTNITE_API_KEY,
"player_username",
{ platform: "epic" },
);

// Fetch stats
const output = await adapter.getStructuredOutput({
includeMatches: true,
includeSolo: true,
includeDuo: true,
includeSquad: true,
limit: 100,
});

console.log(output.personalitySignals);

Using with CLI​

# Extract from Fortnite profile
idiomark extract --fortnite \
--api-key xxx \
--account-name player_username \
-o personality.json

# With options
idiomark extract --fortnite \
--api-key xxx \
--account-name player_username \
--platform epic \
--include-matches \
-o personality.json

Authentication​

API Key​

The Fortnite adapter uses third-party tracker APIs since Epic Games doesn't provide a public stats API.

Popular options:

  1. Register for an API key with your chosen tracker
  2. Use the API key when creating the adapter
const adapter = createFortniteAdapter(apiKey, "player_username");

Security Note​

Warning: Treat your Fortnite API key like a password. Never commit it to version control.

Personality Signals Extracted​

Gaming Style Analysis​

StyleK/D RangeIndicators
Aggressive3.0+High kills, low survival time
Strategic<1.5High placement, low deaths
Builder1.5-3.0Creative building patterns
Balanced1.5-3.0Mix of combat and building

Values Analysis​

  • Competitiveness - Based on K/D ratio and win rate
  • Teamwork - Duo/Squad win rate vs Solo
  • Strategic Thinking - Top 10 placement consistency
  • Persistence - Total matches played and hours logged
  • Creativity - Build/edit activity detected

Interests​

  • Favorite game modes (Solo, Duo, Squad)
  • Weapon preferences (AR, Shotgun, Sniper, etc.)
  • Map preferences
  • Playlist interests

Configuration Options​

OptionTypeDefaultDescription
apiKeystringrequiredAPI key from tracker service
accountNamestringrequiredPlayer username or Epic ID
platformstring'epic''epic', 'psn', 'xbl', or 'switch'
trackerUrlstringundefinedCustom tracker API URL
limitnumber100Max matches to fetch
includeMatchesbooleanfalseInclude match history
includeSolobooleantrueInclude solo mode stats
includeDuobooleantrueInclude duo mode stats
includeSquadbooleantrueInclude squad mode stats
includeCreativebooleanfalseInclude creative mode stats
startDateDateundefinedFilter matches from this date
endDateDateundefinedFilter matches until this date

Examples​

Analyze Player Performance​

const adapter = createFortniteAdapter(apiKey, "Ninja");

const output = await adapter.getStructuredOutput({
includeMatches: true,
limit: 50,
});

// Get performance metrics
console.log("K/D:", output.metadata.kd);
console.log("Win Rate:", `${(output.metadata.winRate * 100).toFixed(1)}%`);
console.log("Playstyle:", output.personalitySignals.gaming.playstyle);

Compare Solo vs Team Play​

const adapter = createFortniteAdapter(apiKey, "player_username");

const output = await adapter.getStructuredOutput({
includeSolo: true,
includeDuo: true,
includeSquad: true,
});

const teamwork = output.personalitySignals.values.teamwork;
console.log(`Teamwork Score: ${(teamwork * 100).toFixed(0)}%`);

Rate Limits​

  • 60 requests per minute (varies by tracker API)
  • Automatic retry with exponential backoff when rate limited

Notes​

  • Epic Games does not provide a public API for player statistics
  • This adapter uses third-party tracker APIs which may have their own rate limits
  • Match history availability depends on the tracker service
  • Some platforms (PSN, XBL) may have limited data access

License​

MIT