> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mindcase.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Telegram Channel Info API

> Look up a Telegram channel's public profile, including title, description, verification status and subscriber and media counts.

`POST /v1/data/telegram/channels/run`

**Pricing:** $0.002 per channel ($2.00 per 1,000).

## Request

Send the inputs under `params`. Only the keys below are accepted; any other key returns `422 invalid_params`.

**channels** `string[]` *required*

The Telegram channel usernames or t.me links to look up.

## Example

```bash cURL theme={null}
curl -X POST "https://api.mindcase.co/v1/data/telegram/channels/run?wait=true" \
  -H "Authorization: Bearer $MINDCASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "params": {
    "channels": [
      "durov",
      "rian_ru",
      "telegram"
    ]
  }
}'
```

```python Python theme={null}
import os, requests

r = requests.post(
    "https://api.mindcase.co/v1/data/telegram/channels/run",
    params={"wait": "true"},
    headers={"Authorization": f"Bearer {os.environ['MINDCASE_API_KEY']}"},
    json={"params": {
    "channels": [
        "durov",
        "rian_ru",
        "telegram"
    ]
}},
)
job = r.json()
rows = job.get("data", [])  # if job["status"] == "running", poll /v1/jobs/{job_id}/results
```

```javascript Node.js theme={null}
const r = await fetch("https://api.mindcase.co/v1/data/telegram/channels/run?wait=true", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.MINDCASE_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ params: {
  "channels": [
    "durov",
    "rian_ru",
    "telegram"
  ]
} }),
});
const job = await r.json();
const rows = job.data ?? []; // if job.status === "running", poll /v1/jobs/{job_id}/results
```

## Response fields

Each row in `data` is one channel, keyed by these fields.

| Field | Name | Type |
| - | - | - |
| `channelUrl` | Channel URL | url |
| `username` | Username | text |
| `title` | Title | text |
| `description` | Description | text |
| `verified` | Verified | boolean |
| `subscribers` | Subscribers | text |
| `photos` | Photos | text |
| `videos` | Videos | text |
| `links` | Links | text |
| `files` | Files | text |

## Example response

Abridged: long text and lists are shortened.

```json theme={null}
{
  "job_id": "7f3a1c2e-0b9d-4c55-9a51-3f2e8d1b6a40",
  "agent": "telegram/channels",
  "status": "completed",
  "row_count": 1,
  "truncated": false,
  "data": [
    {
      "channelUrl": "https://t.me/durov",
      "photos": "102",
      "videos": "47",
      "username": "durov",
      "description": "Founder of Telegram.",
      "subscribers": "10.1M",
      "links": "200",
      "verified": true,
      "title": "Pavel Durov",
      "files": "0"
    }
  ]
}
```

## Related APIs

For a channel's posts use [`telegram/posts`](https://docs.mindcase.co/apis/telegram/posts); to search posts by keyword use [`telegram/search`](https://docs.mindcase.co/apis/telegram/search).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.