# Telegram API

> Telegram's client API (MTProto, TDLib): resolve usernames, read channel history and search public posts from a logged-in account.

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

- **Inputs:** Username, Phone number, Name
- **Category:** Social media intelligence
- **Pricing:** Free
- **Footprint:** passive (does not contact the target)
- **Account required:** yes, for full results
- **API:** yes
- **Platforms:** API · TDLib library
- **Website:** https://core.telegram.org/api
- **Docs:** https://core.telegram.org/methods
- **Listed:** Nov 29
- **Last verified by an editor:** Nov 29, 2026

## What it does

Telegram publishes three APIs. The Telegram API, spoken over its MTProto protocol and wrapped by the open-source TDLib library, is the one a full client uses: it can resolve an @username, return information about a user, channel or supergroup, read the message history of a chat, search messages, and search posts in public channels by text or hashtag. The Bot API is a simpler HTTPS interface for bot accounts: a bot receives the messages from its private chats and from channels where it is a member, and can fetch information about a public channel by @username. The Gateway API only sends verification codes.

Investigators mostly meet the client API through the libraries and scrapers built on it. To use it you sign up for Telegram with a phone number, then register an application at my.telegram.org to get an api_id and api_hash; every call is then made as that logged-in account. Telegram offers the API free of charge and publishes no numeric rate limits, but says accounts that log in with unofficial clients are put under observation and that flooding or spamming gets an account banned for good. Its terms forbid using data from the platform to train AI models.

Footprint is passive: it reads its own index or third-party records and does not contact the target. An account is needed for full results. There is an API.

## Features

- Resolve an @username to a user, channel or group
- Channel and supergroup information and participants
- Message history and message search
- Search of public channel posts by text or hashtag
- Phone number to user lookup where privacy settings allow
- TDLib open-source client library
- Separate Bot API over HTTPS for bot accounts

## Pros

- Free of charge, per Telegram's own docs
- Post search covers public channels the account has not joined
- TDLib handles networking, encryption and local storage
- The full method list and schema are published

## Cons

- Needs a Telegram account with a phone number and a registered api_id; calls are made as that account
- No numeric rate limits are published, and flooding can get the account banned
- Global post search is paid in Telegram Stars beyond a free allowance for Premium users

## When to use it

- Use it when you need the message history of a public channel or group as structured data.
- Use it when you have an @username or a phone number and want the account or channel behind it.
- Use it when you are choosing a Telegram scraper and need to know what the underlying API allows.

## Quick start

1. Open Telegram API and sign in.
2. Paste the username and run the lookup.
3. Record the result with the date and the exact query; results change over time.

## Alternatives

- [DiscordLeaks](https://osinttools.io/tools/discordleaks/): Unicorn Riot's searchable archive of leaked chat logs from extremist Discord servers and other chat platforms. (Free · Username, Name · passive)
- [Followerwonk](https://osinttools.io/tools/followerwonk/): Bio search and follower analysis for X and other networks, now run as part of the Fedica platform. (Freemium · Username, Name · passive)
- [Fragment](https://osinttools.io/tools/fragment/): Telegram's TON-based marketplace for collectible usernames and +888 numbers, showing bids, sales and offer history. (Free · Username, Phone number · passive)
- [Lyzem](https://osinttools.io/tools/lyzem/): Search engine for public Telegram channels, groups, bots and posts, with results labelled by type. (Free · Name, Username · passive)
- [Open Measures](https://osinttools.io/tools/open-measures/): Search and timeline tools over archived posts from fringe and mainstream platforms such as Telegram, 4chan, Gab and VK. (Freemium · Name, Username · passive)
- [Social Searcher](https://osinttools.io/tools/social-searcher/): Free search engine for public social media posts, profiles, hashtags and images across major networks, with no sign-up. (Free · Name, Username · passive)

All alternatives to Telegram API in one table: https://osinttools.io/tools/telegram-api/alternatives/

## Change history

- 2026-11-29: Listed in the directory.

Feed of changes to Telegram API: https://osinttools.io/tools/changes/feed.xml?tool=telegram-api

---

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/
