# Farcaster Cast, Profile & Network Extractor (`nimbryxo-studio/farcaster-cast-profile-and-network-extractor`) Actor

Extract Farcaster user profiles, casts, cast likes, followers and following lists with full engagement metadata. No login required.

- **URL**: https://apify.com/nimbryxo-studio/farcaster-cast-profile-and-network-extractor.md
- **Developed by:** [Nimbryxo-studio](https://apify.com/nimbryxo-studio) (community)
- **Categories:** Social media, Automation, Developer tools
- **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

## Farcaster Cast, Profile & Network Extractor

Extract data from **Farcaster** — the decentralized social protocol — including user profiles, casts, cast likes, followers and following lists, with full engagement metadata (reactions, replies, recasts, watches). No login required.

### What this actor does

- **Six modes:** `userCasts`, `userProfile`, `castLikes`, `followers`, `following`, `usernameSearch`
- **Identity lookup:** by FID (numeric) or username — usernames are auto-resolved to FIDs
- **Cast records:** text, timestamp, author profile, engagement counts, embeds, thread info
- **User records:** bio, location, follower/following counts, profile picture, verified profile URL
- **Filters:** keyword substring on cast text, minimum reaction count
- **Empty fields are omitted**

### Output per cast

- `hash`, `threadHash`, `parentHash` — cast identifiers
- `text` — cast body
- `timestamp` — UTC ISO time of the cast
- `authorFid`, `authorUsername`, `authorDisplayName`, `authorBio`, `authorFollowerCount`, `authorPfpUrl`
- `parentAuthorUsername`, `parentAuthorDisplayName`
- `replyCount`, `reactionCount`, `recastCount`, `watchCount`
- `embeds[]` — embedded URLs (images, links, frames)
- `farcasterUrl` — viewable cast URL on Warpcast
- `recordType: "cast"`, `scrapedAt`

### Output per user (modes: userProfile, usernameSearch, followers, following)

- `fid`, `username`, `displayName`
- `bio`, `location`, `url`
- `followerCount`, `followingCount`
- `pfpUrl`, `farcasterUrl`
- `recordType: "userProfile"` / `"follower"` / `"following"`, `scrapedAt`

### Output per like (mode=castLikes)

- `likeHash` — the like event's own hash
- `sourceUrl` — canonical URL of the cast that was liked
- `reactorFid`, `reactorUsername`, `reactorDisplayName`, `reactorBio`, `reactorLocation`, `reactorUrl`, `reactorFollowerCount`, `reactorFollowingCount`, `reactorPfpUrl` — profile of the user who liked the cast
- `recordType: "like"`, `scrapedAt`

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `mode` | string | `userCasts` | `userCasts` / `userProfile` / `castLikes` / `followers` / `following` / `usernameSearch` |
| `username` | string | `v` | Farcaster username (used when `fid` is empty) |
| `fid` | integer | – | Farcaster user ID (takes precedence over username) |
| `castHash` | string | – | Cast hash, e.g. `0x854c...` (mode=castLikes) |
| `containsKeyword` | string | – | Only emit casts containing this substring |
| `minReactionCount` | integer | – | Minimum reactions on the cast |
| `maxItems` | integer | `50` | Hard cap (1–1000) |
| `proxyConfiguration` | object | Apify proxy | Optional; auto-engaged only on 403/429 |

#### Example: cast feed for a popular user

```json
{
  "mode": "userCasts",
  "username": "vitalik",
  "maxItems": 20
}
```

#### Example: profile + network

```json
{
  "mode": "followers",
  "fid": 22032,
  "maxItems": 100
}
```

#### Example: engagement on a specific cast

```json
{
  "mode": "castLikes",
  "castHash": "0x854c9bf8d865cb9d25c5855149addc498e82084e"
}
```

#### Example: keyword-filtered cast scan

```json
{
  "mode": "userCasts",
  "username": "v",
  "containsKeyword": "ethereum",
  "minReactionCount": 10,
  "maxItems": 50
}
```

### Use cases

- **Social listening** — track what protocol founders and influencers post
- **Community analytics** — follower/following network extraction
- **Engagement research** — likes, replies and recasts across casts
- **Content archiving** — durable copies of public casts and profiles
- **Influencer discovery** — profile data for outreach databases

### FAQ

**Where does this data come from?** Warpcast, the official Farcaster client, which publishes casts, profiles and engagement counts. No account or API key is needed to read it.

**What is a FID?** A Farcaster user ID — a numeric identifier like `2`. Usernames are resolved to FIDs automatically.

**Why are some counts zero?** Casts without reactions or replies simply have zero engagement — the field is kept as a real `0` count rather than omitted, since zero is itself meaningful data.

**How fresh is the data?** Casts and profiles are fetched live on every run.

**Is this affiliated with Farcaster or Warpcast?** No — this is an independent tool that reads Farcaster's own publicly published data; it isn't operated by, or affiliated with, Farcaster or Warpcast.

### Limitations

- Results are hard-capped at **1000 records per run** (`maxItems`).

# Actor input Schema

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

What to fetch.

## `username` (type: `string`):

Farcaster username, e.g. `v`. Used when `fid` is empty.

## `fid` (type: `integer`):

Farcaster user ID, e.g. `2`. Takes precedence over `username`.

## `castHash` (type: `string`):

Cast hash starting with `0x`, e.g. `0x854c9bf8d865cb9d25c5855149addc498e82084e`.

## `containsKeyword` (type: `string`):

Only emit casts whose text contains this substring (case-insensitive).

## `minReactionCount` (type: `integer`):

Only emit casts with at least this many reactions.

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

Hard cap on emitted records.

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

Optional. Engaged automatically only if the API returns 403/429.

## Actor input object example

```json
{
  "mode": "userCasts",
  "username": "v",
  "maxItems": 50,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `casts` (type: `string`):

Dataset containing all scraped casts.

# 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": "userCasts",
    "username": "v",
    "maxItems": 50,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("nimbryxo-studio/farcaster-cast-profile-and-network-extractor").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": "userCasts",
    "username": "v",
    "maxItems": 50,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("nimbryxo-studio/farcaster-cast-profile-and-network-extractor").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": "userCasts",
  "username": "v",
  "maxItems": 50,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call nimbryxo-studio/farcaster-cast-profile-and-network-extractor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,nimbryxo-studio/farcaster-cast-profile-and-network-extractor"
        }
    }
}
```

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/elg4qO6mEdMTolz07/builds/4Dghd4pZ5EHYSq54Z/openapi.json
