# Scrape the latest messages of public Telegram channels

**Use case:** 

Give channel usernames or t.me links and get their latest messages, newest first: text, date, views, reactions, photo or video link, forwarded-from and the channel's subscriber count. Works on any public channel with a web preview.

## Input

```json
{
  "keywords": [],
  "channels": [
    "durov",
    "telegram"
  ],
  "maxResultsPerKeyword": 50,
  "channelMaxMessages": 50,
  "maxChannelsPerKeyword": 20,
  "exactPhrase": false,
  "matchAllWords": true,
  "countryCode": "us",
  "languageCode": "en"
}
```

## Output

```json
{
  "source_name": {
    "label": "Channel",
    "format": "string"
  },
  "date": {
    "label": "Date",
    "format": "string"
  },
  "text": {
    "label": "Text",
    "format": "string"
  },
  "view_count": {
    "label": "Views",
    "format": "integer"
  },
  "reactions": {
    "label": "Reactions",
    "format": "object"
  },
  "keyword": {
    "label": "Keyword",
    "format": "string"
  },
  "post_url": {
    "label": "Post",
    "format": "string"
  },
  "status": {
    "label": "Status",
    "format": "string"
  },
  "error": {
    "label": "Error",
    "format": "string"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Telegram Search & Channel Scraper — Keywords, Posts, No Login Actor is ready to run with the inputs already set for "Scrape the latest messages of public Telegram channels". [Sign up or log in](https://console.apify.com/create-task-from-example/RSYeCpiTNESAToZWr) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Scrape the latest messages of public Telegram channels" task

The Telegram Search & Channel Scraper — Keywords, Posts, No Login Actor will start running based on the input automatically. You can also change all the input fields, like keywords, channels, and more, to match your specific use case.

### 3. Receive the "Scrape the latest messages of public Telegram channels" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as channel, date, text, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Scrape the latest messages of public Telegram channels" task via API](https://apify.com/sherwood/telegram-keyword-search-scraper.md).

## FAQ

### What does scraping the latest messages of a Telegram channel cost?

The Telegram channel messages task costs $0.60 per 1,000 messages on the free plan, from $0.36 on paid plans. Channel mode has no keyword charge, and a channel that returns nothing is free.

### Which Telegram channel formats are accepted?

The Telegram channel scraper accepts durov, @durov, t.me/durov or https://t.me/s/durov/123. A private channel or one without a public preview comes back as one free item with status notfound.

### What does each scraped Telegram message include?

Each message from the Telegram channel task has text, date, view_count, reactions, photo or video link, media_type, forwarded_from, post_url and channel_info with the subscriber count, newest first.

### Are Telegram view counts exact?

Telegram rounds large counts in its public preview, so the channel scraper turns view_count 4.09M into 4,090,000, and subscriber counts the same way. For exact subscriber counts, use sherwood/telegram-channel-search.

## About this Actor

This example demonstrates how to use [Telegram Search & Channel Scraper — Keywords, Posts, No Login](https://apify.com/sherwood/telegram-keyword-search-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/sherwood/telegram-keyword-search-scraper.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/sherwood/telegram-keyword-search-scraper.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
