Gaming | TrackerGG | Fortnite + Marvel Rivals + Warzone avatar
Gaming | TrackerGG | Fortnite + Marvel Rivals + Warzone
Under maintenance

Pricing

Pay per usage

Go to Apify Store
Gaming | TrackerGG | Fortnite + Marvel Rivals + Warzone

Gaming | TrackerGG | Fortnite + Marvel Rivals + Warzone

Under maintenance

Scrape by gaming ID

Pricing

Pay per usage

Rating

0.0

(0)

Developer

Eshaam Rabaney

Eshaam Rabaney

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

5 days ago

Last modified

Categories

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.

Apify Playwright OpenAI

โœจ 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

  1. Input: Accepts a list of players, their platforms, and the games to scrape.
  2. 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).
  3. Extraction: Once on the profile page, the HTML content is captured.
  4. AI Processing: The raw content is sent to OpenAI with a strict system prompt to extract specific stats (K/D, Win Rate, Matches, etc.).
  5. Output: Returns a clean JSON dataset.

๐Ÿ“ฆ Installation & Usage

Prerequisites

Local Development

  1. 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
  2. Install dependencies:

    $npm install
  3. Set Environment Variables: Create a .env file in the root directory:

    OPENAI_API_KEY=sk-your-openai-key-here
  4. Configure Input: Modify the INPUT.json file in storage/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
    }
    }
  5. Run the Actor:

    $npm start

๐Ÿ“„ Input Schema

The actor expects a JSON input object with the following structure:

FieldTypeDescription
playersArrayRequired. List of player objects to scrape.
maxConcurrencyNumberMaximum number of concurrent pages to open (1-5).
proxyConfigurationObjectApify 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 URL
warzone,tracker.gg/warzone
fortnite,fortnitetracker.com
marvel-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
}