# Telegram Details API (telegram.profile)

- Canonical page: [https://everyinfra.com/en/telegram-api/profile](https://everyinfra.com/en/telegram-api/profile?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "telegram", "action": "profile", "params": {...}}
- Price: $0.000556 per call ($0.56 per 1,000 requests); failed calls and empty results are not charged
- Returns: single object
- Mode: sync; add "mode": "async" for slow tasks

Telegram Details reads the public profile of one Telegram channel from its `username` and returns the channel's `name`, `bio`, `subscriber_count`, its photo and video counts and the number of links in its messages, whether Telegram verified it, the avatar and the link. It answers how large a channel is and what it shares, for marketers vetting channels before buying placements, media analysts sizing news and community channels, and researchers comparing channels within a niche.

`username` accepts the bare name, @name, t.me/name or t.me/s/name; private invite links are not supported. Details is meant for public channels: a group's public information comes from the Telegram Group capability, and a channel's messages from Telegram Channel posts. `bio` may contain line breaks and emoji, and a null `is_verified` means verification could not be determined, which is not the same as false.

## Health

- Live health (24h percent, hourly and daily trends): https://api.everyinfra.com/api/v1/social/availability?platform=telegram&action=profile

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| username | not declared | yes | not declared | Specifies the target public channel or group using formats such as name, @name, t.me/name, or t.me/s/name. Used by channel_posts and profile for public channels, group for public entity metadata, and members to retrieve visible group members; private invite links are not supported, and complete member lists are not guaranteed. |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| username | Username (@handle). |
| name | Name of the object itself, for account, product and business capabilities. |
| bio | Profile bio written by the account; may contain line breaks and emoji. |
| subscriber_count | platform-native meaning |
| photo_count | platform-native meaning |
| video_count | platform-native meaning |
| link_count | platform-native meaning |
| is_verified | Whether the platform verified the account. null means it cannot be determined. |
| avatar_url | Avatar image link. Some platforms return sized CDN links that can expire. |
| url | Link to the record on the platform. |
| platform | Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok). |

## Example

```bash
curl -X POST 'https://api.everyinfra.com/api/v1/social' \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "platform": "telegram",
  "action": "profile",
  "params": {
    "username": "telegram"
  }
}'
```

```python
import os
import requests

response = requests.post(
    "https://api.everyinfra.com/api/v1/social",
    headers={"Authorization": f"Bearer {os.environ['EVERYINFRA_API_KEY']}"},
    json={
        "platform": "telegram",
        "action": "profile",
        "params": {
            "username": "telegram",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

Real response to the example request above, captured 2026-10-24T18:28:34Z. `results` and `count` are real with personal information (names, handles, avatars, profile links, contact details) removed. `id`, `billing` and `quota` differ on every call, so only their shape is shown.

```text
{
  "id": "req_…",
  "platform": "telegram",
  "action": "profile",
  "results": {
    "username": "telegram",
    "name": "Telegram News",
    "bio": "The official Telegram on Telegram. Much recursion. Very Telegram. Wow.",
    "subscriber_count": 9250000,
    "subscriber_count_display": "9.25M",
    "photo_count": 16,
    "video_count": 228,
    "link_count": 378,
    "is_verified": true,
    "avatar_url": "https://cdn1.telesco.pe/•••",
    "url": "https://t.me/telegram",
    "platform": "telegram"
  },
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## FAQ

### Which forms of `username` can I pass?

The channel's public name in any of these forms: telegram, @telegram, t.me/telegram or t.me/s/telegram. Private invite links are not supported, because Telegram Details reads public channels only.

### Does Telegram Details work for groups?

It is meant for public channels. For a public group, call the Telegram Group capability with the same kind of name to read the group's public information. To read a channel's messages rather than its profile, use Telegram Channel posts, which takes the same `username`.

### What do `photo_count`, `video_count` and `link_count` tell me?

`photo_count` and `video_count` give the channel's photo and video counts, and `link_count` the number of links in its messages. Together they show the mix of media and outbound links a channel posts, which helps when you compare channels in one niche.

## Also

- Capability catalog (no key): https://api.everyinfra.com/api/v1/social/catalog?platform=telegram
- OpenAPI: https://everyinfra.com/openapi.json · Agents guide: https://everyinfra.com/agents.md
