# StadiumPrime Player Scraper (`scrapyspider/stadiustadiumprime-scraper`) Actor

Scrape player profiles from StadiumPrime search. Extract names, age, position, physical stats, contract status, and profile links with full pagination support. Requires session cookies.

- **URL**: https://apify.com/scrapyspider/stadiustadiumprime-scraper.md
- **Developed by:** [ScrapySpider](https://apify.com/scrapyspider) (community)
- **Categories:** Automation, Developer tools, Other
- **Stats:** 2 total users, 1 monthly users, 50.0% runs succeeded, NaN 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/platform/actors/running/actors-in-store#pay-per-usage

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

### StadiumPrime Player Scraper

**Scrape player data from [StadiumPrime](https://stadiumprime.com) agency search** — extract names, ages, positions, physical stats, contract status, photos, and profile links for all matching players with full pagination support.

### What does StadiumPrime Player Scraper do?

This Apify Actor **scrapes player profiles from the StadiumPrime agency search** at [stadiumprime.com/agency/search](https://stadiumprime.com/agency/search). It authenticates using session cookies, fills the search form (all positions, a specific country, and gender), then extracts detailed player data across all result pages.

The scraper uses **human-like behavior** — random delays between actions, smooth scrolling, and natural click patterns — to avoid detection. Built on the Apify platform, it supports API access, scheduling, and integrations with tools like Zapier, Make, and Google Sheets.

### How to scrape StadiumPrime player data

1. **Get your session cookies**: Log in to StadiumPrime in your browser, then export your cookies (use a browser extension like "EditThisCookie" or "Cookie-Editor").
2. **Provide cookies as input**: Paste the full JSON cookie array into the Actor's input. The critical cookie is `stadiumprime.com.prod.sid`.
3. **Run the Actor**: Click "Start" — the scraper will fill the search form, click through all pages, and extract every player.
4. **Download your data**: Once finished, download the results as JSON, CSV, Excel, or HTML from the Output tab.

### Input

The Actor requires a `cookies` array — your StadiumPrime session cookies exported from the browser:

```json
{
    "cookies": [
        {
            "name": "stadiumprime.com.prod.sid",
            "value": "s%3A<your-session-id>...",
            "domain": "stadiumprime.com",
            "path": "/"
        },
        {
            "name": "userConnect",
            "value": "agency",
            "domain": "stadiumprime.com",
            "path": "/"
        }
    ]
}
````

> **Note**: Session cookies expire. You'll need to re-export them periodically.

### Output

The Actor pushes player data to the default dataset. Each item looks like:

```json
{
    "name": "John Doe",
    "age": "24",
    "height": "185 cm",
    "weight": "78 kg",
    "city": "Paris",
    "contract": "Free Agent",
    "status": "Available",
    "imageUrl": "https://stadiumprime.com/uploads/player123.jpg",
    "position": "Midfielder",
    "profileUrl": "https://stadiumprime.com/player/123"
}
```

You can download the dataset in various formats such as **JSON, HTML, CSV, or Excel**.

### Data fields

| Field | Description |
|---|---|
| `name` | Player's full name |
| `age` | Player's age |
| `height` | Height (e.g., "185 cm") |
| `weight` | Weight (e.g., "78 kg") |
| `city` | City of residence |
| `contract` | Contract status |
| `status` | Current player status |
| `imageUrl` | URL to player's photo |
| `position` | Playing position |
| `profileUrl` | Link to full player profile |

### How much does it cost to scrape StadiumPrime?

The Actor uses a single Playwright browser session and processes pages sequentially with human-like delays. A full run scraping ~260 players across 13 pages typically takes 3-5 minutes, which costs well under **$0.05** in Apify platform compute units.

### Tips

- **Fresh cookies are essential** — the session cookie (`stadiumprime.com.prod.sid`) expires relatively quickly. Always provide recently exported cookies.
- **Include all cookies** — while only the session cookie is strictly required for auth, including analytics and consent cookies makes the session look more natural.
- **Runs are deterministic** — the search filters (all positions, country #77, gender #1) are hardcoded, so every run produces the same result set (assuming the data hasn't changed).

### FAQ and support

- **Is it legal to scrape StadiumPrime?** This Actor is designed for use by authenticated users with valid accounts. You are responsible for complying with StadiumPrime's Terms of Service.
- **My run fails immediately** — check that your cookies haven't expired. Re-login and export fresh cookies.
- **I get fewer results than expected** — the website may have changed its layout. Open an issue on the [Issues tab](https://console.apify.com/actors) if you encounter problems.

For custom scraping solutions, contact us through the Apify platform.

### Getting started

```bash
## Run locally
apify run

## Deploy to Apify platform
apify login
apify push
```

# Actor input Schema

## `cookies` (type: `array`):

JSON array of cookies for authentication. Must include the 'stadiumprime.com.prod.sid' session cookie. Export cookies from your browser after logging in.

## `startFresh` (type: `boolean`):

If true, ignore saved progress and start scraping from the beginning. If false (default), the scraper will resume from where it last stopped.

## Actor input object example

```json
{
  "cookies": [
    {
      "name": "stadiumprime.com.prod.sid",
      "value": "YOUR_SESSION_COOKIE_VALUE",
      "domain": "stadiumprime.com",
      "path": "/"
    }
  ],
  "startFresh": false
}
```

# Actor output Schema

## `players` (type: `string`):

No description

# 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 = {
    "cookies": [
        {
            "name": "stadiumprime.com.prod.sid",
            "value": "YOUR_SESSION_COOKIE_VALUE",
            "domain": "stadiumprime.com",
            "path": "/"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapyspider/stadiustadiumprime-scraper").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 = { "cookies": [{
            "name": "stadiumprime.com.prod.sid",
            "value": "YOUR_SESSION_COOKIE_VALUE",
            "domain": "stadiumprime.com",
            "path": "/",
        }] }

# Run the Actor and wait for it to finish
run = client.actor("scrapyspider/stadiustadiumprime-scraper").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{
  "cookies": [
    {
      "name": "stadiumprime.com.prod.sid",
      "value": "YOUR_SESSION_COOKIE_VALUE",
      "domain": "stadiumprime.com",
      "path": "/"
    }
  ]
}' |
apify call scrapyspider/stadiustadiumprime-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=scrapyspider/stadiustadiumprime-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "StadiumPrime Player Scraper",
        "description": "Scrape player profiles from StadiumPrime search. Extract names, age, position, physical stats, contract status, and profile links with full pagination support. Requires session cookies.",
        "version": "0.0",
        "x-build-id": "9FFAkHKHt0cG4Jegd"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/scrapyspider~stadiustadiumprime-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-scrapyspider-stadiustadiumprime-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/scrapyspider~stadiustadiumprime-scraper/runs": {
            "post": {
                "operationId": "runs-sync-scrapyspider-stadiustadiumprime-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/scrapyspider~stadiustadiumprime-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-scrapyspider-stadiustadiumprime-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "cookies"
                ],
                "properties": {
                    "cookies": {
                        "title": "Session Cookies",
                        "type": "array",
                        "description": "JSON array of cookies for authentication. Must include the 'stadiumprime.com.prod.sid' session cookie. Export cookies from your browser after logging in."
                    },
                    "startFresh": {
                        "title": "Start Fresh",
                        "type": "boolean",
                        "description": "If true, ignore saved progress and start scraping from the beginning. If false (default), the scraper will resume from where it last stopped.",
                        "default": false
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
