# Telegram Group API (telegram.group)

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

## 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 |
|---|---|
| id | The record's unique ID on the platform. Unique only within one platform; IDs can repeat across platforms. |
| type | Record type; values depend on the capability (for example video / image / text). |
| username | Username (@handle). |
| url | Link to the record on the platform. |
| title | Title. null when the platform has no titles (for example text-only posts). |
| name | Name of the object itself, for account, product and business capabilities. |
| description | Summary or description, usually shorter than text. |
| member_count | platform-native meaning |
| online_count | platform-native meaning |
| created_at | Creation time, same format as posted_at. |
| is_verified | Whether the platform verified the account. null means it cannot be determined. |
| is_scam | platform-native meaning |
| is_fake | platform-native meaning |
| is_forum | platform-native meaning |
| is_restricted | platform-native meaning |
| admin_bots | platform-native meaning |
| 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": "group",
  "params": {
    "username": "DatascienceChats"
  }
}'
```

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

## Response example

Real response to the example request above, captured 2026-09-26T08:56:04Z. `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": "group",
  "results": {
    "id": 1296260008,
    "type": "supergroup",
    "username": "DatascienceChats",
    "url": "https://t.me/DatascienceChats",
    "title": "Data Science,ML & AI Nugget Chats",
    "description": "Discussion community for DS, ML, IOT, AI, DEEP LEARNING and much more from Main Channel @••• and discuss @DatascienceChats",
    "member_count": 13450,
    "online_count": 292,
    "admin_bots": [
      {
        "username": "•••",
        "name": "Rose"
      },
      {
        "username": "•••",
        "name": "DeleteEvents Bot"
      },
      {
        "username": "•••",
        "name": "Group Butler"
      }
    ],
    "platform": "telegram"
  },
  "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
