Discover/TGStat API
live

TGStat APIin.tgstat.com

Search Telegram channels and groups, retrieve ranked lists, and fetch detailed channel profiles including subscriber counts and category metadata via the TGStat India API.

This API takes change requests — .
Endpoint health
verified 7d ago
search_channels
get_ratings_channels
get_ratings_groups
get_channel_profile
4/4 passing latest checkself-healing
Endpoints
4
Updated
28d ago

What is the TGStat API?

The TGStat India API exposes 4 endpoints for discovering and profiling Telegram channels and groups. Use search_channels to run full-text searches across Telegram with filters for country, category, and sort order, or call get_channel_profile to retrieve a channel's title, description, subscriber metrics, category, and geo/language metadata for any public Telegram handle.

Try it
Pagination page number (zero-based), use nextPage from previous response to get next page of results
Sort order for results
Keyword to search for in channel name or description
Country ID to filter results by (e.g. 8 for India, 1 for Russia). Omit to search globally.
Category name to filter by (e.g. education, cryptocurrencies, news)
api.parse.bot/scraper/ebf74fe8-f81a-4263-8013-8aa752ee2694/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Call it over HTTPgrab a free API key at signup
curl -X POST 'https://api.parse.bot/scraper/ebf74fe8-f81a-4263-8013-8aa752ee2694/search_channels' \
  -H 'X-API-Key: $PARSE_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "page": "0",
  "sort": "participants",
  "query": "education",
  "country": "8",
  "category": "education"
}'
Python SDK · recommended

Typed, relational, agent-ready

A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.

  • Fully typed · autocompletes
  • Objects link to objects
  • Typed errors & pagination

Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:

uv add parse-sdk
uv run parse init
uv run parse add --marketplace tgstat-api

uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.

"""Walkthrough: TGStat SDK — search channels, view ratings, get profiles."""
from parse_apis.tgstat_api import TGStat, SearchSort, ChannelNotFound

client = TGStat()

# Search for education channels in India, sorted by subscribers
for ch in client.channelsummaries.search(query="education", country=8, sort=SearchSort.PARTICIPANTS, limit=5):
    print(ch.name, ch.subscribers)

# Get top-rated channels in the education category
top = client.channelsummaries.rated(category="education", sort="members", limit=3).first()
if top:
    print(top.name, top.handle, top.subscribers)

    # Drill into full profile from a summary
    profile = top.details()
    print(profile.title, profile.metrics, profile.info)

# List top groups by members
for group in client.groupsummaries.rated(sort="members", limit=3):
    print(group.name, group.handle)

# Handle a channel that doesn't exist
try:
    missing = client.channelsummaries.search(query="zzz_nonexistent_xyz", limit=1).first()
    if missing:
        missing.details()
except ChannelNotFound as exc:
    print(f"Channel not found: {exc.username}")

print("exercised: channelsummaries.search / channelsummaries.rated / details / groupsummaries.rated")
All endpoints · 4 totalmissing one? ·

Full-text search over Telegram channels with filters for country, category, and sort order. Returns a paginated list of channel summaries. Pagination advances via the integer page counter returned in nextPage. Each result includes the channel name, handle, and subscriber count but not full profile details — use get_channel_profile for those.

Input
ParamTypeDescription
pageintegerPagination page number (zero-based), use nextPage from previous response to get next page of results
sortstringSort order for results
querystringKeyword to search for in channel name or description
countryintegerCountry ID to filter results by (e.g. 8 for India, 1 for Russia). Omit to search globally.
categorystringCategory name to filter by (e.g. education, cryptocurrencies, news)
Response
{
  "type": "object",
  "fields": {
    "hasMore": "boolean indicating if more results are available",
    "channels": "array of channel summary objects with name, handle, tgstat_id, and subscribers fields",
    "nextPage": "integer page number for fetching next page of results",
    "nextOffset": "integer offset for next page"
  },
  "sample": {
    "data": {
      "hasMore": true,
      "channels": [
        {
          "name": "Rajasthan Vacancy Education News",
          "handle": "@rajasthanvacancy_in",
          "tgstat_id": null,
          "subscribers": "575 265"
        }
      ],
      "nextPage": 1,
      "nextOffset": 30
    },
    "status": "success"
  }
}

About the TGStat API

Search and Discovery

The search_channels endpoint accepts a query string and optional filters including country (integer ID, e.g. 8 for India), category (slug such as education or cryptocurrencies), and sort. Results are paginated: each response includes a hasMore boolean, a nextPage integer, and an array of channel objects containing name, handle, tgstat_id, and subscribers. Pass nextPage back as the page parameter to advance through results.

Channel and Group Rankings

get_ratings_channels returns a ranked list of top Telegram channels filtered by category and ordered by sort (supported values: members, reach). Each entry in the channels array carries the same summary shape as search results. get_ratings_groups works analogously for Telegram groups — two-way communication chats rather than broadcast channels — returning a groups array sorted by member count, with optional category filtering.

Channel Profile Detail

get_channel_profile takes a single username parameter (with or without the @ prefix) and returns the most granular data available: title, description, handle, tgstat_id, a url pointing to the TGStat profile page, and two open-schema objects. The metrics object holds subscriber count and other quantitative values whose keys vary by channel. The info object holds category, geo, and language metadata. Because both are open dictionaries, available keys depend on what TGStat has indexed for that channel.

