Telegram Analytics REST API

Telegram Analytics REST API for SMSGatewayCenter APIs

Telegram Analytics REST API

Use the Analytics REST API to fetch Telegram dashboard metrics over HTTP, including today's message totals, message status breakdown, subscriber counts, and daily subscriber trends. This endpoint accepts GET requests and returns JSON.

 

API Endpoint

https://unify.smsgateway.center/rest/tg/v1/analytics

Legacy alias without v1 in the path is also supported: /rest/tg/analytics

 

Authentication

Send your account userid and password as parameters, or send your account API key in the apikey request header. Telegram Chat API access must be enabled on your account.

 

Actions

ActionDescriptionDefault date range
overviewReturns today's messages, subscriber stats, message breakdown, and subscriber trend in one response.Last 7 days for breakdown and trend
todayReturns submitted, delivered, failed, and pending counts for today only.Today
messagebreakdownReturns submitted, delivered, failed, and pending totals for the selected date range.Last 7 days
subscriberstatsReturns unique subscriber gains for today, last 7 days, last 15 days, and current month.Not date filtered
subscribertrendReturns daily unique subscriber gains for the selected date range.Current month to today

 

ParameterRequiredDescriptionExample/Value
Authentication
useridYesYour SMSGatewayCenter account username.YourUsername
passwordYes*Your account password. Not required when apikey header is used.**********
outputYesResponse format. Must be json.json
Optional Parameters
actionOptionalDefaults to overview. Allowed: overview, today, messagebreakdown, subscriberstats, subscribertrend.overview
fromDateOptionalStart date for range-based actions. Format YYYY-MM-DD. Alias: from. Maximum range is 31 days.2026-07-01
toDateOptionalEnd date for range-based actions. Format YYYY-MM-DD. Alias: to.2026-07-07

 

Sample Request - Analytics Overview (cURL)
curl --location 'https://unify.smsgateway.center/rest/tg/v1/analytics?userid=YourUsername&password=xxxxx&output=json&action=overview&fromDate=2026-07-01&toDate=2026-07-07'

 

Sample Request - Subscriber Trend (cURL)
curl --location 'https://unify.smsgateway.center/rest/tg/v1/analytics?userid=YourUsername&password=xxxxx&output=json&action=subscribertrend&fromDate=2026-07-01&toDate=2026-07-07'

 

Sample Success Response
{
    "status": "success",
    "analytics": {
        "todayMessages": {
            "total": 120,
            "success": 115,
            "failed": 3,
            "pending": 2
        },
        "subscriberStats": {
            "today": 3,
            "week": 12,
            "fifteenDays": 25,
            "month": 40
        },
        "messageBreakdown": [
            { "label": "Submitted", "value": 120, "labelColor": "#0B62A4" },
            { "label": "Delivered", "value": 115, "labelColor": "#01c0c8" },
            { "label": "Failed", "value": 3, "labelColor": "#DE1F95" },
            { "label": "Pending", "value": 2, "labelColor": "#fb9678" }
        ],
        "subscriberTrend": {
            "total": 15,
            "labels": ["01 Jul", "02 Jul"],
            "counts": [2, 5],
            "series": [
                { "date": "2026-07-01", "label": "01 Jul", "count": 2 },
                { "date": "2026-07-02", "label": "02 Jul", "count": 5 }
            ]
        }
    },
    "fromDate": "2026-07-01",
    "toDate": "2026-07-07",
    "statusCode": "200",
    "reason": "success"
}

 

Sample Error Response
{
    "status": "error",
    "analytics": [],
    "statusCode": "403",
    "reason": "Telegram API access is not enabled for this account."
}

 

Notes

  • total is submitted messages, success is delivered, failed is failed, and pending is pending.
  • Subscriber counts are based on unique new Telegram customer mappings by creation date.
  • Date ranges cannot exceed 31 days.

Testimonials

Why do Great Businesses Trust SMS Gateway Center?

K

Kurlon IT

2022-08-04

We have tied up with other SMS providers also, but SMS GatewayCenter is quite good. Good Service from the team. We are very happy with the service be it accounts related or technical issue. We always get good response.

I

INOX Air Products

2018-02-09

We have an excellent experience with SMS Gateway Center. The services and support has been of very high standard.

S

Shalabh Arora

2025-04-11

I’ve been using SMSGatewayCenter’s bulk SMS and WhatsApp services since early 2022 for my small business, and the experience has been fantastic. The platform is intuitive, and the message delivery is incredibly reliable, reaching my customers without fail. The 24/7 support team is quick to assist, and the cost-effectiveness is a big plus. It’s transformed how I connect with my audience, and I highly recommend it to other entrepreneurs! (Google Revirews)

R

Reflex

2025-04-11

We’ve been using your bulk SMS services for a few months, and the results have been phenomenal. The open rates and customer engagement have gone through the roof. Highly recommend for any business looking to scale fast! (Google Revirews)

V

Vedanth Gowda

2025-04-18

I’m Vedanth Gowda, leading a finance business, and I’ve been leveraging SMSGatewayCenter’s bulk SMS and WhatsApp tools —absolutely transformative! The platform’s speed and precision in delivering financial alerts to my clients are unmatched, giving me a competitive edge. Samrat’s expertise in tailoring notification workflows for market updates was a standout, and the robust security features instilled trust. The affordable pricing and proactive support team make it a no-brainer. Perfect for finance pros aiming to elevate client trust and efficiency! (Google Revirews)

N

Naval Bhatnagar

2025-04-12

From day one, the team at SMS GATEWAY CENTER guided us through setup, testing, and launching campaigns. Their support is A+. Whether you’re new to SMS marketing or experienced, they make it smooth. Thank you Aakash. (Google Revirews)


CTA for Unlock Real-Time Messaging – Integrate Today!

Unlock Real-Time Messaging – Integrate Today!

Try Our API in a Sandbox Environment Before Going Live!

Join Thousands of Developers – Try Our API Now!

Get in touchSign up