# Gaming | TrackerGG | Fortnite + Marvel Rivals + Warzone (`eshaam/gaming-trackergg-fortnite-marvel-rivals-warzone`) Actor

Scrape by gaming ID

- **URL**: https://apify.com/eshaam/gaming-trackergg-fortnite-marvel-rivals-warzone.md
- **Developed by:** [Eshaam Rabaney](https://apify.com/eshaam) (community)
- **Categories:** AI, Other
- **Features:** Limited permissions
- **Stats:** 10 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## 🎮 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](https://img.shields.io/badge/Apify-Actor-orange) ![Playwright](https://img.shields.io/badge/Playwright-Crawler-green) ![OpenAI](https://img.shields.io/badge/AI-Powered-blue)

### ✨ 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

- [Node.js](https://nodejs.org/) (v16+)
- An [Apify](https://apify.com/) Account (for Proxy and Actor runtime)
- An [OpenAI API Key](https://platform.openai.com/)

#### Local Development

1. **Clone the repository:**
   ```bash
   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:**
   ```bash
   npm install
   ```

3. **Set Environment Variables:**
   Create a `.env` file in the root directory:
   ```env
   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):
   ```json
   {
     "maxConcurrency": 2,
     "players": [
       {
         "username": "Ninja",
         "platform": "pc",
         "games": ["fortnite"]
       },
       {
         "username": "Symfuhny",
         "platform": "psn",
         "games": ["warzone"]
       }
     ],
     "proxyConfiguration": {
       "useApifyProxy": true
     }
   }
   ```

5. **Run the Actor:**
   ```bash
   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:**

````json
{
  "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
}





## Actor input object example

```json
{}
````

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("eshaam/gaming-trackergg-fortnite-marvel-rivals-warzone").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("eshaam/gaming-trackergg-fortnite-marvel-rivals-warzone").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call eshaam/gaming-trackergg-fortnite-marvel-rivals-warzone --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,eshaam/gaming-trackergg-fortnite-marvel-rivals-warzone"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/BFmTbjNeyAlvV5PSK/builds/cjODqfSeHxy3ydTHD/openapi.json
