# Telegram Channels in bulk API (telegram.channels_batch)

- Canonical page: [https://everyinfra.com/en/telegram-api/channels_batch](https://everyinfra.com/en/telegram-api/channels_batch?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "telegram", "action": "channels_batch", "params": {...}}
- Price: $0.000556 per call ($0.56 per 1,000 requests); failed calls and empty results are not charged
- Billing unit: each element in `channels` counts as one call; the number of elements you send sets the charge
- Returns: list
- 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=channels_batch

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| channels | not declared | yes | not declared | The public channels to look up with `channels_batch`, as an array of up to 20 usernames (name, @name or a t.me/name link), each at most once; a comma-separated string is not accepted. A value in the wrong form is rejected (422) before you are charged. Each channel is charged at the per-call price; channels that cannot be read are refunded and listed in `missed`, and when none of them can be read, the result is empty and not charged. |
| limit | integer (1–) | no | not declared | Positive integer (≥1): the maximum number of results to return; omit it to get every result from this call. Setting it only trims the response to at most this many and never fetches more; billing is the same with or without `limit`, whatever the value. |

## 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). |
| ok | Whether this channel could be read (channels_batch); when false the row has only username, error_code and error_retryable. |
| error_code | Code for why the channel could not be read (channels_batch): not_found means the username does not exist or is not public. |
| error_retryable | Whether asking for this channel again later might succeed (channels_batch). |
| subscriber_count | Number of subscribers. |
| has_preview | Whether the channel has a public web preview, that is, whether t.me/s/<channel> shows its messages (channels_batch). |
| 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": "channels_batch",
  "params": {
    "channels": [
      "durov",
      "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": "channels_batch",
        "params": {
            "channels": [
                "durov",
                "telegram",
            ],
        },
    },
    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": "channels_batch",
  "results": [
    {
      "username": …,
      "url": …,
      "type": …,
      "name": …,
      "bio": …,
      "avatar_url": …,
      "is_verified": …,
      "bio_links": …,
      "is_scam": …,
      "is_fake": …,
      "ok": …,
      "error_code": …,
      "error_retryable": …,
      "subscriber_count": …,
      "has_preview": …,
      "platform": …
    }
  ],
  "count": …,
  "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
