Telegram Group Info Scraper avatar

Telegram Group Info Scraper

Pricing

from $2.49 / 1,000 results

Go to Apify Store
Telegram Group Info Scraper

Telegram Group Info Scraper

Public Telegram groups, channels and bots: name, description, member or subscriber count and members online, read from the public t.me preview pages. No login, no member lists.

Pricing

from $2.49 / 1,000 results

Rating

0.0

(0)

Developer

ScrapeAI

ScrapeAI

Maintained by Community

Actor stats

0

Bookmarked

16

Total users

1

Monthly active users

10 days ago

Last modified

Features

Limited permissions

Share

Telegram Group Info Scraper

Read the public information of Telegram groups, channels and bots: name, description, number of members (or subscribers), members online, verified mark and photo. The data comes from the public preview page that Telegram serves at https://t.me/<username>. No Telegram login is used. This Actor does not return the list of members and it does not collect personal user profiles.

What a run does

  1. Reads https://t.me/robots.txt first. If it cannot be read, or it disallows a path, that page is not requested.
  2. Requests the preview page of each username or link once, one after the other with a pause (default 1 second). Default request headers only: no browser User-Agent, no cookies, no login.
  3. Returns one row per public group, channel or bot. Usernames that do not exist or have no public page are not returned (and not charged); they are listed in RUN_SUMMARY. Personal user profiles are skipped on purpose.
  4. Stops and reports "blocked" when t.me answers HTTP 429 or 403. It does not retry, rotate proxies or try to get around that. The only repeat is one retry after a timeout or connection error.

Requests go out directly from the Actor's IP address. Switch Apify Proxy on in the input only if t.me does not answer from where the Actor runs.

Input

FieldMeaning
usernamesPublic usernames (telegram), @usernames, t.me links (https://t.me/telegram, t.me/s/telegram, tg://resolve?domain=telegram) or invite links (https://t.me/+AbCdEfGh12).
startUrlsOptional t.me links, handled the same way.
maxItemsStop after this many rows (1 to 1000, default 100).
requestDelaySecsPause before every page request (0.5 to 10, default 1).
requestTimeoutSecsTimeout per request (default 30).
proxyConfigurationOff by default.

Entries are de-duplicated. Anything that is not a Telegram username or link is skipped and listed in RUN_SUMMARY.invalidEntries.

Output

One dataset row per group, channel or bot:

FieldMeaning
url, username / inviteCodeThe page and how it was addressed.
typegroup, channel or bot.
titleName shown on the page.
descriptionDescription shown on the page (absent when the page has none).
membersCount, membersLabelMembers of a group or subscribers of a channel, and which of the two it is. Absent for bots.
onlineCountMembers online. Groups only.
isVerifiedTrue when the page shows Telegram's verified check mark.
photoUrlPhoto URL shown on the page (absent when the page shows none).
dataOrigin, sourceUrl, statusCode, scrapedAtWhere and when the row was read: telegram-public-page.

Values are exactly what the page shows. A field the page does not show is absent, never estimated.

RUN_SUMMARY (key-value store) lists the number of requests, rows per type, usernames without a public page (notFound), skipped personal profiles, entries refused by robots.txt, failed requests and why a run stopped early.

Not included

  • Member lists, member profiles, message authors and message history: Telegram shows them only to logged-in Telegram accounts, and this Actor uses no login or user session.
  • Personal user profiles (people) are skipped.
  • Private groups and channels cannot be read without an invite link; an invite link shows only the same preview card.

Run locally

npm start

npm start reads this folder's input.json. Unit tests (real t.me pages saved as fixtures): npm test.