# TGStat API reference

> 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…

Source: https://osinttools.io/apis/tgstat/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

Compiled by OSINTtools.io editors from the vendor's docs, updated Nov 29, 2026. Listing: https://osinttools.io/tools/tgstat/

- Base URL: https://api.tgstat.ru
- Authentication: API key in the `token` query parameter. Get a key: https://tgstat.ru/ Each user gets a personal token in their TGStat account.
- Rate limits: Quota by plan: total requests per month, unique channels (API Stat) and unique keywords (API Search). Figures are on the pricing pages.
- Vendor docs: https://api.tgstat.ru/docs/ru/start/intro.html

## Overview

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.

## Channels

### Basic information about a Telegram channel or chat.

`GET /channels/get`

- Takes: Username, URL
- Footprint: passive (the target is not contacted)
- Plan: All plans

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.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `channelId` | query | string | yes | Channel or chat: @username, t.me/username, a t.me/joinchat/... invite link, or the TGStat ID Example: @example_channel |

Response fields:

- `status` (string): ok on success
- `response.id` (integer): TGStat internal ID
- `response.tg_id` (integer): Telegram ID
- `response.link` (string): Channel link
- `response.peer_type` (string): channel or chat
- `response.username` (string): Main username
- `response.active_usernames` (string[]): Active usernames
- `response.title` (string): Name
- `response.about` (string): Description
- `response.category` (string): Category
- `response.country` (string): Country
- `response.language` (string): Content language
- `response.participants_count` (integer): Current subscriber count
- `response.ci_index` (number): Citation index
- `response.created_at` (integer): Creation date in Telegram, Unix timestamp

```bash
curl 'https://api.tgstat.ru/channels/get?channelId=%40example_channel&token=YOUR_API_KEY'
```

Example response (200):

```json
{
  "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
  }
}
```

### Reach, engagement and mention statistics for a channel or chat.

`GET /channels/stat`

- Takes: Username, URL
- Footprint: passive (the target is not contacted)
- Plan: API Stat, all plans

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.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `channelId` | query | string | yes | Channel or chat: @username, t.me/username, an invite link, or the TGStat ID Example: @example_channel |

Response fields:

- `status` (string): ok on success
- `response.id` (integer): Internal ID
- `response.peer_type` (string): channel or chat
- `response.participants_count` (integer): Subscribers at request time
- `response.avg_post_reach` (integer): Average post reach (channels)
- `response.err_percent` (number): Subscriber engagement rate, percent (channels)
- `response.ci_index` (number): Citation index (channels)
- `response.mentions_count` (integer): Mentions in other channels (channels)
- `response.forwards_count` (integer): Forwards to other channels (channels)
- `response.posts_count` (integer): Non-deleted posts (channels)
- `response.dau` (integer): Active participants in the last day (chats)
- `response.mau` (integer): Active participants in the last month (chats)

```bash
curl 'https://api.tgstat.ru/channels/stat?channelId=%40example_channel&token=YOUR_API_KEY'
```

Example response (200):

```json
{
  "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
  }
}
```

### Search channels and chats by keyword, category, country and language.

`GET /channels/search`

- Takes: Name
- Footprint: passive (the target is not contacted)
- Plan: API Stat, tariff S and higher

Needs at least one of q or category. The country parameter is required. q must be at least 3 characters. Available in API Stat on tariff S and higher.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `q` | query | string | no | Keyword, minimum 3 characters Example: example |
| `search_by_description` | query | integer | no | 1 to search the description as well One of: 0, 1 |
| `peer_type` | query | string | no | Type of object One of: channel, chat, all |
| `country` | query | string | yes | Channel country; values come from the countries reference (database/countries) Example: russia |
| `language` | query | string | no | Content language (database/languages) |
| `category` | query | string | no | Category (database/categories) |
| `limit` | query | integer | no | Maximum channels returned, up to 100 |

Response fields:

