Telegram Channels Scraper avatar
Telegram Channels Scraper

Pricing

Pay per usage

Go to Store
Telegram Channels Scraper

Telegram Channels Scraper

Developed by

Mike

Mike

Maintained by Community

Scrapes channels data from Telegram

5.0 (1)

Pricing

Pay per usage

0

Total users

7

Monthly users

7

Last modified

3 days ago

Telegram Channel Parser Actor

A Actor that scrapes public Telegram channels using Selenium and Chrome. It extracts channel info (avatar, subscribers, title, description, media/video/link counts, verification) and recent messages, then saves the results to Apify Dataset. Input is a list of channel usernames or links and a message limit.

Features

  • Apify SDK for Python — seamless integration with Apify platform (input, dataset, logging)
  • Selenium + Chrome — robust scraping of Telegram web (bypasses most anti-bot)
  • Channel info extraction — avatar, subscribers, title, description, media/video/link counters, verification status
  • Message scraping — collects recent messages with id, date, text, views, author
  • Flexible input — accepts both @usernames and t.me links
  • Error handling — logs missing elements, saves debug HTML for troubleshooting

How it works

  • Reads input with a list of channels (usernames or t.me links) and messages_limit.
  • For each channel:
    • Loads main page (https://t.me/<username>) and preview page (https://t.me/s/<username>) to extract all available info.
    • Scrapes up to messages_limit recent messages (id, date, text, views, author).
    • Pushes a single object per channel to the Apify Dataset.

Input

1{
2  "channels": [
3    { "url": "https://t.me/somechannel" },
4    { "url": "@anotherchannel" },
5    { "url": "thirdchannel" }
6  ],
7  "messages_limit": 20
8}
  • channels: List of objects with a url field (can be username, @username, or t.me link)
  • messages_limit: Max number of messages to collect per channel (0 = skip messages)

Output

Each dataset item is an object like:

1{
2  "username": "somechannel",
3  "avatar_url": "https://cdn4.telesco.pe/file/...",
4  "subscribers": 12345,
5  "title": "Channel Title",
6  "verified": true,
7  "description": "Channel description...",
8  "media_count": 100,
9  "video_count": 20,
10  "link_count": 5,
11  "messages": [
12    {
13      "id": "1234",
14      "date": "2024-06-01T12:34:56+00:00",
15      "text": "Message text",
16      "views": "123",
17      "author": "Admin"
18    }
19    // ...
20  ]
21}