# Telegram User profile API (telegram.user_profile)

- Canonical page: [https://everyinfra.com/en/telegram-api/user_profile](https://everyinfra.com/en/telegram-api/user_profile?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "telegram", "action": "user_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

## Health

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

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| username | not declared | yes | not declared | A personal account or bot username such as BotFather (a leading @ is removed), or a t.me/<username> link. A username that does not exist returns 200 with an empty result and `empty_reason` set to `account_not_found`; a channel or group username returns `empty_reason` set to `not_a_user` (use profile for a channel and group for a group). Neither is charged. |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| username | Username (@handle). |
| url | Link to the record on the platform. |
| type | Record type; values depend on the capability (for example video / image / text). |
| 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. |
| avatar_url | Avatar image link. Some platforms return sized CDN links that can expire. |
| is_verified | Whether the platform verified the account. null means it cannot be determined. |
| bio_links | Links in the bio (channels_batch, user_profile). |
| is_scam | **Officially flagged by Telegram as a scam account.** When true, the content cannot be trusted. |
| is_fake | **Officially flagged as an impersonation account** (pretending to be a well-known entity). |
| monthly_user_count | A bot's monthly user count as Telegram's page shows it (user_profile); absent for personal accounts. |
| 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": "user_profile",
  "params": {
    "username": "BotFather"
  }
}'
```

```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": "user_profile",
        "params": {
            "username": "BotFather",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

No real sample for these example parameters yet: structure only, every value is a placeholder (…).

```text
{
  "id": "req_…",
  "platform": "telegram",
  "action": "user_profile",
  "results": {
    "username": …,
    "url": …,
    "type": …,
    "name": …,
    "bio": …,
    "avatar_url": …,
    "is_verified": …,
    "bio_links": …,
    "is_scam": …,
    "is_fake": …,
    "monthly_user_count": …,
    "platform": …
  },
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## 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
