The Telegram scraper API for recent channel posts
Pull the latest posts from a public channel as JSON. Set a limit from 1 to 50.
Telegram Messages API at a glance
This API returns recent posts from one public channel. Send a POST request with a username and an optional limit, then read the messages array from the response. Run the example below to see the exact shape.
- Endpoint
POST /v1/data/telegram/messages- Authentication
- API key as
Authorization: Bearer wh_… - Stage
- Stable
- Output
- A count and a messages array with id, text, date, views and url, plus media or link_preview when a post has them
- Input
- A channel username, with or without the @ sign, and an optional limit
- Messages per request
- 1 to 50 with limit. The default is 20.
- Order
- Newest first in our live run
- Credit weight
- 1. See the pricing page for current rates.
One request, structured JSON.
This request asks Telegram News for its three newest posts. The response below shows two of the three posts, with the media links removed to keep it short. Set the limit to ask for up to 50 posts.
curl -X POST "https://api.datablue.dev/v1/data/telegram/messages" \
-H "Authorization: Bearer wh_..." \
-H "Content-Type: application/json" \
-d '{
"username": "telegram",
"limit": 3
}'{
"success": true,
"time_taken": 0.57,
"username": "telegram",
"count": 3,
"messages": [
{
"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"
},
{
"id": 459,
"text": "Signed Gifts.\nYou can now add\nyour signature\nand a comment to gifts you buy via the\ngift marketplace\n.\nAugust Features\n1\n•\n2\n•\n3\n•\n4\n•\n5\n•\nMore",
"date": "2026-08-26T19:12:24+00:00",
"views": 2380000,
"media": {
"type": "video"
},
"url": "https://t.me/telegram/459"
}
]
}What a Telegram message returns.
The response holds a count and a messages array.
Identity
Each message has an id and a url. The id is the number at the end of the t.me link, so Telegram Message accepts it directly.
Text and date
The text field holds the full post text. The date field is an ISO timestamp in UTC. Parse it with any standard date library.
Views
The views field is a whole number. Our newest sample post shows 2690000 views, so compare views across posts to find the strongest.
Link previews
A post with a link carries a link_preview object. It holds the page title and description, plus the name of the site it points to.
Reactions and forwards
The catalogue lists reactions and forwards too. None of our three live posts carried them, so check for each key before you read it.
Media
A post with media carries a media object with a type, such as video or photo. A photo carries a url, and a video carries a thumbnail in the same object. Check the type before you read any other media field.
Options that shape your feed.
This API takes a username and an optional limit.
Username
Pass the channel handle in the username field. Both telegram and @telegram are accepted, and the value runs from 1 to 100 characters.
Limit
Set limit from 1 to 50 messages. The default is 20 when you send nothing. Keep the limit small while you test.
Latest posts only
This API returns the latest posts only, up to 50. The schema lists no cursor, so plan to poll on a schedule and store what you keep. Run it on a timer and store every id.
What teams build with it.
Recent posts suit monitoring jobs that run on a schedule. Pick the ones that match your work.
Content monitoring
Poll a channel every hour and store each new id. Alert your team when a post matches your keywords.
Reach tracking
Store views next to the post id on every run. Compare the values over time to see how a post grows after it goes live.
Announcement feeds
Read link_preview for posts that share a page. Build a feed of page titles and site names from every channel you follow closely.
Post archives
Save the id and date of each post you read. Pass the id to Telegram Message to refetch the post.
Why call an API instead of scraping Telegram yourself.
A message holds text and media and a link preview. A scraper you build must parse each part, then keep that code working as time passes.
DataBlue returns each post as one flat object. Views arrive as numbers, while date arrives as a timestamp. Media and preview keys show up only on posts that carry them, so your code checks before it reads.
Each sample field comes from a live response. Build against those fields first, then wrap polling around them on a schedule you choose. Start with a limit of 3, then raise it once you trust the output you see.
Your first Telegram feed in a minute.
Grab a key and fetch your first posts.
Create an account
Sign up to get your API key.
Send a username
Send a POST request with the username to /v1/data/telegram/messages. Add a limit if you want fewer than 20 posts. Add your Bearer key as the Authorization header.
Read the messages
Loop over the messages array in the response. Read each field straight off the object.
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 scraper API questions.
Short answers about data and billing before you start.
It turns public channel posts into structured JSON. Each post is one object in a messages array.
Still have a question?Ask us anything
Send a POST request to /v1/data/telegram/messages with a Bearer token and a username in the JSON body. Add limit to set how many posts you want.
Set limit to a value from 1 to 50. If you send nothing, the API returns 20 messages. Check count in the response to see what came back.
Our live run returned the newest message first. Sort on date if your code needs a fixed order.
The schema lists no cursor or date filter. Pass the id of a post you know to Telegram Message to fetch it alone.
It covers posts from public Telegram channels only. Send only the usernames of public channels.
Telegram Channel returns the channel profile and no posts. Telegram Message returns one post by its id. This API returns up to 50 recent posts of a channel, so pick it for feeds.
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.
Pull the latest posts from a channel.
Create an account to get your key. Then send the example request and read the messages array.
Start free
