Handles API

Whether a channel's subscribers and its post views moved together

GEThttps://api.handlesapi.com/v1/insights/telegram/{username}/audience-quality
1 creditinsights:read

The GET /v1/insights/telegram/{username}/audience-quality endpoint of Handles API (Insights): Whether a channel's subscribers and its post views moved together. One call costs 1 credit (a catalog read) and needs the insights:read scope. A success returns JSON as { data, meta }.

The Telegram rollup records a channel's subscriber count and its average post views on the same row of the same day, and this is the only endpoint that reads the pair. Separately they are already served: activity is the views axis and growth-quality is the subscriber axis. Neither can say whether the two moved together, which is the actual question. Subscribers climbing while views sit still means people were added who do not open the channel. Subscribers falling while views climb means dormant accounts are being shed. Both shapes are here and nowhere else.

  • Only days carrying BOTH columns take part. A day the crawler could not read the channel's public preview has no avg_views, and it is dropped rather than read as zero: pairing across it would attribute one series' movement to the other's absence. Read window.days_observed as the denominator for everything else.
  • shape is two signs and a sentence, never a verdict. A channel whose subscribers rose while views fell has the same shape whether it bought a subscriber list or had a viral week that has since passed, and this endpoint will not pretend to tell those apart. change_pct sits beside each direction so the caller can judge the size.
  • projection is the one derived number here. It takes the views-per-subscriber ratio measured on the FIRST observed day, applies it to the subscriber count on the LAST, and reports the difference against what the channel actually pulls. A large negative gap means the audience added since the first day is not watching at the rate the earlier audience did.
  • A ratio above 1.0 is common and is not proof of a real audience: forwards, cross-posts and paid promotion all deliver views from outside the subscriber list. For the ratio ranked against channels of the same size, use GET /insights/telegram/{username}/reach.
  • measurable is false with reason not_a_channel for groups, because Telegram publishes no per-post view count for them, and with reason insufficient_paired_history under four paired days. Neither is an error and neither is scored as zero.
  • Coverage measured on production 2026-08-31: 480 of the 500 largest channels (96%) hold at least seven paired days inside a 30 day window, at a mean of 22.0 paired days each. Across the whole daily table 84.4% of the rows written in the last seven days carry avg_views.

Request

curl "https://api.handlesapi.com/v1/insights/telegram/toncoin/audience-quality" \
  -H "Authorization: Bearer $HANDLES_API_KEY"

Set HANDLES_API_KEY to a key from your dashboard. Keys start with hk_live_.

Parameters

NameInTypeRequiredDescriptionExample
usernamepathstringRequiredPublic @username or a t.me link.toncoin
daysqueryintegerOptionalCalendar days of history to read back from today, 1 to 90. The rollup begins 2026-06-09, so no channel can answer for more than that.default: 30-

Response

Success is always { data, meta }.

200 OK
{
  "data": {
    "username": "toncoin",
    "chat_id": "-1001233043722",
    "title": "Gram of TON",
    "type": "channel",
    "status": "active",
    "subscribers": 6863255,
    "avg_views": 383000,
    "posts_per_day": 0.17,
    "window": {
      "requested_days": 30,
      "from": "2026-08-01",
      "to": "2026-08-31",
      "days_observed": 23,
      "days_spanned": 31,
      "coverage_pct": 74.2,
      "longest_gap_days": 7
    },
    "measurable": true,
    "reason": null,
    "audience": {
      "first": {
        "day": "2026-08-01",
        "value": 7142642
      },
      "latest": {
        "day": "2026-08-31",
        "value": 6863735
      },
      "change": -278907,
      "change_pct": -3.9,
      "direction": "down"
    },
    "reach": {
      "first": {
        "day": "2026-08-01",
        "value": 340776
      },
      "latest": {
        "day": "2026-08-31",
        "value": 382882
      },
      "change": 42106,
      "change_pct": 12.36,
      "direction": "up"
    },
    "reach_ratio": {
      "first": {
        "day": "2026-08-01",
        "value": 0.04771
      },
      "latest": {
        "day": "2026-08-31",
        "value": 0.05578
      },
      "change": 0.00807,
      "change_pct": 16.92,
      "direction": "up",
      "median": 0.05277,
      "min": 0.04771,
      "max": 0.05578
    },
    "shape": {
      "audience": "down",
      "reach": "up",
      "key": "audience_down_reach_up",
      "statement": "Subscribers fell while post views rose. The list is shrinking and what remains is more attentive, which is what shedding dormant accounts looks like."
    },
    "projection": {
      "basis_day": "2026-08-01",
      "basis_ratio": 0.04771,
      "expected_reach": 327469,
      "actual_reach": 382882,
      "gap": 55413,
      "gap_pct": 16.92
    },
    "freshness": {
      "last_observed_day": "2026-08-31",
      "data_age_days": 0,
      "channel_last_seen": "2026-08-31T12:09:24.441Z"
    },
    "series": [
      {
        "day": "2026-08-30",
        "subscribers": 6878417,
        "avg_views": 381352,
        "reach_ratio": 0.05544
      },
      {
        "day": "2026-08-31",
        "subscribers": 6863735,
        "avg_views": 382882,
        "reach_ratio": 0.05578
      }
    ]
  },
  "meta": {
    "request_id": "req_9f2c41a8b3d5",
    "generated_at": "2026-08-23T09:14:02.317Z",
    "took_ms": 42
  }
}

Response headers

Every successful response carries these headers.

HeaderTypeDescription
X-Request-IdstringQuote this to support.
X-RateLimit-LimitintegerRequests allowed in the current one-minute window.
X-RateLimit-RemainingintegerRequests left in the current one-minute window.
X-RateLimit-ResetintegerUnix seconds at which the current window resets.
X-Credits-CostintegerCredits this call used.
X-Credits-RemainingintegerPlan credits left in the current period.
X-Credits-Period-EndstringWhen the current period ends (ISO 8601).

Errors

StatusError codeWhen
401unauthorizedNo key was sent, or the key is unknown or revoked.
402quota_exceededYour plan's credits for this period are used up and overage is off (or its cap is reached). Waiting does not help: upgrade, or turn on overage in the dashboard.
404not_foundThe addressed resource does not exist.
422invalid_requestA parameter is malformed, out of range or mutually exclusive with another. details names the offending fields.
429rate_limitedlive_limit_reachedToo many requests. rate_limited clears when the minute window resets (see Retry-After); live_limit_reached (Free plan) clears at 00:00 UTC.Also sends Retry-After, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset.
500internal_errorSomething failed on our side. The call was not charged; quote the request_id to support.
503upstream_timeoutupstream_errorplatform_unavailableservice_unavailableThe call could not be served right now and was not charged. upstream_timeout / upstream_error: a data source was slow or failed, retry with backoff. platform_unavailable: live reads for that platform are paused. service_unavailable: retry shortly.

Failures use the error envelope. Branch on error.code, never on the message.