# Telegram Group Members Scraper: Usernames, Premium & Last Seen (`memo23/telegram-group-members-scraper`) Actor

Export members of public Telegram groups: user ID, username, name, profile link, Premium, verified, bot, scam and fake flags, and last seen, with the group's title and size. Filter by last seen, Premium or username. No login. $0.80 per 1,000 members.

- **URL**: https://apify.com/memo23/telegram-group-members-scraper.md
- **Developed by:** [Muhamed Didovic](https://apify.com/memo23) (community)
- **Categories:** Social media, Lead generation
- **Features:** Limited permissions
- **Stats:** 4 total users, 3 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.80 / 1,000 group members

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-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

## Telegram Group Members Scraper: Usernames, Premium & Last Seen

Export the **members of public Telegram groups** without a login, a phone number or a Telegram account. Every row gives the member's **user ID, @username, name, t.me profile link, Premium, verified, bot, scam and fake flags**, and **when they were last seen** (an exact time, or Telegram's "online", "recently", "within a week" or "within a month"), along with the group's title and size. Filter by Premium, username or last seen, and pay only for the members you keep. **$0.80 per 1,000 members, no start fee.**

![How the Telegram Group Members Scraper works](https://api.apify.com/v2/key-value-stores/sJ3F5TcgY485SACXa/records/how-it-works-telegram-group-members.png)

```json
{
  "groups": ["nodejs_ru", "https://t.me/javascript_ru"],
  "maxMembersPerGroup": 1000
}
```

| Input | Rows |
|---|---|
| Public group name, @name or t.me link | One row per visible member, up to 2,000 a group |
| Broadcast channel | No rows: channels do not show their subscribers (not charged) |
| Invite link or private group | Skipped with a note in the log (not charged) |

### Why Use This Scraper?

- **No Telegram account.** Nothing to log in to, no session file, no phone number, no risk to your own account.
- **Filters that cost nothing.** Leave out bots, keep only Premium members, only members with a @username, or only people seen in the last 3, 7 or 30 days. Members a filter leaves out are not charged.
- **Last seen, kept honest.** You get the exact time when the member shows it, and Telegram's own rounded status when they do not, in two separate fields.
- **Group context on every row.** Each member carries the group's name, title and member count, so a run across many groups stays easy to sort.
- **One row per person if you want it.** Turn on de-duplication and a person who sits in several of your groups is saved once.
- **No start fee.** $0.80 per 1,000 members and nothing per run beyond Apify's own $0.00005, so a 100-member check costs $0.08.

### Use Cases

- **Community research:** see who is active in the groups around a topic, product or region.
- **Audience building:** collect the @usernames of active members in groups your audience already joins.
- **Moderation and safety:** check a group for bots and accounts Telegram marks as scam or fake.
- **Competitor communities:** compare the size and activity of rival groups over time.
- **Overlap analysis:** run several groups with de-duplication off and find the people they share.

### How It Works

1. Put one or more public group names or links in **groups**.
2. The actor reads each group's visible member list, up to your **max members per group** (2,000 at most), several groups at a time.
3. Your filters are applied, the group's title and size are added, and each kept member is saved as one row.
4. Download the dataset as JSON, CSV, Excel or HTML, or read it from the API.

A list of 1,000 members takes about 3 minutes; six groups are worked on at the same time.

### Input Configuration

| Field | Type | Default | What it does |
|---|---|---|---|
| `groups` | array | — | Public group names, @names or t.me links (a message link from the group works too). |
| `maxMembersPerGroup` | integer | 1000 | Members saved from each group, 1 to 2,000. |
| `includeGroupInfo` | boolean | true | Adds the group's title and member count to every row. Free. |
| `includeBots` | boolean | false | Keep bots in the output. Off by default. |
| `onlyWithUsername` | boolean | false | Keep only members with a public @username. |
| `onlyPremium` | boolean | false | Keep only Telegram Premium members. |
| `lastSeenWithin` | string | `any` | `any`, `recently` (about 3 days), `week` or `month`. |
| `dedupeAcrossGroups` | boolean | false | Save a person once even when they are in several groups. |
| `maxItems` | integer | 10000 | Cap on member rows across all groups. Free-plan runs return up to 100. |

#### Example input

Active Premium members with a username, from two groups, each person once:

```json
{
  "groups": ["nodejs_ru", "https://t.me/javascript_ru"],
  "maxMembersPerGroup": 2000,
  "onlyPremium": true,
  "onlyWithUsername": true,
  "lastSeenWithin": "week",
  "dedupeAcrossGroups": true
}
```

### Output Samples

The values below are made up; the fields are what you get.

```json
{
  "group": "nodejs_ru",
  "groupUrl": "https://t.me/nodejs_ru",
  "groupTitle": "Node.js — русскоговорящее сообщество",
  "groupMemberCount": 7591,
  "memberId": 1234567890,
  "username": "example_dev",
  "name": "Alex Example",
  "profileUrl": "https://t.me/example_dev",
  "isBot": false,
  "isPremium": true,
  "isVerified": false,
  "isScam": false,
  "isFake": false,
  "lastSeenStatus": "exact",
  "lastSeenAt": "2026-11-07T18:49:08.000Z",
  "phone": null,
  "scrapedAt": "2026-11-07T21:32:18.027Z"
}
```

A member who hides the exact time and has no @username:

```json
{
  "group": "javascript_ru",
  "groupUrl": "https://t.me/javascript_ru",
  "groupTitle": "javascript_ru",
  "groupMemberCount": 25310,
  "memberId": 9876543210,
  "username": null,
  "name": "Sam",
  "profileUrl": null,
  "isBot": false,
  "isPremium": false,
  "isVerified": false,
  "isScam": false,
  "isFake": false,
  "lastSeenStatus": "recently",
  "lastSeenAt": null,
  "phone": null,
  "scrapedAt": "2026-11-07T21:32:18.027Z"
}
```

### Key Output Fields

| Field | Meaning |
|---|---|
| `memberId` | The member's permanent numeric Telegram user ID. Stays the same if they change their @username. |
| `username`, `profileUrl` | Public @username and its t.me link; `null` when the member has none (about a third of members in our tests). |
| `name` | Display name as the member set it. |
| `isPremium`, `isVerified`, `isBot`, `isScam`, `isFake` | Telegram's own flags for the account. |
| `lastSeenStatus` | `exact`, `online`, `recently`, `within_week`, `within_month` or `unknown` (hidden, or seen a long time ago). |
| `lastSeenAt` | The exact last-seen time, only when `lastSeenStatus` is `exact`. |
| `phone` | Only when the member made their number public, which is rare (none in our tests). |
| `group`, `groupTitle`, `groupMemberCount` | Which group the member was found in, its title and its total member count. |

### FAQ

**Do I need a Telegram account or API keys?**
No. Give group names and run it.

**Why did I get fewer members than the group has?**
Telegram shows outsiders only part of a large group's member list, and the actor saves up to 2,000 a group. Some groups hide their member list completely; for those only the recently active members are visible, and the run log says so (for example "the group shows 16 of its 93,480 members").

**Can I scrape a channel's subscribers?**
No. Broadcast channels do not show their subscribers to anyone but their admins. A channel in your input returns no rows and costs nothing.

**What about private groups and invite links?**
They cannot be read without joining, so they are skipped and noted in the log.

**Are filtered-out members charged?**
No. You pay only for the rows saved to your dataset.

**How fresh is the data?**
Every run reads the group at that moment.

### Pricing

- **$0.80 per 1,000 members** saved ($0.0008 a member).
- No start fee beyond Apify's own $0.00005 a run.
- Members left out by your filters, empty groups, channels and skipped links are free.
- Free-plan accounts get up to 100 members a run to try it.

### Support

Found a group that should work and does not, or need a field we do not return? Open an issue on the Issues tab and include the group name. We read every issue.

### Explore More Scrapers

- [Telegram Channel Scraper](https://apify.com/memo23/telegram-channel-scraper): posts, views and media from public channels.
- [Telegram Channel Info Scraper](https://apify.com/memo23/telegram-channel-info-scraper): member counts, bios and links of channels and groups.
- [Telegram Keyword Search Scraper](https://apify.com/memo23/telegram-keyword-search-scraper): posts that mention a keyword across public channels.

### 🤖 For AI Agents & LLM Apps

Call it with `{"groups": ["<group name or t.me link>"], "maxMembersPerGroup": 200}` and read the default dataset. Each row is one member with stable keys; `memberId` is the join key across groups and runs. Use `lastSeenWithin` and `onlyWithUsername` to keep results small, and `dedupeAcrossGroups` when asking about people rather than memberships.

### ⚠️ Disclaimer

This actor collects only information that Telegram shows publicly to anyone who opens the group. It does not join groups, log in or read private chats. Member data is personal data: you are responsible for having a lawful basis to process it under the laws that apply to you (for example the GDPR) and for following Telegram's Terms of Service. Do not use the output for spam or unsolicited bulk messaging. This actor is not affiliated with or endorsed by Telegram.

### SEO Keywords

telegram group members scraper, telegram member scraper, telegram members export, scrape telegram group members, telegram group member list, telegram user scraper, telegram username scraper, telegram premium users, telegram last seen, telegram audience, telegram community members, telegram supergroup members, export telegram members csv

# Actor input Schema

## `groups` (type: `array`):

Public group names or links: nodejs_ru, @nodejs_ru, https://t.me/nodejs_ru or a message link from the group. Invite links (t.me/+…) and private groups cannot be read. Broadcast channels do not show their subscribers, so they return no members.

## `maxMembersPerGroup` (type: `integer`):

Members saved from each group, up to 2,000. Some groups show only part of their members to outsiders, and groups that hide their member list show only recently active members.

## `includeGroupInfo` (type: `boolean`):

Adds the group's title and member count to every member row. Free; the run takes no longer.

## `includeBots` (type: `boolean`):

Bots in the group (anti-spam, admin and service bots). Off by default, so only people are saved and charged.

## `onlyWithUsername` (type: `boolean`):

Keep only members who have a public @username, so each row has a t.me link you can open or message.

## `onlyPremium` (type: `boolean`):

Keep only members with a Telegram Premium subscription.

## `lastSeenWithin` (type: `string`):

Keep only members active within this window, by their exact last-seen time or Telegram's rounded status. Members who hide their last seen and show no status are left out by any window.

## `dedupeAcrossGroups` (type: `boolean`):

When a person is in several of your groups, save them once (from the first group) instead of once per group.

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

Cap on member rows across all groups. Free-plan runs return up to 100.

## Actor input object example

```json
{
  "groups": [
    "nodejs_ru"
  ],
  "maxMembersPerGroup": 1000,
  "includeGroupInfo": true,
  "includeBots": false,
  "onlyWithUsername": false,
  "onlyPremium": false,
  "lastSeenWithin": "any",
  "dedupeAcrossGroups": false,
  "maxItems": 10000
}
```

# Actor output Schema

## `results` (type: `string`):

Members of the groups given, with group, user ID, username, name, Premium and last seen.

# 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 = {
    "groups": [
        "nodejs_ru"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("memo23/telegram-group-members-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 = { "groups": ["nodejs_ru"] }

# Run the Actor and wait for it to finish
run = client.actor("memo23/telegram-group-members-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 '{
  "groups": [
    "nodejs_ru"
  ]
}' |
apify call memo23/telegram-group-members-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,memo23/telegram-group-members-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/bY7ekT6tTMnJEdc2U/builds/mi4fdsdIZFe3isvB3/openapi.json
