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

> Posts from public Telegram channels with text, posted time, views and reaction breakdown. Pass the channels.

`POST /v1/data/telegram/posts/run`

**Pricing:** $0.002 per post ($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*

One or more channels. One request reads them all.

**maxResults** `integer` (default: 100)

How many posts to return in total. Defaults to 100; use 0 for all.

**onlyPostsNewerThan** `date` (default: 2010-01-01)

Only Posts Newer Than as a date (YYYY-MM-DD).

**onlyPostsOlderThan** `date`

Only Posts Older Than as a date (YYYY-MM-DD).

## Example

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

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

r = requests.post(
    "https://api.mindcase.co/v1/data/telegram/posts/run",
    params={"wait": "true"},
    headers={"Authorization": f"Bearer {os.environ['MINDCASE_API_KEY']}"},
    json={"params": {
    "channels": [
        "durov"
    ],
    "maxResults": 10
}},
)
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/posts/run?wait=true", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.MINDCASE_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ params: {
  "channels": [
    "durov"
  ],
  "maxResults": 10
} }),
});
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 post, keyed by these fields.

| Field | Name | Type |
| - | - | - |
| `postUrl` | Post URL | url |
| `postId` | Post ID | text |
| `channelHandle` | Channel Handle | text |
| `postedAt` | Posted At | datetime |
| `text` | Text | text |
| `views` | Views | number |
| `reactionBreakdown` | Reaction Breakdown | object |
| `isEdited` | Is Edited | boolean |
| `authorSignature` | Author Signature | text |
| `replyToPostUrl` | Reply To Post URL | url |
| `forwardedFrom` | Forwarded From | object |
| `hashtags` | Hashtags | array |
| `mentions` | Mentions | array |
| `outboundLinks` | Outbound Links | array |
| `media` | Media | object\_array |
| `author` | Author | object |

## Example response

Abridged: long text and lists are shortened.

```json theme={null}
{
  "job_id": "7f3a1c2e-0b9d-4c55-9a51-3f2e8d1b6a40",
  "agent": "telegram/posts",
  "status": "completed",
  "row_count": 1,
  "truncated": false,
  "data": [
    {
      "author": {
        "title": "Pavel Durov",
        "description": "Founder of Telegram.",
        "isVerified": true,
        "avatarUrl": "https://cdn4.telesco.pe/file/u1wL_lWjQAWh3Fp5S9UoxNQ5uKxUGJR3urWXbVOAVjL7mYx-wsJl5HNHe-OSaw7tX1gPhsG--hko3RTe-GQ0BrkQamIeeficpo3vcKl9zSsL2cDAZppVoS-Q_4Bn3ghO...",
        "subscriberCount": 10200000,
        "photoCount": 102,
        "videoCount": 47,
        "linkCount": 200
      },
      "reactionBreakdown": {
        "⭐": 7700,
        "5936157098181135162": 17200,
        "5399847211989246390": 7320,
        "5373223594484587136": 5730
      },
      "isEdited": false,
      "postedAt": "2026-10-11T14:52:40+00:00",
      "forwardedFrom": {
        "name": null,
        "url": null
      },
      "media": [
        {
          "type": "video",
          "url": null,
          "thumbnailUrl": "https://cdn4.telesco.pe/file/nwwZn7tFPPS9EWfQPHOPONCL6FDHwCTCfwkahK0vvQsdufPCC73chxCFNcUhiRuTo_0hSCSsYNn_ZYAbRM5C8fworvYWYehhzuWVgeB-A4qBeQ1JCP18AVdoE_jkvbt3..."
        }
      ],
      "postUrl": "https://t.me/durov/552",
      "text": "✨ Designers × AI🆕 The mockup era is over. Today’s AI tools give every designer a superpower: you can now craft your ideas, not just draw them. The gap betwee...",
      "replyToPostUrl": null,
      "views": 1800000,
      "channelHandle": "durov",
      "mentions": [
        "@designers"
      ],
      "outboundLinks": [
        "https://t.me/designers"
      ],
      "postId": "552",
      "authorSignature": "Pavel Durov",
      "hashtags": []
    }
  ]
}
```

## Related APIs

To search across channels by keyword use [`telegram/search`](https://docs.mindcase.co/apis/telegram/search); for channel profile and subscribers use [`telegram/channels`](https://docs.mindcase.co/apis/telegram/channels).


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