Reliability & maintenanceVerified

The TGStat API is a managed, monitored endpoint for in.tgstat.com — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when in.tgstat.com changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.

This isn't an official in.tgstat.com API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.

Last verified
7d ago
Latest check
4/4 endpoints passing
Maintenance
Monitored & self-healing
Will this API break when the source site changes?+
It's built not to. Every endpoint is health-checked on a schedule with automated test probes. When the source site changes and a check fails, the API is automatically queued for repair and re-verified — that's the self-healing layer. Each API page shows when its endpoints were last verified. And because marketplace APIs are shared, any fix reaches everyone using it.
Is this an official API from the source site?+
No — Parse APIs are independent, managed REST wrappers over publicly available data. That is the point: where a site has no official API (or only a limited one), Parse gives you a maintained, monitored endpoint for that data and keeps it working as the site changes — so you get a stable contract over a source that never promised one.
Can I fix or extend this API myself if I need a new endpoint or field?+
Yes — and you don't have to wait on us. This API was generated by the Parse agent, which stays attached. Describe the change in plain English ("add an endpoint that returns reviews", "fix the price field") in the revise box on the API page or via the revise_api MCP tool, and the agent rebuilds it against the live site in minutes. Contributing the change back to the public API is free.
What happens if I call an endpoint that has an issue?+
Errors are machine-readable: a bad call returns a clean status with the list of available endpoints and a repair hint, so an agent (or you) can recover or trigger a fix instead of failing silently. Confirmed failures feed the automatic repair queue.
Common use cases
  • Build a Telegram channel discovery tool filtered by Indian category and subscriber threshold using search_channels with country ID 8.
  • Track ranking shifts for news or crypto channels week-over-week by polling get_ratings_channels with different sort values.
  • Identify top Telegram groups in a niche category for community research using get_ratings_groups with a category filter.
  • Enrich a CRM or influencer database with Telegram channel descriptions and subscriber counts via get_channel_profile.
  • Compare reach vs. member-count rankings for the same category by calling get_ratings_channels twice with sort=reach and sort=members.
  • Automate alerts when new channels appear for a keyword by paginating search_channels and comparing tgstat_id sets over time.
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000100 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does TGStat have an official developer API?+
Yes. TGStat publishes an official API documented at https://tgstat.com/en/api/docs. It requires registration and provides token-authenticated access to channel statistics. This Parse API covers the discovery and profile endpoints from TGStat's India-facing site and does not require you to manage TGStat API credentials.
What does `get_channel_profile` return, and how complete is the data?+
It returns title, description, handle, tgstat_id, a TGStat url, and two open-schema objects: metrics (subscriber count and other quantitative values) and info (category, geo, language). The available keys inside metrics and info vary by channel — fields are present only when TGStat has indexed them for that channel, so sparse profiles will return fewer keys.
Can I filter search results by a specific country other than India?+
Yes. The country parameter in search_channels accepts any integer country ID — pass 8 for India or 1 for Russia, for example. Omitting the parameter searches globally across all TGStat-indexed channels.
Does the API return historical subscriber growth or post-level engagement data?+
Not currently. The API covers current subscriber counts, reach rankings, and static profile metadata. Historical time-series data and individual post metrics are not included in any of the 4 endpoints. You can fork this API on Parse and revise it to add an endpoint targeting those profile sections if the data is available on TGStat's public pages.
How does pagination work for `search_channels`, and is there a limit on results per page?+
Each search_channels response includes a hasMore boolean and a nextPage integer. Pass nextPage as the page parameter in your next request to retrieve the following page. The API does not expose a configurable page-size parameter, so page size is fixed by the source.
Page content last updated . Spec covers 4 endpoints from in.tgstat.com.
Related APIs in Social MediaSee all →
viewstats.com API
viewstats.com API
app.channelcrawler.com API
Search and discover YouTube channels across a database of 22M+ channels to find creators, communities, and content in your areas of interest. Get detailed channel information including stats and metadata to research creators and understand their audience.
twitch.tv API
Search for Twitch streamers and channels, view their profiles and streaming details, and discover live streams organized by category. Find the content and creators you want to watch all in one place.
g2.com API
Search G2.com to discover software products, compare pricing and categories, and read customer reviews all in one place. Get detailed product overviews and ratings to make informed decisions about business software.
g2a.com API
Search for game keys and get real-time pricing, seller ratings, and detailed product information from G2A's marketplace. Browse available categories and find the best deals on digital game licenses from verified sellers.
signalstart.com API
Browse and search forex signals from SignalStart.com to access performance metrics, trade history, and historical growth charts. Compare signal details to make informed trading decisions based on real performance data.
threads.com API
Search for posts and users on Threads by keyword to discover content, view engagement metrics like likes and replies, and explore user profiles with their media. Find trending discussions and connect with creators all in one search experience.
gumroad.com API
Browse and extract data from the Gumroad marketplace. Search products by keyword, category, price, and rating; retrieve full product details; and look up seller profiles and their listed products.