# Telegram Email Scraper (`easyapi/telegram-email-scraper`) Actor

🚀 Effortlessly scrape email addresses from Telegram profile, channels and groups! 📱 Find Telegram content matching your keywords and specific email domains. Perfect for lead generation, community outreach, and networking. Powered by stealth technology for reliable data collection. 📧🕵️‍♂️

- **URL**: https://apify.com/easyapi/telegram-email-scraper.md
- **Developed by:** [EasyApi](https://apify.com/easyapi) (community)
- **Categories:** Lead generation, Social media
- **Stats:** 271 total users, 3 monthly users, 100.0% runs succeeded, 8 bookmarks
- **User rating**: 1.00 out of 5 stars

## Pricing

from $2.99 / 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.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## 📱 Telegram Email Scraper

This Actor scrapes email addresses from Telegram channels and groups using Google search results. It's designed to find Telegram content that matches your keyword and contains email addresses from specified domains.

### ✨ Features

- 🔍 Search for Telegram channels and groups using custom keywords
- 📧 Extract email addresses matching specific domains
- 💬 Collect Telegram channel/group titles and URLs
- 📝 Gather contextual text from search snippets
- 🔢 Configurable maximum number of results
- 🕵️‍♂️ Uses stealth mode to avoid detection
- 🔄 Automatic pagination through Google search results

### 📥 Input

The Actor accepts the following input parameters:

- `keyword` (required): The search term to find relevant Telegram content
- `emailDomains` (required): An array of email domains to match (e.g., \["gmail.com", "yahoo.com"])
- `maxResults` (optional): The maximum number of email addresses to scrape (default: 100)

### 📤 Output

The Actor outputs a dataset containing the following information for each scraped email:

- 🔑 Search keyword used
- 📧 Matched email domains
- 📨 Extracted email address
- 📛 Result title
- 🔗 Telegram channel/group URL
- 📝 Contextual text from the search snippet

### 🚀 Usage

To use this Actor, provide a search keyword related to the Telegram content you're interested in, an array of email domains to match, and optionally set the maximum number of results. The Actor will then search Google for Telegram content, extracting matching email addresses until it reaches the specified limit or exhausts all available results.

This Actor is perfect for lead generation, community outreach, or anyone looking to gather contact information from Telegram users in specific niches or industries.

### 💡 Use Cases

- 🎯 Lead Generation: Find potential customers or partners with specific email domains on Telegram
- 📣 Community Outreach: Collect contact information for targeted Telegram group campaigns
- 🔬 Market Research: Analyze Telegram users and their contact preferences in specific sectors
- 🤝 Networking: Identify and reach out to potential collaborators or industry peers

### 🆘 Support

If you encounter any issues or have questions about using this Actor, please don't hesitate to reach out through Apify's support channels.

#### Input Example

A full explanation of an input example in JSON.

```
{
  "keyword": 'marketing',
  "emailDomains": ['gmail.com', 'yahoo.com', 'hotmail.com'],
  "maxResults": 10
}
```

#### Output sample

The results will be wrapped into a dataset which you can always find in the **Storage** tab. Here's an excerpt from the data you'd get if you apply the input parameters above:

And here is the same data but in JSON. You can choose in which format to download your data: JSON, JSONL, Excel spreadsheet, HTML table, CSV, or XML.

```
[
	{
		"keywords": "marketing",
		"emailDomains": "gmail.com, yahoo.com, hotmail.com",
		"email": "ignouepathshala@gmail.com",
		"title": "IGNOU epathshala",
		"url": "https://t.me/s/IGNOUSQUAD?before=1615",
		"text": "Please share MCO -1 paper at ignouepathshala@gmail.com. 4.1K views 00:49 ... MARKETING ENTRY DECISIONS: ASSEMBLY OPERATIONS & JOINT VENTURE | UNIT-6 ..."
	},
	{
		"keywords": "marketing",
		"emailDomains": "gmail.com, yahoo.com, hotmail.com",
		"email": "vincintoire@gmail.com",
		"title": "Worka Nigeria",
		"url": "https://t.me/s/workanigeria?before=12719",
		"text": "Minimum of 2 years experience on Role or related job. Qualified candidates should send their CVs to vincintoire@gmail.com using position as title. Only ..."
	},
    ...
]
```

# Actor input Schema

## `keyword` (type: `string`):

Enter the keyword to search for relevant Telegram channels and groups

## `emailDomains` (type: `array`):

Enter the email domains to match (e.g., gmail.com, yahoo.com)

## `maxResults` (type: `integer`):

Set the maximum number of email addresses to scrape. The actor will stop when this limit is reached.

## Actor input object example

```json
{
  "keyword": "crypto community",
  "emailDomains": [
    "gmail.com",
    "yahoo.com",
    "hotmail.com"
  ],
  "maxResults": 10
}
```

# 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("easyapi/telegram-email-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("easyapi/telegram-email-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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 easyapi/telegram-email-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=easyapi/telegram-email-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/acts/RBly377Eqw90HD2te/builds/HELgEt3XSnMo11Ra7/openapi.json
