Every username a channel has held, and which ones it gave up
https://api.handlesapi.com/v1/insights/telegram/{username}/name-historyThe GET /v1/insights/telegram/{username}/name-history endpoint of Handles API (Insights): Every username a channel has held, and which ones it gave up. One call costs 1 credit (a catalog read) and needs the insights:read scope. A success returns JSON as { data, meta }.
Telegram lets a channel change its public username and lets it hold several at once, and the two look identical in a flat list of aliases. This separates them. A name still seen in the newest crawl is an alias the channel holds; a name whose last sighting stopped while another kept moving is a name the channel dropped, which is a rename. A channel that has traded its name is a different asset from one that has not, and the response carries the measured base rate so a caller knows how unusual the answer is.
- first_seen is when the ENGINE first saw the name, never when the channel adopted it. observation.engine_watching_since is 2026-06-09 and a rename that happened before that date is invisible here. Treat a first_seen equal to that date as 'at least this old' rather than as an origin.
- latest_drop_observed_at is an upper bound, not a date. It is the last crawl that still saw a dropped name in use, so the change happened at or after it. The channel's crawl cadence sets how tight that bound is.
- status is held when a name was seen in the same crawl as the newest name (within one hour of it) and dropped otherwise. The crawler writes all of a channel's usernames in one pass, sub-second apart, so an hour separates the two cases without being sensitive to where the boundary sits.
- Holding several usernames at once is normal and is not a rename. renamed is true only when a name stopped being seen while another kept being seen.
- The base rate is what makes the answer readable. Measured over the 2,000 largest channels on 2026-08-31: 1,849 (92.5%) hold exactly one username, 151 (7.6%) hold more than one, and 81 (4.1%) no longer use the first name the engine recorded. It is re-measured by hand rather than live, because the catalog-wide version of that scan does not finish inside a request.
- This addresses a channel by its CURRENT username. Looking up a name a channel has already given up needs an index on lower(username) over tgdir_chat_usernames that does not exist yet: today that lookup is a sequential scan of 3.13M rows, measured at 9.9s.
- GET /identity/telegram/{username}/aliases returns the same rows as a flat array without the held / dropped split, and is the right call when all you want is the list.
Request
curl "https://api.handlesapi.com/v1/insights/telegram/toncoin/name-history" \
-H "Authorization: Bearer $HANDLES_API_KEY"const res = await fetch("https://api.handlesapi.com/v1/insights/telegram/toncoin/name-history", {
headers: { Authorization: `Bearer ${process.env.HANDLES_API_KEY}` },
});
if (!res.ok) throw new Error((await res.json()).error.code);
const { data, meta } = await res.json();
console.log(data);import os
import requests
res = requests.get(
"https://api.handlesapi.com/v1/insights/telegram/toncoin/name-history",
headers={"Authorization": f"Bearer {os.environ['HANDLES_API_KEY']}"},
)
res.raise_for_status()
print(res.json()["data"])Set HANDLES_API_KEY to a key from your dashboard. Keys start with hk_live_.
Parameters
| Name | In | Type | Required | Description | Example |
|---|---|---|---|---|---|
| username | path | string | Required | Public @username or a t.me link. The channel's CURRENT username. | toncoin |
Response
Success is always { data, meta }.
{
"data": {
"username": "toncoin",
"chat_id": "-1001233043722",
"title": "Gram of TON",
"type": "channel",
"status": "active",
"subscribers": 6863255,
"current_username": "toncoin",
"names_recorded": 2,
"names_held": 1,
"names_dropped": 1,
"renamed": true,
"latest_drop_observed_at": "2026-08-01T00:03:16.620Z",
"names": [
{
"username": "toncoin",
"is_current": true,
"status": "held",
"first_seen": "2026-06-09T12:13:05.037Z",
"last_seen": "2026-08-31T12:09:24.653Z",
"last_seen_days_ago": 0
},
{
"username": "gram",
"is_current": false,
"status": "dropped",
"first_seen": "2026-06-22T13:40:20.657Z",
"last_seen": "2026-08-01T00:03:16.620Z",
"last_seen_days_ago": 30
}
],
"observation": {
"first_seen": "2026-06-09T12:13:05.037Z",
"last_seen": "2026-08-31T12:09:24.653Z",
"engine_watching_since": "2026-06-09"
},
"base_rate": {
"measured_on": "2026-08-31",
"sample": "the 2,000 largest channels by subscribers",
"sample_size": 2000,
"one_name_pct": 92.5,
"more_than_one_name_pct": 7.6,
"no_longer_original_name_pct": 4.1
}
},
"meta": {
"request_id": "req_9f2c41a8b3d5",
"generated_at": "2026-08-23T09:14:02.317Z",
"took_ms": 42
}
}Response headers
Every successful response carries these headers.
| Header | Type | Description |
|---|---|---|
| X-Request-Id | string | Quote this to support. |
| X-RateLimit-Limit | integer | Requests allowed in the current one-minute window. |
| X-RateLimit-Remaining | integer | Requests left in the current one-minute window. |
| X-RateLimit-Reset | integer | Unix seconds at which the current window resets. |
| X-Credits-Cost | integer | Credits this call used. |
| X-Credits-Remaining | integer | Plan credits left in the current period. |
| X-Credits-Period-End | string | When the current period ends (ISO 8601). |
Errors
| Status | Error code | When |
|---|---|---|
| 401 | unauthorized | No key was sent, or the key is unknown or revoked. |
| 402 | quota_exceeded | Your 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. |
| 404 | not_found | The addressed resource does not exist. |
| 422 | invalid_request | A parameter is malformed, out of range or mutually exclusive with another. details names the offending fields. |
| 429 | rate_limitedlive_limit_reached | Too 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. |
| 500 | internal_error | Something failed on our side. The call was not charged; quote the request_id to support. |
| 503 | upstream_timeoutupstream_errorplatform_unavailableservice_unavailable | The 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.