# Export a Telegram channel's message history (500 posts)

**Use case:** 

Export the full recent history of a public Telegram channel, 500 messages deep, as clean JSON or CSV: one item per post with text, date, views, reactions, media and post URL. Useful for archiving, research or feeding an AI model.

## Input

```json
{
  "keywords": [],
  "channels": [
    "cointelegraph"
  ],
  "maxResultsPerKeyword": 50,
  "channelMaxMessages": 500,
  "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 "Export a Telegram channel's message history (500 posts)". [Sign up or log in](https://console.apify.com/create-task-from-example/FJpyVjwV01UysGEzG) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Export a Telegram channel's message history (500 posts)" 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 "Export a Telegram channel's message history (500 posts)" 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 "Export a Telegram channel's message history (500 posts)" task via API](https://apify.com/sherwood/telegram-keyword-search-scraper.md).

## FAQ

### What does exporting 500 messages of a Telegram channel cost?

The Telegram history export task saves up to 500 messages at $0.60 per 1,000 on the free plan, about $0.30, or $0.18 at the lowest paid rate. Channel mode has no keyword charge.

### How far back can a Telegram channel export go?

The Telegram history export goes as far back as Telegram's public preview: 600 messages were read from one channel in a single test run. Set channelAfterDate (2026-01-31, or 1 month, 1 year...) to stop at a date.

### Can I export only the posts that mention a word?

Add keywords to the Telegram history export: with channels given, they are searched inside those channels by Telegram's in-channel search, and channel mode still has no keyword charge.

### How do I load a Telegram channel export into Python or a sheet?

Run sherwood/telegram-keyword-search-scraper with this task's input through the Apify API or apify_client in Python, then download the dataset as JSON or CSV. Each post is one flat item with its post_url.

## 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`).
