Gaming | TrackerGG | Fortnite + Marvel Rivals + Warzone
Pricing
Pay per usage
Go to Apify Store
Under maintenance
Gaming | TrackerGG | Fortnite + Marvel Rivals + Warzone
Scrape by gaming ID
Pricing
Pay per usage
Rating
0.0
(0)
Developer

Eshaam Rabaney
Maintained by Community
Actor stats
0
Bookmarked
2
Total users
1
Monthly active users
5 days ago
Last modified
Share
๐ฎ AI-Powered Multi-Game Stats Scraper
A powerful, robust Apify Actor that extracts player statistics from various gaming tracker websites (Tracker.gg, FortniteTracker, etc.) using Playwright for navigation and OpenAI GPT-4o for intelligent data parsing.
โจ Features
- Multi-Game Support: Currently supports Warzone, Fortnite, and Marvel Rivals.
- Intelligent Parsing: Uses OpenAI (GPT-4o) to extract structured JSON data from raw text dumps, making it resilient to minor UI changes on target sites.
- Smart Navigation:
- Direct Mode: Constructs direct profile URLs when platforms are known.
- Search Mode: Handles complex single-page application (SPA) search forms (including Vue.js event handling) for finding users manually.
- Anti-Blocking: Optimized to handle consent popups, resource blocking (fonts/media), and platform selection dropdowns.
- Residential Proxy Ready: Configured to work seamlessly with Apify's residential proxy groups.
๐ How It Works
- Input: Accepts a list of players, their platforms, and the games to scrape.
- Navigation: The crawler attempts to visit the profile directly. If that fails (or is impossible), it uses an automated search strategy (typing, platform selection, Enter/Click simulation).
- Extraction: Once on the profile page, the HTML content is captured.
- AI Processing: The raw content is sent to OpenAI with a strict system prompt to extract specific stats (K/D, Win Rate, Matches, etc.).
- Output: Returns a clean JSON dataset.
๐ฆ Installation & Usage
Prerequisites
- Node.js (v16+)
- An Apify Account (for Proxy and Actor runtime)
- An OpenAI API Key
Local Development
-
Clone the repository:
git clone [https://github.com/your-username/game-stats-scraper.git](https://github.com/your-username/game-stats-scraper.git)cd game-stats-scraper -
Install dependencies:
$npm install -
Set Environment Variables: Create a
.envfile in the root directory:OPENAI_API_KEY=sk-your-openai-key-here -
Configure Input: Modify the
INPUT.jsonfile instorage/key_value_stores/default/(or create a custom input file):{"maxConcurrency": 2,"players": [{"username": "Ninja","platform": "pc","games": ["fortnite"]},{"username": "Symfuhny","platform": "psn","games": ["warzone"]}],"proxyConfiguration": {"useApifyProxy": true}} -
Run the Actor:
$npm start
๐ Input Schema
The actor expects a JSON input object with the following structure:
| Field | Type | Description |
|---|---|---|
players | Array | Required. List of player objects to scrape. |
maxConcurrency | Number | Maximum number of concurrent pages to open (1-5). |
proxyConfiguration | Object | Apify Proxy configuration (Residential recommended). |
Player Object:
{"status": "success","game": "warzone","user": "Symfuhny","url": "[https://tracker.gg/warzone/profile/psn/Symfuhny/overview](https://tracker.gg/warzone/profile/psn/Symfuhny/overview)","stats": {"username": "Symfuhny","rank": "Diamond 1","kills": "54,320","matchesPlayed": "8,400","winRate": "12.5%"}}Game Key,Target URLwarzone,tracker.gg/warzonefortnite,fortnitetracker.commarvel-rivals,tracker.gg/marvel-rivals"username": "User123", // Required"platform": "psn", // Optional (psn, xbox, battlenet, steam, origin)"games": ["warzone"], // Required. Array of game keys."marvelId": "User#1234" // Required only for Marvel Rivals}