# Liquipedia Esports Wiki Page Directory (`dataspryva/liquipedia-esports-wiki-page-directory`) Actor

List tournament, team, or player pages from a chosen Liquipedia game wiki, with page name, ID, and direct URL, optionally filtered by a title search term.

- **URL**: https://apify.com/dataspryva/liquipedia-esports-wiki-page-directory.md
- **Developed by:** [Dataspryva](https://apify.com/dataspryva) (community)
- **Categories:** Automation, Developer tools, Other
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.49 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

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

## Liquipedia Esports Wiki Extractor

Liquipedia is the community wiki for competitive gaming: one wiki per game, each with tournament pages, team pages, player profiles, transfer archives and long edit histories. This actor reads those wikis through Liquipedia's official MediaWiki API and turns the source templates into flat, typed JSON — no browser, no login, no API key.

Pick a game wiki, then browse a category, run a full-text search, fetch exact pages, or collect player transfers. Records keep their page ID, revision ID, direct wiki URL and CC-BY-SA attribution so every row can be traced back to the exact source revision.

### Modes

| Mode | What it returns |
|---|---|
| **Browse a category** | One record per page in `Category:Tournaments`, `Category:Teams`, `Category:Players`, `Category:Tournament series`, `Category:Upcoming Tournaments`, `Category:Casters`, or any custom category you name. |
| **Search the wiki** | One record per MediaWiki full-text hit, with a cleaned snippet, word count and page metadata. |
| **Fetch exact pages** | Full details for a list of Liquipedia URLs or exact page titles. URLs may point at different game wikis in the same run. |
| **Collect player transfers** | One record per player move, read from the wiki's `Transfers/...` or `Player Transfers/...` archive pages. |

### What is parsed

**Every page record**

`name`, `displayName`, `pageId`, `game`, `wiki`, `category`, `wikiUrl`, `namespace`, `pageBytes`, `revisionId`, `lastEdited`, `lastEditor`, `description`, `imageUrl`, `imageName`, `categories`, `sections`, `recordType`, `infoboxType`, `license`, `licenseUrl`, `attribution`, `scrapedAt`.

**Tournament pages** (`Infobox league`)

`series`, `organizer`, `sponsors`, `country`, `city`, `location`, `venue`, `startDate`, `endDate`, `prizePool`, `prizePoolCurrency`, `prizePoolRaw`, `teamCount`, `format`, `tournamentType`, `tier`, `tierType`, `publisherTier`, `patch`, `website`, `bracketUrl`, `rulebookUrl`, `socials`, `leagueId`. Prize-pool subpage transclusions such as `{{:The International/2024/prizepool}}` are resolved automatically. Optional `matches` and `prizes` arrays read source-written match and prize-slot templates.

**Team pages** (`Infobox team`)

`teamName`, `location`, `locations`, `region`, `regionCode`, `website`, `created`, `createdYear`, `disbanded`, `disbandedYear`, `status`, `manager`, `coaches`, `captain`, `sponsors`, `socials`, `teamId`, plus `roster` and `staff` arrays built from active `{{Squad}}` / `{{Person}}` templates (handle, real name, country code, position, role, join date, captain flag).

**Player pages** (`Infobox player`)

`handle`, `realName`, `givenName`, `familyName`, `romanizedName`, `country`, `birthDate`, `status`, `team`, `roles`, `heroes`, `aliases`, `yearsActive`, `socials`, `externalIds`, plus `teamHistory` parsed from `{{TH}}` templates (start date, end date, team, role).

**Tournament series and maps**

Series pages return `seriesName`, `organizer`, `country`, `city`, `website`, `sponsors` and `socials`. Counter-Strike map pages return `mapName`, `location`, `creator`, `theme`, `scenario`, `game`, `size` and both team factions.

**Transfer rows**

`name` (primary player), `players` (handle, country code, player page), `transferDate`, `transferYear`, `dateIsExact`, `fromTeam`, `toTeam`, `fromRole`, `toRole`, `references`, `sourcePage`, `sourcePageUrl`, `revisionId`.

### Input

| Field | Type | Default | Notes |
|---|---|---|---|
| `mode` | select | `category` | `category`, `search`, `pages`, `transfers` |
| `category` | select | `tournaments` | Tournaments, Teams, Players, Tournament series, Upcoming tournaments, Casters, Custom |
| `customCategory` | text | – | Any category name; overrides `category` |
| `searchQuery` | text | – | Full-text query in search mode; title filter in category mode |
| `pageUrls` | list | – | Liquipedia URLs or exact titles for `pages` mode |
| `yearFrom` / `yearTo` | integer | – | Transfer date filter |
| `game` | select | `dota2` | 69 Liquipedia game wikis |
| `customWiki` | text | – | Any wiki slug not in the list |
| `maxItems` | integer | `20` | 1–20,000 |
| `includeDetails` | boolean | `true` | Parse infobox, roster, history and sections |
| `includeImages` | boolean | `true` | Add the lead image URL |
| `includeInfobox` | boolean | `false` | Add the cleaned source infobox |
| `includeWikitext` | boolean | `false` | Add raw page source (large) |
| `includeMatches` | boolean | `false` | Add source-written matches on tournament pages |
| `includePrizes` | boolean | `false` | Add source-written prize rows on tournament pages |

#### Examples

Browse 50 Dota 2 tournaments with parsed details:

```json
{ "mode": "category", "category": "tournaments", "game": "dota2", "maxItems": 50 }
```

Search the Counter-Strike wiki:

```json
{ "mode": "search", "game": "counterstrike", "searchQuery": "PGL Major", "maxItems": 20 }
```

Fetch exact pages across two wikis:

```json
{
  "mode": "pages",
  "pageUrls": [
    "https://liquipedia.net/dota2/Team_Liquid",
    "https://liquipedia.net/leagueoflegends/T1",
    "https://liquipedia.net/counterstrike/ZywOo"
  ]
}
```

Collect 2024–2025 Valorant transfers:

```json
{ "mode": "transfers", "game": "valorant", "yearFrom": 2024, "yearTo": 2025, "maxItems": 500 }
```

### Reliability and source limits

- Every API request is serialized and paced at one request per 2.1 seconds, matching Liquipedia's terms of use. Pages are fetched 50 at a time and category/search listings 500 at a time, so most runs use only a handful of requests.
- The actor reads the MediaWiki API only. It does not fetch rendered HTML pages, which Liquipedia's terms do not allow for automated access.
- A field is emitted only when the page source contains it. Nothing is invented, and empty values are omitted instead of sent as `null`.
- **Liquipedia database-only data is not available.** Match scores, standings tables, bracket slots, prize distributions and some current-team values are inserted by Liquipedia's own database at render time. Where the wiki stores data only as a database import (for example an empty `{{Match}}`, `{{TeamPrizePool|import=true}}` or `{{PlayerTeamAuto}}`), the actor omits that field rather than guessing. Use `includeMatches` and `includePrizes` for pages where the values are written in the source.
- **Rendered pages are deliberately out of scope.** Liquipedia's `action=parse` endpoint can render the database-sourced tables, but a single tournament page returns roughly 0.8–0.9 MB of HTML and costs a 30-second rate slot. The actor does not use it: every shipped field comes from the source API, so runs stay fast and reliable across all 69 wikis. If you need rendered standings, use a separate browser-based actor.
- Category listings contain Liquipedia's own navigation pages; obvious meta pages are filtered out. Stage subpages (for example `/Group Stage`) remain, because they are real pages with their own content.
- A run is capped at 20,000 records. Split very large categories by season or use `maxItems` plus `searchQuery` title filters.
- Liquipedia content is licensed CC-BY-SA 3.0. Every record carries `license`, `licenseUrl` and `attribution` fields.

### FAQ

**Do I need a Liquipedia API key?** No. This actor uses the public MediaWiki API, not the keyed LiquipediaDB API.

**Why is a team's current roster missing?** Rosters are read from `{{Squad}}` templates. A wiki that imports its roster from LiquipediaDB instead of writing it in the page has no roster to read, so the field is omitted.

**Why is a match score missing?** Same reason: scores are usually rendered from LiquipediaDB. Only matches written directly in the page source are returned.

**Why does a player's current team say nothing?** Many player pages use `{{PlayerTeamAuto}}`, which resolves from the database at render time. When no literal team is written, the actor omits `team` instead of returning template markup.

**Does search cover page text?** Yes. Search mode uses MediaWiki's full-text search. In category mode, `searchQuery` only filters the page title.

**How current is the data?** Each record carries the revision ID and revision timestamp of the page version that was read.

**Is this affiliated with Liquipedia?** No. It is an independent reader of the public wiki API.

# Actor input Schema

## `mode` (type: `string`):

Browse a category, run a full-text search, fetch exact pages, or collect player transfers.

## `category` (type: `string`):

Which category to browse when mode is Browse a category. Custom category text overrides this when provided.

## `customCategory` (type: `string`):

Advanced: any category name on the wiki, with or without the Category: prefix, e.g. Heroes or Category:Patches. Overrides the Category field when set.

## `searchQuery` (type: `string`):

In Search mode: full-text query, e.g. The International 2025. In Browse a category mode: only keep page titles containing this text (case-insensitive).

## `pageUrls` (type: `array`):

Used when mode is Fetch exact pages. Paste Liquipedia page URLs (any game wiki) or exact page titles, one per line. Plain titles use the selected game wiki.

## `yearFrom` (type: `integer`):

Only keep transfers dated in or after this year. Leave empty for all years.

## `yearTo` (type: `integer`):

Only keep transfers dated in or before this year. Leave empty for all years.

## `game` (type: `string`):

Liquipedia wiki to read. Each game has its own wiki, roster and tournament categories.

## `customWiki` (type: `string`):

Advanced: use any Liquipedia wiki slug that is not in the dropdown, e.g. deltaforce or eva. Overrides the game wiki when set.

## `maxItems` (type: `integer`):

Cap on records pushed. Category and search modes stop after this many; transfers counts one record per player move. Maximum 20,000.

## `includeDetails` (type: `boolean`):

Fetch page source and add parsed infobox fields, categories and sections. Turn off for the fastest catalogue of names, IDs and URLs.

## `includeImages` (type: `boolean`):

Add the page's lead image URL when Liquipedia provides one. No extra API requests.

## `includeInfobox` (type: `boolean`):

Add the cleaned source infobox as an object beside the normalised fields. Useful for non-standard keys.

## `includeWikitext` (type: `boolean`):

Add the page's raw wikitext. Large field: use only when you need to parse something yourself.

## `includeMatches` (type: `boolean`):

On tournament pages, add matches that are written in the page source. Matches imported only from Liquipedia's database cannot be read and are omitted.

## `includePrizes` (type: `boolean`):

On tournament pages, add placement and prize rows that are written in the page source. Prize distributions imported from Liquipedia's database are omitted.

## Actor input object example

```json
{
  "mode": "category",
  "category": "tournaments",
  "pageUrls": [],
  "game": "dota2",
  "maxItems": 3,
  "includeDetails": true,
  "includeImages": true,
  "includeInfobox": false,
  "includeWikitext": false,
  "includeMatches": false,
  "includePrizes": false
}
```

# Actor output Schema

## `results` (type: `string`):

Dataset containing every page, search hit or transfer record produced by the run.

# 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 = {
    "mode": "category",
    "category": "tournaments",
    "pageUrls": [],
    "game": "dota2",
    "maxItems": 3,
    "includeDetails": true,
    "includeImages": true,
    "includeInfobox": false,
    "includeWikitext": false,
    "includeMatches": false,
    "includePrizes": false
};

// Run the Actor and wait for it to finish
const run = await client.actor("dataspryva/liquipedia-esports-wiki-page-directory").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 = {
    "mode": "category",
    "category": "tournaments",
    "pageUrls": [],
    "game": "dota2",
    "maxItems": 3,
    "includeDetails": True,
    "includeImages": True,
    "includeInfobox": False,
    "includeWikitext": False,
    "includeMatches": False,
    "includePrizes": False,
}

# Run the Actor and wait for it to finish
run = client.actor("dataspryva/liquipedia-esports-wiki-page-directory").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 '{
  "mode": "category",
  "category": "tournaments",
  "pageUrls": [],
  "game": "dota2",
  "maxItems": 3,
  "includeDetails": true,
  "includeImages": true,
  "includeInfobox": false,
  "includeWikitext": false,
  "includeMatches": false,
  "includePrizes": false
}' |
apify call dataspryva/liquipedia-esports-wiki-page-directory --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,dataspryva/liquipedia-esports-wiki-page-directory"
        }
    }
}
```

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/9NrME6md5A2RFx66L/builds/c2h4G40KsH9JwcEE5/openapi.json
