# Farcaster Casts Scraper (`bigibyte/farcaster-casts-scraper`) Actor

Extract public Farcaster user profiles including bios, follower counts, profile pictures, and linked social accounts. Simply enter a list of usernames, set your item limit, run the scraper, and export clean results in JSON, CSV, or Excel

- **URL**: https://apify.com/bigibyte/farcaster-casts-scraper.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

## Farcaster Casts Scraper: Public Farcaster Profiles via Warpcast

Retrieve public Farcaster user profiles by username with this Farcaster scraper. Collect profile details, follower counts, profile images, and connected social accounts, then export the results as JSON, CSV, or Excel.

### What This Actor Does

Farcaster Casts Scraper looks up public user profiles using usernames and returns structured profile information in an organized dataset.

The current version supports user profile lookups only. Cast timelines and individual cast data are not included because those features have not been verified.

### Use Cases

- **Audience research:** Analyze public profile information, biographies, and follower counts.
- **Creator monitoring:** Maintain organized records of Farcaster creators and their public profiles.
- **Contact enrichment:** Match usernames with Farcaster IDs and display names.
- **Competitive research:** Compare public audience statistics across different accounts.
- **Research datasets:** Build structured profile datasets for analysis and reporting.

### Input Configuration

Configure the Actor by providing the usernames you want to look up and adjusting the collection settings.

| Parameter | Type | Default | Description |
|---|---|---|---|
| `mode` | string | `user` | Profile lookup mode |
| `usernames` | array | `["dwr"]` | Farcaster usernames to look up |
| `requestDelayMs` | integer | `1000` | Delay between requests in milliseconds |
| `userAgent` | string | BigiByte research User-Agent | User-Agent used for requests |
| `timeoutSecs` | integer | `300` | Overall run timeout in seconds |
| `requestTimeoutSecs` | integer | `30` | Timeout for an individual request |
| `proxyConfiguration` | object | Disabled | Optional proxy configuration |

#### Example Input

```json
{
  "mode": "user",
  "usernames": ["dwr"],
  "requestDelayMs": 1000,
  "userAgent": "BigiByteActorResearch/1.0 (contact: hello@bigibyte.com)",
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

### What Data Can You Extract?

Each successful profile lookup produces a structured record with fields such as:

| Field | Description |
|---|---|
| `fid` | Unique Farcaster user ID |
| `displayName` | User's display name |
| `profile` | Profile information, including bio, location, website, and banner when available |
| `followerCount` | Number of followers |
| `followingCount` | Number of accounts followed |
| `username` | Farcaster username |
| `pfp` | Profile picture URL and verification information |
| `referrerUsername` | Referrer username, when available |
| `connectedAccounts` | Linked social accounts |
| `viewerContext` | Profile relationship information, such as following status |
| `scrapedAt` | Timestamp when the record was collected |

#### Example Output

```json
{
  "fid": 3,
  "displayName": "Dan Romero",
  "profile": {
    "bio": {
      "text": "Interested in technology and other stuff."
    },
    "url": "https://danromero.org"
  },
  "followerCount": 121238,
  "followingCount": 77,
  "username": "dwr",
  "pfp": {
    "url": "https://imagedelivery.net/BXluQx4ige9GuW0Ia56BHw/bc698287-5adc-4cc5-a503-de16963ed900/original",
    "verified": false
  },
  "referrerUsername": "farcaster",
  "connectedAccounts": [
    {
      "platform": "x",
      "username": "dwr",
      "expired": false
    }
  ],
  "viewerContext": {
    "following": false,
    "followedBy": false
  },
  "scrapedAt": "2026-10-12T12:00:00+00:00"
}
```

### How It Works

1. Reads the supplied usernames and applies the configured record limit.
2. Looks up each username to retrieve its public Farcaster profile.
3. Extracts the available profile information and maps it into structured dataset fields.
4. Prevents duplicate records using the Farcaster user ID (`fid`).
5. Applies request delays and retries temporary request failures.
6. Saves unsuccessful lookups as error records and continues processing the remaining usernames.

### Usage and Limits

- **Supported mode:** User profile lookup (`user`) only.
- **Maximum records:** Up to 1,000 successful records per run. Actual results depend on the number of valid usernames supplied.
- **Duplicate handling:** Profiles are deduplicated using their Farcaster ID.
- **Error handling:** Failed lookups produce error records containing the input, request URL, status, and message.
- **Cast timelines:** This version does not collect posts, cast timelines, or engagement history.

The Actor uses a public Warpcast data source. Request availability and response behavior may change over time, so keep request rates reasonable.

### Frequently Asked Questions

**What happens if a username cannot be found?**

The Actor records the unsuccessful lookup with its input, request status, and error message. It then continues with the remaining usernames.

**Can I collect connected social accounts?**

Yes. The Actor includes connected account information when it is available in the returned profile 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 data and building research datasets:

- **Social and Community Data Scrapers** – Collect publicly available information from online communities.
- **PeerTube Videos Search Scraper** – Discover publicly available videos across the PeerTube network.
- **Lemmy Comments Scraper** – Collect public discussions and comments from Lemmy communities.
- **GNOME Shell Extensions Scraper** – Explore publicly listed software extensions.

Looking for additional profile fields, custom data extraction, or a tailored data collection workflow? BigiByte builds custom web scrapers and data solutions to match your requirements.

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

### Trademark Notice

Farcaster, Warpcast, and their associated names, logos, and trademarks belong to their respective owners. Their use in this documentation is solely to identify the data source 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 Farcaster, Warpcast, or their owners. Users are responsible for ensuring that their data collection and use comply with applicable laws and the source platform's terms.

### 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:** Usernames, profile information, and other personal data may be subject to privacy laws such as GDPR and CCPA. Ensure you have a lawful basis for collecting and using such information.
- **Copyrighted content:** Profile text, images, and other creative materials may be protected by copyright. Respect applicable licences and attribution requirements.
- **Platform terms and rate limits:** Follow the source platform'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. User profile resolves a Farcaster username via the public Warpcast API.

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

Farcaster usernames to look up (one per line).

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

Milliseconds to wait between requests. Raise if you see 429.

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

Identify your scraper

## `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. The public Warpcast API usually works without a proxy.

## Actor input object example

```json
{
  "mode": "user",
  "usernames": [
    "dwr"
  ],
  "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 = {
    "usernames": [
        "dwr"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("bigibyte/farcaster-casts-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": ["dwr"] }

# Run the Actor and wait for it to finish
run = client.actor("bigibyte/farcaster-casts-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": [
    "dwr"
  ]
}' |
apify call bigibyte/farcaster-casts-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,bigibyte/farcaster-casts-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/HDWm2Cecv54ouXift/builds/2R1yIcgWx75xpA04s/openapi.json
