# Search Telegram channel posts for a keyword

**Use case:** 

The posts Telegram's own channel search finds for "bitcoin" in four crypto news channels (Cointelegraph, Watcher Guru, The Block, Wu Blockchain), up to 10 per channel, newest first, each marked with the search text (matched_search), with its date and views. When the search finds fewer posts than asked, the profile row says how many. Put your own word, phrase or #hashtag in postsSearch.

## Input

```json
{
  "usernames": [
    "cointelegraph",
    "watcherguru",
    "the_block_crypto",
    "wublockchainenglish"
  ],
  "maxPostsPerChannel": 10,
  "postsNewerThan": "",
  "postsOlderThan": "",
  "postsSearch": "bitcoin",
  "maxCommentsPerPost": 0,
  "deepProfile": false,
  "includeMarkdown": false,
  "onlyNewPosts": false,
  "onlyChanged": false,
  "stateStoreName": "",
  "maxItems": 0,
  "runTag": ""
}
```

## Output

```json
{
  "row_type": {
    "label": "Row type",
    "format": "string"
  },
  "input": {
    "label": "Input",
    "format": "string"
  },
  "input_index": {
    "label": "Position",
    "format": "integer"
  },
  "inputs_merged": {
    "label": "Merged inputs",
    "format": "array"
  },
  "profile_status": {
    "label": "Status",
    "format": "string"
  },
  "status_detail": {
    "label": "Status detail",
    "format": "string"
  },
  "scraped_at": {
    "label": "Scraped at",
    "format": "string"
  },
  "username": {
    "label": "Username",
    "format": "string"
  },
  "entity_type": {
    "label": "Type",
    "format": "string"
  },
  "title": {
    "label": "Title",
    "format": "string"
  },
  "description": {
    "label": "Description",
    "format": "string"
  },
  "profile_url": {
    "label": "Profile URL",
    "format": "string"
  },
  "avatar_url": {
    "label": "Photo",
    "format": "string"
  },
  "verified": {
    "label": "Verified",
    "format": "boolean"
  },
  "warning_label": {
    "label": "Warning label",
    "format": "string"
  },
  "invite_link": {
    "label": "Invite link",
    "format": "string"
  },
  "count": {
    "label": "Count",
    "format": "integer"
  },
  "count_type": {
    "label": "Count type",
    "format": "string"
  },
  "count_text": {
    "label": "Count as written",
    "format": "string"
  },
  "counts_precision": {
    "label": "Count precision",
    "format": "string"
  },
  "subscribers": {
    "label": "Subscribers",
    "format": "integer"
  },
  "subscribers_shown": {
    "label": "Subscribers (rounded)",
    "format": "string"
  },
  "members": {
    "label": "Members",
    "format": "integer"
  },
  "members_online": {
    "label": "Online",
    "format": "integer"
  },
  "monthly_users": {
    "label": "Monthly users",
    "format": "integer"
  },
  "chat_id": {
    "label": "Chat id",
    "format": "integer"
  },
  "bot_api_id": {
    "label": "Bot API id",
    "format": "integer"
  },
  "has_preview": {
    "label": "Public preview",
    "format": "boolean"
  },
  "preview_url": {
    "label": "Preview URL",
    "format": "string"
  },
  "photos_count": {
    "label": "Photos",
    "format": "integer"
  },
  "videos_count": {
    "label": "Videos",
    "format": "integer"
  },
  "files_count": {
    "label": "Files",
    "format": "integer"
  },
  "links_count": {
    "label": "Links",
    "format": "integer"
  },
  "counters_shown": {
    "label": "Counters as shown",
    "format": "object"
  },
  "counters_precision": {
    "label": "Counters precision",
    "format": "string"
  },
  "latest_post_id": {
    "label": "Latest post id",
    "format": "integer"
  },
  "latest_post_at": {
    "label": "Latest post at",
    "format": "string"
  },
  "latest_post_url": {
    "label": "Latest post URL",
    "format": "string"
  },
  "created_at": {
    "label": "Created",
    "format": "string"
  },
  "created_at_source": {
    "label": "Created (source)",
    "format": "string"
  },
  "linked_chat_id": {
    "label": "Linked group id",
    "format": "integer"
  },
  "engagement_posts": {
    "label": "Posts measured",
    "format": "integer"
  },
  "avg_views": {
    "label": "Average views",
    "format": "number"
  },
  "median_views": {
    "label": "Median views",
    "format": "number"
  },
  "avg_reactions": {
    "label": "Average reactions",
    "format": "number"
  },
  "view_rate": {
    "label": "View rate",
    "format": "number"
  },
  "engagement_rate": {
    "label": "Engagement rate",
    "format": "number"
  },
  "posts_per_week": {
    "label": "Posts per week",
    "format": "number"
  },
  "dominant_script": {
    "label": "Script",
    "format": "string"
  },
  "posts_requested": {
    "label": "Posts asked",
    "format": "integer"
  },
  "posts_delivered": {
    "label": "Posts delivered",
    "format": "integer"
  },
  "posts_note": {
    "label": "Posts note",
    "format": "string"
  },
  "deep_note": {
    "label": "Deep profile note",
    "format": "string"
  },
  "change_type": {
    "label": "Change",
    "format": "string"
  },
  "changed_fields": {
    "label": "Changed fields",
    "format": "array"
  },
  "previous_read_at": {
    "label": "Previous read",
    "format": "string"
  },
  "previous_count": {
    "label": "Previous count",
    "format": "integer"
  },
  "count_change": {
    "label": "Count change",
    "format": "integer"
  },
  "count_change_per_day": {
    "label": "Change per day",
    "format": "number"
  },
  "first_read_at": {
    "label": "First read",
    "format": "string"
  },
  "times_read": {
    "label": "Times read",
    "format": "integer"
  },
  "count_history": {
    "label": "Count history",
    "format": "array"
  },
  "markdown": {
    "label": "Markdown",
    "format": "string"
  },
  "run_tag": {
    "label": "Run tag",
    "format": "string"
  },
  "channel_title": {
    "label": "Channel",
    "format": "string"
  },
  "channel_subscribers": {
    "label": "Channel subscribers",
    "format": "integer"
  },
  "post_id": {
    "label": "Post id",
    "format": "integer"
  },
  "post_url": {
    "label": "Post URL",
    "format": "string"
  },
  "published_at": {
    "label": "Published",
    "format": "string"
  },
  "is_edited": {
    "label": "Edited",
    "format": "boolean"
  },
  "author_signature": {
    "label": "Signature",
    "format": "string"
  },
  "text": {
    "label": "Text",
    "format": "string"
  },
  "text_length": {
    "label": "Text length",
    "format": "integer"
  },
  "hashtags": {
    "label": "Hashtags",
    "format": "array"
  },
  "mentions": {
    "label": "Mentions",
    "format": "array"
  },
  "links": {
    "label": "Links",
    "format": "array"
  },
  "views": {
    "label": "Views",
    "format": "integer"
  },
  "views_shown": {
    "label": "Views as shown",
    "format": "string"
  },
  "views_precision": {
    "label": "Views precision",
    "format": "string"
  },
  "reactions": {
    "label": "Reactions",
    "format": "array"
  },
  "reactions_total": {
    "label": "Reactions total",
    "format": "integer"
  },
  "reactions_precision": {
    "label": "Reactions precision",
    "format": "string"
  },
  "paid_stars": {
    "label": "Paid Stars",
    "format": "integer"
  },
  "forwarded_from": {
    "label": "Forwarded from",
    "format": "string"
  },
  "forwarded_from_url": {
    "label": "Forwarded from URL",
    "format": "string"
  },
  "reply_to_post_id": {
    "label": "Reply to",
    "format": "integer"
  },
  "media": {
    "label": "Media",
    "format": "array"
  },
  "media_types": {
    "label": "Media types",
    "format": "array"
  },
  "media_not_supported": {
    "label": "Media not on the web",
    "format": "boolean"
  },
  "link_preview": {
    "label": "Link preview",
    "format": "object"
  },
  "poll": {
    "label": "Poll",
    "format": "object"
  },
  "buttons": {
    "label": "Buttons",
    "format": "array"
  },
  "matched_search": {
    "label": "Search",
    "format": "string"
  },
  "comments_count": {
    "label": "Comments",
    "format": "integer"
  },
  "comments_status": {
    "label": "Comments status",
    "format": "string"
  },
  "comments": {
    "label": "Comments list",
    "format": "array"
  }
}
```

## How it works

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

The Telegram Profile Scraper: Channel, Group, Bot & User Info Actor is ready to run with the inputs already set for "Search Telegram channel posts for a keyword". [Sign up or log in](https://console.apify.com/create-task-from-example/vpiOKm1AxClbCeCqP) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Search Telegram channel posts for a keyword" task

The Telegram Profile Scraper: Channel, Group, Bot & User Info Actor will start running based on the input automatically. You can also change all the input fields, like usernames or t.me links, posts per channel, and more, to match your specific use case.

### 3. Receive the "Search Telegram channel posts for a keyword" 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 row type, input, position, 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 "Search Telegram channel posts for a keyword" task via API](https://apify.com/hyperbach/telegram-profile-scraper.md).

## About this Actor

This example demonstrates how to use [Telegram Profile Scraper: Channel, Group, Bot & User Info](https://apify.com/hyperbach/telegram-profile-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/hyperbach/telegram-profile-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/hyperbach/telegram-profile-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`).
