Skip to content
OSINTtools.io

TGStat API

Telegram channel and group catalog with search, audience statistics, post search and mention tracking.

Base URL
https://api.tgstat.ru
Sign-in
API key
Format
REST
Endpoints
5

Compiled by OSINTtools.io editors from api.tgstat.ru · updated Nov 29, 2026Work on this API? Claim it to keep these docs currentReport a mistake

Introduction

TGStat's API returns statistics about Telegram channels and chats (subscribers, reach, engagement, citation index) and searches Telegram posts by keyword. An investigator can use it to identify a channel from its username or link, see how large and active it is, and find public posts that mention a term.

Every call is a GET to https://api.tgstat.ru with your personal token in the token query parameter. Responses are JSON with status (ok or error) and a response object. The docs are published in Russian.

Access is metered by plan: a monthly request quota, unique channels (API Stat) and unique keywords (API Search). The docs refer to the pricing pages for the figures. The API also has callback (webhook) methods and further channel and post methods that are not covered here.

Quick start

  1. Get a key

    Create an account with TGStat and copy your api key. Where to get it

  2. Make your first request

    Basic information about a Telegram channel or chat.. Replace YOUR_API_KEY and run it in a terminal, or use Try it on the endpoint.

    curl 'https://api.tgstat.ru/channels/get?channelId=%40example_channel&token=YOUR_API_KEY'
  3. Read the response

    A 200 response looks like this.

    {
      "status": "ok",
      "response": {
        "id": 1000001,
        "tg_id": 1000000001,
        "link": "t.me/example_channel",
        "peer_type": "channel",
        "username": "@example_channel",
        "title": "Example channel",
        "about": "An example description",
        "participants_count": 1500,
        "ci_index": 12.5,
        "created_at": 1500000000
      }
    }

Authentication

Send your API key in the token query parameter of every request.

Each user gets a personal token in their TGStat account.

Get a key from TGStat

Try it on this page keeps your key in your browser; it is never sent to OSINTtools.io.

Rate limits and pricing

Quota by plan: total requests per month, unique channels (API Stat) and unique keywords (API Search). Figures are on the pricing pages.

  • Premium analytics₽3,360/month · Extended channel statistics, one personal account
  • Premium search₽2,940/month · Extended post search, one personal account
  • Corporate analytics₽6,720/month · Premium analytics for a company, one account
  • API Stat S₽2,100/month · Statistics API

Plans from tgstat.com, checked Nov 25, 2026.

Channels

Returns the channel's identifiers, title, description, category, country, language, subscriber count, citation index and creation date. Works for channels and chats. Available on all plans of API Stat and API Search.

Query parameters

channelIdstringrequiredtakes your username

Channel or chat: @username, t.me/username, a t.me/joinchat/... invite link, or the TGStat ID

Example: @example_channel
Response fields · 15Show

statusstring

ok on success

idinteger

TGStat internal ID

tg_idinteger

Telegram ID

linkstring

Channel link

peer_typestring

channel or chat

usernamestring

Main username

active_usernamesstring[]

Active usernames

titlestring

Name

aboutstring

Description

categorystring

Category

countrystring

Country

languagestring

Content language

participants_countinteger

Current subscriber count

ci_indexnumber

Citation index

created_atinteger

Creation date in Telegram, Unix timestamp

curl 'https://api.tgstat.ru/channels/get?channelId=%40example_channel&token=YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "status": "ok",
  "response": {
    "id": 1000001,
    "tg_id": 1000000001,
    "link": "t.me/example_channel",
    "peer_type": "channel",
    "username": "@example_channel",
    "title": "Example channel",
    "about": "An example description",
    "participants_count": 1500,
    "ci_index": 12.5,
    "created_at": 1500000000
  }
}

For a channel: subscribers, average post reach, advertising reach, ERR, citation index and counts of mentions and forwards. For a chat: active participants per day, week and month and message counts. Included in API Stat on all plans.

Query parameters

channelIdstringrequiredtakes your username

Channel or chat: @username, t.me/username, an invite link, or the TGStat ID

Example: @example_channel
Response fields · 12Show

statusstring

ok on success

idinteger

Internal ID

peer_typestring

channel or chat

participants_countinteger

Subscribers at request time

avg_post_reachinteger

Average post reach (channels)

err_percentnumber

Subscriber engagement rate, percent (channels)

ci_indexnumber

Citation index (channels)

mentions_countinteger

Mentions in other channels (channels)

forwards_countinteger

Forwards to other channels (channels)

posts_countinteger

Non-deleted posts (channels)

dauinteger

Active participants in the last day (chats)

mauinteger

Active participants in the last month (chats)

curl 'https://api.tgstat.ru/channels/stat?channelId=%40example_channel&token=YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "status": "ok",
  "response": {
    "id": 1000001,
    "title": "Example channel",
    "username": "@example_channel",
    "peer_type": "channel",
    "participants_count": 1500,
    "avg_post_reach": 900,
    "err_percent": 60.2,
    "ci_index": 12.5,
    "mentions_count": 40,
    "forwards_count": 25,
    "posts_count": 800
  }
}

Posts

Account

  • Passive: the target is not contacted
  • Cost: Not billed
  • Plan: API Stat and API Search, all plans

One object per activated plan, with requests and unique channels, keywords or objects used out of allowed. Not billed.

Response fields · 7Show

statusstring

ok on success

serviceKeystring

Plan identifier, e.g. api_stat_l

titlestring

Plan name

spentRequestsstring

Requests used/allowed

spentChannelsstring

Unique channels used/allowed (Stat plans)

spentWordsstring

Unique keywords used/allowed (Search plans)

expiredAtinteger

Plan expiry, Unix timestamp

curl 'https://api.tgstat.ru/usage/stat?token=YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "status": "ok",
  "response": [
    {
      "serviceKey": "api_stat_l",
      "title": "API Stat L",
      "spentChannels": "10/1000",
      "spentRequests": "50/30000",
      "expiredAt": 1795000000
    }
  ]
}