API

Telegram API

Telegram has more than 1 billion monthly active users sharing messages, channels, groups, voice notes, bots, and media, making it important for direct distribution, community management, and fast-moving news audiences.

API Reference Version: 1.0.0 7 Endpoints Authentication
Telegram

Base URL

https://api.pressmonitor.ca

Authentication

All requests use Bearer token authentication. Add the Authorization header to every call.

Authorization: Bearer YOUR_API_KEY
x-subscription-id: YOUR_SUB_ID
GET /bot-info

Parameters

Name Type Location Required Description
username string query Yes

Code Examples

curl -X GET "https://api.pressmonitor.ca/bot-info?username=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID"

Responses

200 Success
GET /channel-info

Parameters

Name Type Location Required Description
username string query Yes

Code Examples

curl -X GET "https://api.pressmonitor.ca/channel-info?username=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID"

Responses

200 Success
GET /get-messages

Parameters

Name Type Location Required Description
username string query Yes
offset string query No

Code Examples

curl -X GET "https://api.pressmonitor.ca/get-messages?username=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID"

Responses

200 Success
GET /group-info

Parameters

Name Type Location Required Description
username string query Yes

Code Examples

curl -X GET "https://api.pressmonitor.ca/group-info?username=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID"

Responses

200 Success
GET /search-hashtag

Parameters

Name Type Location Required Description
hashtag string query Yes
offset string query No

Code Examples

curl -X GET "https://api.pressmonitor.ca/search-hashtag?hashtag=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID"

Responses

200 Success
GET /user-info

Parameters

Name Type Location Required Description
username string query Yes

Code Examples

curl -X GET "https://api.pressmonitor.ca/user-info?username=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID"

Responses

200 Success