Skip to content

Get user by ID or username

GET/v1/users/{identifier}1₽ or 4₽ per 2xx

Returns a user profile by numeric ID or username.

Api-Key header required.

The request costs 1₽ when both groups and cl_groups are empty. If at least one of these fields contains a group, the request costs 4₽.

Name Type Required Description
identifier string yes Numeric user ID (e.g. 12345) or username, with or without @. Digits only (including @123) — always an ID. Username — 4–32 characters A–Z, a–z, 0–9, _, starting with a letter, case-insensitive; otherwise 400 invalid_identifier.
Terminal window
# By numeric ID
curl -H "Api-Key: $API_KEY" \
https://api.telesint.dev/v1/users/12345
# By username
curl -H "Api-Key: $API_KEY" \
https://api.telesint.dev/v1/users/johndoe
{
"data": {
"id": 12345,
"username": "johndoe",
"name": "John Doe",
"h_name": [
{ "value": "John Doe Old", "update": "2021-01-01T00:00:00" },
{ "value": "John Doe Very Old", "update": null }
],
"h_username": [
{ "value": "johndoe_old", "update": "2021-01-01T00:00:00" }
],
"groups": [
{
"data": { "id": 1234567890, "title": "Example Group", "url": "example_group" },
"admin": { "id": 12345, "is_creator": true, "role": "admin", "update": "2021-01-01T00:00:00" },
"update": "2021-01-01T00:00:00"
}
],
"cl_groups": [],
"scam": false,
"dc": 2,
"last_online": { "status": "recently", "update": "2021-01-01T00:00:00" },
"premium": { "last_seen": "2021-01-01T00:00:00" },
"is_bot": false,
"is_deleted": false,
"ton_wallet": {
"address": "UQC5FaVVJP6uOKzxjpv3GDhHgQaz4fwlc-3N8I2jHBCOx16L",
"address_raw": "0:b915a55524feae38acf18e9bf71838478106b3e1fc2573edcdf08da31c108ec7",
"update": "2026-11-10T03:58:32Z"
},
"ton_wallets": [
{
"address": "UQB4F-TTGJIHkywFmsmTP0Wk-LxbwZ41QC4TtnwHiv8AW3ku",
"address_raw": "0:7817e4d3189207932c059ac9933f45a4f8bc5bc19e35402e13b67c078aff005b",
"update": "2026-11-09T23:40:00Z",
"until": "2026-11-10T03:58:32Z",
"reason": "replaced"
}
]
}
}
Field Type Notes
id integer Immutable user ID.
username string | null Current username.
name string Current display name.
h_name array of history entry Previous display names.
h_username array of history entry Previous usernames.
groups array of group membership Up to 1,000 public groups the user is in.
cl_groups array of group membership Up to 1,000 closed/private groups.
scam boolean Account is marked as scam.
dc integer | null Datacenter number.
last_online last online | null Last seen status.
premium premium | null Premium status.
is_bot boolean true for bot accounts.
is_deleted boolean true if the account has been deleted.
ton_wallet ton wallet | null GRAM (ex. TON) wallet the user currently shows in the profile. null — no wallet or it is not visible.
ton_wallets array of past ton wallet | null Wallets the user showed earlier, oldest first: closed periods only. The current one is not here unless the user set it earlier; one address may be both here and in ton_wallet. [] — no past wallets, the current one is in ton_wallet. null — history not read: source failure or timeout (not “no wallets”).

All dates are UTC. Dates without the Z suffix (update in h_name, groups, last_online, premium.last_seen) are UTC too. TON fields (ton_wallet, ton_wallets) carry Z.

Field Type Notes
value string Previous name or username value.
update string (date-time) | null When this value was replaced.
Field Type Notes
data object { id, title, url } — short group info.
admin object | null Present only if the user is an admin of the group.
update string (date-time) | null When the membership was last verified.
Field Type Notes
status enum One of empty, online, offline, last_week, last_month, recently.
update string (date-time) | null When the status was recorded.
Field Type Notes
last_seen string (date-time) | null When the account was last seen as premium.
Field Type Notes
address string Address in UQ… form, as Telegram shows it.
address_raw string Address in raw 0:… form.
update string (date-time) | null When we first saw the wallet in the profile; not earlier than 2026-11-09 21:00 UTC (2026-11-10 00:00 MSK).
Field Type Notes
address, address_raw string Wallet address.
update string (date-time) | null When we first saw the wallet in the profile; not earlier than 2026-11-09 21:00 UTC (2026-11-10 00:00 MSK).
until string (date-time) | null When the wallet was seen changed or removed.
reason string | null replaced — changed to another wallet, removed — the wallet disappeared from the profile: removed or hidden with privacy settings.

Wallets are collected since 2026-11-09 21:00 UTC (2026-11-10 00:00 MSK). Transfers — see TON wallets. The profile does not open the hour of access to the user’s TON feeds: they are billed separately.

  • 404 — user not found.
  • 400 — invalid identifier.
  • See Errors.