UnifAPI Docs

Get a Telegram channel post

Returns one public post from a Telegram channel by channel username and post id (the number at the end of a t.me link). Returns `not_found` when the post does not exist.

Pricing — $ · min $0.003

Minimum 3 credits ($0.003) per call. Records returned above the minimum bill 1 credit ($0.001) each.

GET
/telegram/channels/{username}/posts/{id}

Authorization

bearerAuth
AuthorizationBearer <token>

UnifAPI API key. Provider credentials are managed by UnifAPI.

In: header

Path Parameters

username*string

Public Telegram username of the channel or group, with or without a leading @.

Length1 <= length <= 500
id*string

Numeric post id, as in t.me/{username}/{id}.

Length1 <= length <= 500

Header Parameters

Unifapi-Version?"2026-07-01"

Pin the API version an integration was built against (date-based, e.g. 2026-07-01). Omit to use the current version. Public URL paths stay stable and unversioned; breaking changes ship under a new dated version and are announced with Deprecation and Sunset response headers. The served version is echoed in every response's Unifapi-Version header. Policy: https://unifapi.com/versioning.md

Default"2026-07-01"

Value in

  • "2026-07-01"

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/telegram/channels/string/posts/string"
{  "request_id": "string",  "data": {    "post_id": "string",    "text": "string",    "published_at": 0,    "views": 0,    "forwarded_from": "string",    "reply_to": {      "post_id": "string",      "author_name": "string",      "text": "string"    },    "photo_urls": [      "string"    ],    "video_url": "string",    "reactions": [      {        "emoji": "string",        "custom_emoji_id": "string",        "emoji_image_url": "string",        "is_paid": true,        "count": 0      }    ]  },  "billing": {    "credits_charged": 0,    "records_charged": 0,    "balance_remaining": 0,    "truncated_due_to_balance": true  }}