- `status` (string): ok on success
- `response.count` (integer): Records in items
- `response.items[].id` (integer): TGStat internal ID
- `response.items[].username` (string): Username with @
- `response.items[].title` (string): Title
- `response.items[].about` (string): Description
- `response.items[].peer_type` (string): channel or chat
- `response.items[].participants_count` (integer): Subscribers
- `response.items[].ci_index` (number): Citation index

```bash
curl 'https://api.tgstat.ru/channels/search?country=russia&token=YOUR_API_KEY'
```

Example response (200):

```json
{
  "status": "ok",
  "response": {
    "count": 1,
    "items": [
      {
        "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
      }
    ]
  }
}
```

## Posts

### Search public Telegram posts by text, newest first.

`GET /posts/search`

- Footprint: passive (the target is not contacted)
- Plan: API Search, all plans

Returns posts containing the search text. startDate defaults to 10 days before now. Add extended=1 to include the channels array. Available in API Search on all plans.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `q` | query | string | yes | Search text Example: example phrase |
| `limit` | query | integer | no | Results to return, up to 50 |
| `offset` | query | integer | no | Pagination offset, up to 1000 |
| `peerType` | query | string | no | Source type One of: channel, chat, all |
| `startDate` | query | integer | no | Published from, Unix timestamp |
| `endDate` | query | integer | no | Published to, Unix timestamp |
| `country` | query | string | no | Channel country |
| `language` | query | string | no | Channel language |
| `category` | query | string | no | Channel category |
| `hideForwards` | query | integer | no | 1 hides reposts One of: 0, 1 |
| `hideDeleted` | query | integer | no | 1 hides deleted posts One of: 0, 1 |
| `strongSearch` | query | integer | no | 1 disables morphology and partial-word matching One of: 0, 1 |
| `minusWords` | query | string | no | Excluded words, separated by spaces |
| `extendedSyntax` | query | integer | no | 1 uses extended query syntax One of: 0, 1 |
| `extended` | query | integer | no | 1 adds channels to the response One of: 0, 1 |

Response fields:

- `status` (string): ok on success
- `response.count` (integer): Records in items
- `response.total_count` (integer): Total matching posts
- `response.items[].id` (integer): Post ID
- `response.items[].date` (integer): Publication time, Unix timestamp
- `response.items[].link` (string): Link to the post
- `response.items[].channel_id` (integer): Channel ID
- `response.items[].views` (integer): Views
- `response.items[].is_deleted` (boolean): Whether the post is deleted
- `response.items[].text` (string): Post text
- `response.items[].snippet` (string): Matching snippet
- `response.channels[]` (object): Channel objects, only with extended=1

```bash
curl 'https://api.tgstat.ru/posts/search?q=example%20phrase&token=YOUR_API_KEY'
```

Example response (200):

```json
{
  "status": "ok",
  "response": {
    "count": 1,
    "total_count": 1,
    "items": [
      {
        "id": 2000001,
        "date": 1790000000,
        "link": "t.me/example_channel/10",
        "channel_id": 1000001,
        "views": 500,
        "is_deleted": false,
        "text": "An example post",
        "snippet": "An example post"
      }
    ]
  }
}
```

## Account

### Your plans and how much of each quota is used.

`GET /usage/stat`

- Footprint: 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:

- `status` (string): ok on success
- `response[].serviceKey` (string): Plan identifier, e.g. api_stat_l
- `response[].title` (string): Plan name
- `response[].spentRequests` (string): Requests used/allowed
- `response[].spentChannels` (string): Unique channels used/allowed (Stat plans)
- `response[].spentWords` (string): Unique keywords used/allowed (Search plans)
- `response[].expiredAt` (integer): Plan expiry, Unix timestamp

```bash
curl 'https://api.tgstat.ru/usage/stat?token=YOUR_API_KEY'
```

Example response (200):

```json
{
  "status": "ok",
  "response": [
    {
      "serviceKey": "api_stat_l",
      "title": "API Stat L",
      "spentChannels": "10/1000",
      "spentRequests": "50/30000",
      "expiredAt": 1795000000
    }
  ]
}
```

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
