# Fediverse Servers Stats Scraper Fedidb (`bigibyte/fediverse-servers-stats-scraper-fedidb`) Actor

Collect Fediverse server stats, software versions, and user counts from FediDB. Cap your run size, avoid duplicate servers, and export results as JSON, CSV, or Excel.

- **URL**: https://apify.com/bigibyte/fediverse-servers-stats-scraper-fedidb.md
- **Developed by:** [BigiByte](https://apify.com/bigibyte) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.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

## Fediverse Servers Stats Scraper (FediDB)

![Fediverse Servers Stats Scraper (FediDB) cover](https://images.bigibyte.com/cdn-cgi/image/width=1260,height=540,fit=cover,format=webp/apify-actors-covers/fediverse-servers-stats-scraper-fedidb-cover.png)

Collect public Fediverse server statistics with this FediDB scraper. Discover instances, compare supported software, and retrieve registration status, location details, and user activity statistics. Build structured datasets and export results as JSON, CSV, or Excel for research, monitoring, and analysis.

### What This Actor Does

Fediverse Servers Stats Scraper collects server information from FediDB's public server directory.

It retrieves instance domains, software details, registration availability, geographic information, and community statistics. The Actor supports cursor-based pagination to collect multiple pages of server records while preventing duplicates and respecting configurable request limits.

### Key Features

- **Fediverse server discovery:** Collect publicly listed Fediverse instances from FediDB.
- **Software identification:** Retrieve software names, versions, and related information.
- **Registration status:** Identify whether an instance has open registration.
- **Server statistics:** Collect total users, monthly active users, and status counts when available.
- **Location information:** Retrieve available city and country details.
- **Automatic pagination:** Follow available pages to collect more server records.
- **Duplicate prevention:** Avoid collecting the same server more than once per run.
- **Reliable processing:** Includes request pacing and retries for temporary request failures.
- **Structured exports:** Save results in JSON, CSV, Excel, and other Apify dataset formats.

### Use Cases

- **Fediverse research:** Analyze server distribution, software usage, and community activity.
- **Instance directory building:** Create an organized catalog of publicly listed Fediverse servers.
- **Software tracking:** Compare Mastodon, Misskey, and other supported Fediverse software.
- **Registration research:** Identify instances that currently report open registration.
- **Community monitoring:** Track changes in user counts and monthly active users over scheduled runs.
- **Dashboard development:** Feed structured server statistics into reports, dashboards, and data pipelines.

### Input Configuration

Configure the Actor by selecting the collection mode and setting the maximum number of server records to retrieve.

| Parameter | Type | Default | Description |
|---|---|---|---|
| `mode` | string | `servers` | Collection mode for Fediverse server information |
| `maxItems` | integer | `100` | Maximum number of records per run, up to 1,000 |
| `requestDelayMs` | integer | `1000` | Delay between paginated requests in milliseconds |

#### Example Input

```json
{
  "mode": "servers",
  "maxItems": 50,
  "requestDelayMs": 1000
}
```

### What Data Can You Extract?

Each server is saved as a structured dataset record containing information such as:

| Field | Description |
|---|---|
| `serverId` | Unique FediDB server identifier |
| `domain` | Server domain name |
| `open_registration` | Indicates whether registration is open |
| `serverDescription` | Server description |
| `banner_url` | Server banner image URL |
| `location` | Geographic information, including city and country when available |
| `software` | Software details, including ID, name, URL, version, and slug |
| `stats` | Server statistics, including status count, user count, and monthly active users |
| `first_seen_at` | Date and time when the server was first recorded |
| `last_seen_at` | Date and time when the server was last recorded ||
| `scrapedAt` | Timestamp when the record was collected |

#### Example Output

```json
{
  "serverId": 18059,
  "domain": "mastodon.social",
  "open_registration": true,
  "serverDescription": "The original server of Mastodon, operated by Mastodon GmbH for the common good.",
  "banner_url": "https://fedidb.pixelcdn.net/instances/18059/9rss8g26_thumbnail.png",
  "location": {
    "city": "San Francisco",
    "country": "United States"
  },
  "software": {
    "id": 2,
    "name": "Mastodon",
    "url": "https://fedidb.org/software/mastodon",
    "version": "4.8.0-nightly.2026-10-06",
    "slug": "mastodon"
  },
  "stats": {
    "status_count": 191344698,
    "user_count": 3428047,
    "monthly_active_users": 265494
  },
  "first_seen_at": "2021-03-30T20:10:40.000000Z",
  "last_seen_at": "2026-10-11T05:07:26.000000Z",
  "scrapedAt": "2026-10-26T00:00:00+00:00"
}
```

### How It Works

1. Reads your collection settings and applies the configured item limit.
2. Retrieves server records from FediDB's public server directory.
3. Extracts instance domains, registration status, software information, location, and available statistics.
4. Follows pagination cursors to retrieve additional server records.
5. Prevents duplicate records using each server's unique identifier.
6. Saves unsuccessful requests as error records and continues processing where possible.

### Usage and Limits

- **Supported mode:** Servers (`servers`) only.
- **Maximum records:** Up to 1,000 server records per run. Actual results depend on the number of records available.
- **Pagination:** Uses FediDB's cursor-based pagination to retrieve additional pages.
- **Request pacing:** Default delay is 1,000 milliseconds between requests.
- **Duplicate handling:** Server records are deduplicated using their FediDB server IDs.
- **Data freshness:** Server statistics reflect the information available from FediDB when the data is collected. Values may change between runs.

### Frequently Asked Questions

**What is Fediverse Servers Stats Scraper?**

It is a data collection tool that retrieves publicly listed Fediverse instances and their available software, registration, location, and activity statistics from FediDB.

**What types of servers can I discover?**

You can retrieve the Fediverse instances listed in FediDB, including servers running software such as Mastodon and Misskey.

**Can I identify servers with open registration?**

Yes. The output includes the `open_registration` field, which indicates whether registration is reported as open.

**What statistics are available?**

The Actor collects available status counts, user counts, and monthly active user statistics.

**Can I run the Actor on a schedule?**

Yes. Use Apify schedules to refresh your Fediverse server dataset at your preferred intervals.

**How many servers can I collect per run?**

You can collect up to 1,000 records per run. The default limit is 100, depending on available source data.

**Can I export the results to CSV or Excel?**

Yes. Apify datasets support JSON, CSV, Excel, and other export formats.

### Related Tools

Explore other BigiByte Actors for collecting public Fediverse and community data:

- **Misskey Notes Scraper** – Collect publicly featured notes from Misskey instances.
- **Farcaster Casts Scraper** – Retrieve public Farcaster user profile information.
- **Discourse Forum Scraper** – Collect public topics from Discourse-powered forums.
- **Lemmy Comments Scraper** – Collect public comments and discussions from Lemmy communities.
- **PeerTube Videos Search Scraper** – Discover publicly available videos across the PeerTube network.

Looking for additional server information, custom data fields, or a bulk data collection workflow? BigiByte builds custom web scrapers and data solutions tailored to your requirements.

Visit [BigiByte – Big Ideas, Byte Solutions](https://www.bigibyte.com) to explore our services.

### Trademark Notice

FediDB and related names, logos, and trademarks belong to their respective owners. Their use in this documentation is solely to identify the source of the data and does not imply affiliation, sponsorship, endorsement, or partnership.

### Disclaimer

This Actor is an independent data collection tool and is not affiliated with, endorsed by, sponsored by, or officially associated with FediDB or its owners. All data is collected from publicly accessible sources. Users are responsible for complying with the source's terms of use, rate limits, and applicable attribution or licensing requirements.

### Is Web Scraping Legal?

This actor extracts publicly accessible information without bypassing login screens, paywalls, or technical security layers. While collecting public web data is widely permitted, compliance depends on how data is gathered and used:

- **Personal data:** If results contain names, usernames, or other personal information, privacy laws such as GDPR and CCPA may apply. Ensure you have a lawful basis for collecting and using such information.
- **Copyrighted content:** Server descriptions, images, and other creative materials may be protected by copyright. Respect applicable licences and attribution requirements.
- **Platform terms and rate limits:** Follow the source's terms, applicable usage restrictions, and reasonable request limits.

This information is provided for general guidance only and does not constitute legal advice.

For more information, read Apify's guide: [Is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/)

# Actor input Schema

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

What to scrape. Servers lists Fediverse instances with software and stats from FediDB.

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

Stop after this many successful rows. Hard max is 1000.

## `requestDelayMs` (type: `integer`):

Milliseconds to wait between requests. Default 1000 keeps pacing near 1 request per second.

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

User-Agent header sent with each request.

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

Overall run budget in seconds.

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

Per-request timeout in seconds.

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

Optional proxy. Leave off unless you need it. FediDB is public and usually works without a proxy.

## Actor input object example

```json
{
  "mode": "servers",
  "maxItems": 100,
  "requestDelayMs": 1000,
  "userAgent": "BigiByteActorResearch/1.0 (contact: hello@bigibyte.com)",
  "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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("bigibyte/fediverse-servers-stats-scraper-fedidb").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("bigibyte/fediverse-servers-stats-scraper-fedidb").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 bigibyte/fediverse-servers-stats-scraper-fedidb --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,bigibyte/fediverse-servers-stats-scraper-fedidb"
        }
    }
}
```

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/gWoi571ZRfgWujjBU/builds/PaMffOrPDwr2apCPo/openapi.json
