# Chess Com Player Stats Scraper (`kawsar/chess-com-player-stats-scraper`) Actor

Extract Chess.com player stats instantly! Scrape ratings for daily, rapid, blitz, bullet, Chess960, FIDE, tactics, and puzzle rush in bulk. Export clean data to JSON, CSV, or Excel with ease.

- **URL**: https://apify.com/kawsar/chess-com-player-stats-scraper.md
- **Developed by:** [Kawsar](https://apify.com/kawsar) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.99 / 1,000 results

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

Learn more: https://docs.apify.com/actors/running/actors-in-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

## Mastodon Instances Directory Scraper

![Mastodon Instances Directory Scraper cover](https://images.bigibyte.com/cdn-cgi/image/width=1260,height=540,fit=cover,format=webp/apify-actors-covers/mastodon-instances-directory-scraper-cover.png)

Collect publicly listed Mastodon instances into a structured dataset. Filter servers by language or category, set a collection limit, and export the results in JSON, CSV, Excel, or other supported Apify formats.

### What it does

This actor collects Mastodon server directory information and organizes each instance into a clean dataset. Results include server domains, versions, descriptions, languages, regions, categories, user counts, and approval settings. Duplicate domains are removed.

### Input example

```json
{
  "mode": "servers",
  "language": "en",
  "category": "general",
  "maxItems": 50,
  "requestDelayMs": 1000
}
```

| Field | Type | Default | Description |
| --- | --- | --- | --- |
| `mode` | string | `servers` | Collection mode. Only the server directory mode is supported. |
| `language` | string | Empty | Optional language filter, such as `en`. |
| `category` | string | Empty | Optional category filter, such as `general`. |
| `maxItems` | integer | `100` | Maximum number of results to collect. |
| `requestDelayMs` | integer | `1000` | Delay before making the request, in milliseconds. |
| `userAgent` | string | Research user agent | User-Agent value used for requests. |
| `timeoutSecs` | integer | `300` | Overall actor run timeout, in seconds. |
| `requestTimeoutSecs` | integer | `30` | Individual request timeout, in seconds. |
| `proxyConfiguration` | object | Proxy off | Optional proxy configuration. |

### Output example

```json
{
  "domain": "mastodon.social",
  "version": "4.8.0-nightly.2026-10-06",
  "serverDescription": "The original server of Mastodon, operated by Mastodon GmbH for the common good.",
  "languages": ["en"],
  "region": "",
  "categories": ["general"],
  "proxied_thumbnail": "https://proxy.joinmastodon.org/...",
  "blurhash": "UeKUpFxuo~R%0nW;WCnhF6RjaJt757oJodS$",
  "total_users": 921100,
  "last_week_users": 266157,
  "approval_required": false,
  "language_override": null,
  "legal_body_type": null,
  "language": "en",
  "scrapedAt": "2026-10-26T00:00:00+00:00"
}
```

The dataset includes server domains, versions, descriptions, languages, regions, categories, thumbnail references, visual identifiers, user statistics, and approval settings.

### Use cases

- **Fediverse research:** Explore Mastodon instances, their locations, languages, and user statistics.
- **Instance discovery:** Find servers that match specific language or category preferences.
- **Data analysis:** Export directory information for research and comparison.
- **Monitoring dashboards:** Track selected instances and changes in publicly listed server information.

### FAQ

**What information does this actor collect?**

It collects instance details such as domains, software versions, descriptions, languages, categories, regions, user counts, and approval settings.

**Can I filter instances by language or category?**

Yes. Use the `language` and `category` inputs to narrow the collected results.

**What export formats are supported?**

You can export results in JSON, CSV, Excel, and other supported Apify dataset formats.

**Can I schedule recurring runs?**

Yes. You can configure Apify schedules to refresh the directory dataset automatically.

### Trademark Notice

Mastodon and its associated names, logos, and trademarks belong to their respective owners. This actor is an independent data collection tool and does not imply any affiliation, sponsorship, endorsement, or partnership with Mastodon.

### Disclaimer

This actor is provided for independent research and data collection. Users are responsible for ensuring that their collection and use of the results comply with applicable laws and the source website's policies.

### Is Web Scraping Legal?

This actor collects publicly accessible information about Mastodon instances without bypassing login screens, paywalls, or technical security measures. How collected information can be used depends on applicable laws and the source website's policies.

- **Personal Data:** Instance descriptions and related information may contain personal or organizational details. Handle personal data responsibly and follow applicable privacy laws, including GDPR and CCPA where relevant.
- **Copyright and Licensing:** Server descriptions, images, and other directory content may be protected by copyright. Check applicable licences and obtain permission before reproducing or redistributing protected material.
- **Platform Terms and Rate Limits:** Respect Mastodon's policies, applicable terms, and reasonable request limits when collecting or using directory information.
- **Disclaimer:** This information is general guidance, not legal advice. Consult a qualified legal professional if you need advice about a specific use case.

[Is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/)

# Actor input Schema

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

What to scrape. Player stats returns ratings and records per time control from the Chess.com PubAPI.

## `usernames` (type: `array`):

Chess.com usernames to fetch stats for (one per line).

## `userAgent` (type: `string`):

Identify your scraper. Chess.com PubAPI expects a clear User-Agent.

## `timeoutSecs` (type: `integer`):

Overall run budget in seconds.

## `requestTimeoutSecs` (type: `integer`):

Per-request timeout in seconds.

## `proxyConfiguration` (type: `object`):

Optional proxy. Chess.com PubAPI works without a proxy; leave off unless you need it.

## Actor input object example

```json
{
  "mode": "stats",
  "usernames": [
    "hikaru"
  ],
  "userAgent": "",
  "timeoutSecs": 300,
  "requestTimeoutSecs": 30,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

Dataset rows in the overview table.

## `dataset` (type: `string`):

Full dataset for this run.

## `items` (type: `string`):

Dataset items as 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 = {
    "usernames": [
        "hikaru"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("kawsar/chess-com-player-stats-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 = { "usernames": ["hikaru"] }

# Run the Actor and wait for it to finish
run = client.actor("kawsar/chess-com-player-stats-scraper").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 '{
  "usernames": [
    "hikaru"
  ]
}' |
apify call kawsar/chess-com-player-stats-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,kawsar/chess-com-player-stats-scraper"
        }
    }
}
```

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/jts2G87biXg7RITrm/builds/OInQZlbRVGkwHcz9n/openapi.json
