The Telegram message API for one post by ID
Fetch one public Telegram post by its ID. Get its text and views as JSON.
Telegram Message API at a glance
This API returns one public Telegram post by message ID. Send a POST request with a username and a message_id, then read the message object. Run the example below to see the exact shape.
- Endpoint
POST /v1/data/telegram/message- Authentication
- API key as
Authorization: Bearer wh_… - Stage
- Stable
- Output
- One message object with id, text, date, views, url and link_preview, plus media, author, reactions, forward or reply data when a post has them
- Input
- A channel username and a numeric message_id
- Where to find the ID
- It is the number at the end of a t.me/<channel>/<id> link
- Posts per request
- One
- Credit weight
- 1. See the pricing page for current rates.
One request, structured JSON.
This request fetches message 460 from the Telegram News channel. The response below shows the whole message object, with only the timing field left out. Copy the request and swap in a post you want.
curl -X POST "https://api.datablue.dev/v1/data/telegram/message" \
-H "Authorization: Bearer wh_..." \
-H "Content-Type: application/json" \
-d '{
"username": "telegram",
"message_id": 460
}'{
"success": true,
"message": {
"id": 460,
"text": "For all the info from today's update and a look back at\n13 years of Telegram features\n— check out our blog:\nhttps://telegram.org/blog/welcome-messages-buttons-TG-13\nAugust Features\n1\n•\n2\n•\n3\n•\n4\n•\n5\n•\nMore",
"date": "2026-08-26T19:12:34+00:00",
"views": 2690000,
"link_preview": {
"title": "Welcome Messages, Buttons in Messages and Signed Gifts",
"description": "Introducing Welcome Messages to greet new members of groups or channels, Buttons in Messages to make any text interactive, Inline Documents in Messages and much more.",
"site_name": "Telegram"
},
"url": "https://t.me/telegram/460"
}
}What a Telegram post returns.
Every call returns a single message object in the response.
Identity
The id field repeats the message ID you asked for. The url field holds the t.me link to the post.
Text and date
The text field holds the post text, and the date field holds a UTC timestamp. Store both beside the ID in your own tables.
Views
The views field is a whole number. Our sample post showed 2690000 views when we called. Call again later to see how the count moves.
Link preview
The link_preview object holds the page title and description, plus the name of its site. Read it to learn where a post points.
Other parts
The catalogue lists author and forward source data too. Reactions and replies appear only on posts that have them. Our sample post had none of them, so check each key before you read it.
Media
A post with media carries a media object, and its type tells you the kind. Check the type before you read any other media field.
Two inputs that pick your post.
This API takes two required parameters and no optional ones.
Username
Pass the channel handle in the username field. The @ sign is optional, and the value must be between 1 and 100 characters long.
Message ID
Set message_id to the number that ends a t.me link. For the link t.me/telegram/460 the value to send is 460. Send it as a number, not as a string.
One post per call
Each request returns exactly one post from one channel. Loop over a stored list of IDs to fetch every post you track over time.
What teams build with it.
This API fits when you already hold the post link. Pick the use that matches your work.
Link enrichment
Take a t.me link from a spreadsheet or a ticket. Split out the username and ID, then call the API to read the text of that post.
Citation records
Save the text and date of each post you cite. Keep the url beside them as a pointer.
Single post tracking
Call the API on one post every hour. Plot the views value to see how fast it grows.
Feed follow ups
Spot a post in a feed from Telegram Messages. Use its id to pull that post again, with views from the moment of your call.
Why call an API instead of scraping Telegram yourself.
One post sounds like a small job. At scale you still need a parser and a retry path for each lookup you run.
DataBlue takes a username and a message ID, then returns a flat message object with the post url. You do not build the t.me link yourself. The response carries the post url, so you store the link exactly as it arrives in the data.
The sample above comes straight from a live call. Build against those fields first, then add Telegram Messages when you need a whole feed. Start with a post ID from a link you hold.
Your first Telegram post in a minute.
Pick a post link and run one request.
Create an account
Sign up to get your API key.
Send a username and ID
POST the username and message_id to /v1/data/telegram/message. Add your Bearer key as the Authorization header.
Read the message
Read each field straight off the message object. Check for media and reaction keys first.
Responsible use of Telegram data.
This API covers public Telegram data only. Telegram publishes its own terms of service. Read them before you use the data commercially.
You are responsible for how you use the data, including privacy law in your region. This page gives general information, not legal advice. Review the DataBlue terms of service before you build.
Telegram message API questions.
Short answers about data and billing before you start.
It returns one public Telegram post as structured JSON. You send a channel username and a message ID.
Still have a question?Ask us anything
Read the number at the end of the post link. In the link t.me/telegram/460 the ID is the number 460.
Send a POST request to /v1/data/telegram/message with a Bearer token and a JSON body holding the username and message_id. Then read the message object from the response.
It covers public Telegram data only, so send the username of a public channel with its post ID.
The catalogue lists both for posts that carry them. Our sample post had neither, so check for each key.
Telegram Messages returns recent posts in bulk. Telegram Channel returns the profile of a channel. This API returns the one post that you pick by its message ID, so use it for lookups.
This API is marked stable in our catalogue today. Build against the documented fields, then check the changelog before each upgrade you ship to production.
This API has a credit weight of 1. Check the pricing page for current rates.
Fetch one Telegram post by ID.
Create an account to get your key. Then run the example with a public post link.
Start free
