# Twitter Email Scraper

**Use case:** 

Find up to 50 public X profiles from the B2B SaaS keyword query and keep only profiles that publish an email. Each lead profile row includes the public identity, profile URL, and available bio, audience, contact, and link fields.

## Input

```json
{
  "resultType": "leadProfiles",
  "profileSearch": {
    "findProfilesBy": "keywordQuery",
    "keywordQuery": "B2B SaaS",
    "maxCandidates": 50
  },
  "relationshipSearch": {
    "collectAccountsBy": "followers",
    "relationshipResultFormat": "username"
  },
  "requireEmail": true,
  "requireWebsite": false
}
```

## Output

```json
{
  "recordType": {
    "label": "Record type",
    "format": "text"
  },
  "userId": {
    "label": "User ID",
    "format": "text"
  },
  "username": {
    "label": "Username",
    "format": "text"
  },
  "displayName": {
    "label": "Display name",
    "format": "text"
  },
  "profileUrl": {
    "label": "Profile URL",
    "format": "link"
  },
  "submittedReference": {
    "label": "Submitted reference",
    "format": "text"
  },
  "discoveryQuery": {
    "label": "Discovery query",
    "format": "text"
  },
  "bio": {
    "label": "Bio",
    "format": "text"
  },
  "location": {
    "label": "Location",
    "format": "text"
  },
  "followersCount": {
    "label": "Followers",
    "format": "number"
  },
  "followingCount": {
    "label": "Following",
    "format": "number"
  },
  "postsCount": {
    "label": "Posts",
    "format": "number"
  },
  "followerTier": {
    "label": "Follower tier",
    "format": "text"
  },
  "emails": {
    "label": "Emails",
    "format": "array"
  },
  "primaryEmail": {
    "label": "Primary email",
    "format": "text"
  },
  "phoneNumber": {
    "label": "Phone number",
    "format": "text"
  },
  "websiteUrl": {
    "label": "Website",
    "format": "link"
  },
  "publishedLinks": {
    "label": "Published links",
    "format": "array"
  },
  "isVerified": {
    "label": "Verified",
    "format": "boolean"
  },
  "isProtected": {
    "label": "Protected",
    "format": "boolean"
  },
  "createdAt": {
    "label": "Created at",
    "format": "date"
  },
  "profileImageUrl": {
    "label": "Profile image",
    "format": "image"
  },
  "relationshipType": {
    "label": "Relationship type",
    "format": "text"
  },
  "relationshipTarget": {
    "label": "Relationship target",
    "format": "text"
  },
  "identifierType": {
    "label": "Identifier type",
    "format": "text"
  },
  "accountIdentifier": {
    "label": "Account identifier",
    "format": "text"
  }
}
```

## About this Actor

This example demonstrates how to use [Twitter Lead Scraper](https://apify.com/maximedupre/twitter-lead-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/maximedupre/twitter-lead-scraper.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/maximedupre/twitter-lead-scraper.md

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`).
