# Facebook Trend Keyword Finder (`myagizm/facebook-trend-keyword-finder`) Actor

Find related Facebook hashtags for any seed keyword, ranked by a transparent 0–100 trend score with engagement, recency and supporting public post links. No login required.

- **URL**: https://apify.com/myagizm/facebook-trend-keyword-finder.md
- **Developed by:** [MYM](https://apify.com/myagizm) (community)
- **Categories:** SEO tools, Social media, Marketing
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 ranked keywords

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

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 examples already wired to this Actor's own input schema, see the [API](#api) section below.

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

# README

## Facebook Trend Keyword Finder

Turn a seed hashtag such as `coffee`, `kahve` or `aquascaping` into a ranked list of related Facebook hashtags. Each keyword is scored 0–100 from the public Facebook posts that use the seed hashtag, with supporting post links and engagement metrics.

### What you get

- A transparent 0–100 trend score and rank for each related hashtag.
- How often the hashtag appears next to your seed in sampled public posts.
- Sample-based reactions, comments, shares and recency metrics.
- Up to three supporting public Facebook post links with a caption excerpt.
- Flat dataset columns and Overview, Metrics and Evidence table views.

No Facebook login or cookies required. Export JSON, CSV, Excel or use the Apify API.

### Input

```json
{"seedKeywords":["coffee","kahve","aquascaping"],"maxKeywords":50,"sampleSize":20,"includeExamples":true}
```

| Field | Default | Description |
|---|---|---|
| seedKeywords | — | 1–5 seed hashtags. Letters, numbers and underscore only; a leading # is optional. Spaces are not allowed (use `coldbrew`, not `cold brew`). |
| maxKeywords | 50 | Maximum ranked rows per seed, 1–100. Fewer may be available. |
| sampleSize | 20 | Maximum distinct public posts sampled per seed, 4–30. |
| includeExamples | true | Include up to three supporting posts for each keyword. |

Country and language filters are not supported. Multilingual seeds work (for example `kahve`). Facebook shows only a small public sample per hashtag to logged-out visitors, so a run typically analyses 4–15 posts per seed. Treat results as a fast discovery signal, not a full census.

### Output columns

| Columns | Meaning |
|---|---|
| seedKeyword, keyword, score, rank | Original seed, normalized related hashtag, score and rank within that seed. |
| relation, sources | Always `hashtag`: the keyword was found as a hashtag on posts that use the seed. |
| frequency, frequencyShare, sampleCount | Sampled posts containing the keyword, that count divided by sampleCount, and the number of seed posts analysed. |
| avgLikes, avgComments, avgShares, avgEngagement | Average reactions, comments, shares and their sum over matching posts. Unknown values are null. |
| totalViews, avgViews, engagementRate | Always null: Facebook does not show view counts for these posts publicly. |
| recencyScore, recent7DaysShare, recent30DaysShare, datedSampleCount | Share of dated matching posts from the last 7 / 30 days; recencyScore = 0.65 × 7-day share + 0.35 × 30-day share. |
| growthSignal, growthSignalType | null and `not_available_single_snapshot`. No historical growth is claimed. |
| topExamples, topExampleUrl | Supporting public posts (URL, caption excerpt, reactions, comments, shares, publishedAt) and the first link. |
| id, platform, scrapedAt | Stable per-seed keyword ID, `facebook`, and UTC observation time. |

### Scoring formula

The score is an evidence-based heuristic, not official Facebook search volume or a forecast. Keywords are ranked separately for each seed.

`score = 100 × (0.50 × frequency share + 0.25 × engagement + 0.20 × recency + 0.05 × seed match)`

- Frequency share: matching posts / analysed seed posts.
- Engagement: log(1 + average reactions + comments + shares), divided by the highest value among keywords for that seed.
- Recency: recencyScore above (0 when no dates are known).
- Seed match: 1 when the keyword contains the seed or the seed contains the keyword (for example `kahvekeyfi` for `kahve`).

Hashtags are lowercased, stripped of diacritics and the leading #, and deduplicated per seed. The seed itself and generic reach tags (fyp, viral, reels, explore, trending, facebook, keşfet variants and similar) are excluded. Co-occurrence does not guarantee semantic relevance: with small samples, a single unrelated post can add unrelated hashtags. Check frequency and sampleCount before acting on a keyword.

### Pricing and limits

Pay per delivered keyword row; no separate start event. See the Store pricing tab for your plan's current price. The same keyword under different seeds is a separate row.

Free Apify plans are limited to 40 requested results per Actor per UTC day, with an additional shared usage budget for returning free users. Requests count toward this allowance even when fewer rows are available. Paid Apify plans have no free-plan daily limit. Input errors finish SUCCEEDED with no results and no charge; see OUTPUT for the reason. Genuine service failures fail the run and are not charged. When some seeds have no related hashtags, the other seeds still produce results and OUTPUT.skipped explains the rest.

Only publicly visible posts are used. Caption excerpts are shown as published; post links can stop working if the author deletes the post.

***

## Facebook 热门关键词发现器

输入种子话题标签（例如 coffee、kahve、aquascaping），从使用该标签的 Facebook 公开帖子中找出相关话题标签，并给出 0–100 分数、排名、互动指标和帖子链接。无需 Facebook 登录或 Cookie，可导出 JSON、CSV、Excel 或通过 Apify API 使用。

### 输入

- seedKeywords：1–5 个种子标签，仅限字母、数字和下划线，可带 #，不能包含空格。
- maxKeywords：每个种子最多返回多少条，默认 50，范围 1–100。
- sampleSize：每个种子最多采样多少个不同公开帖子，默认 20，范围 4–30。
- includeExamples：默认 true，每个关键词最多附带三个公开帖子示例。

不支持国家或语言过滤，支持多语言种子。Facebook 对未登录访客只展示少量公开帖子，因此每个种子通常分析 4–15 个帖子；结果适合快速发现，不代表全量统计。

### 指标与评分

score = 100 × (50% 出现频率 + 25% 互动 + 20% 近期比例 + 5% 种子匹配)。

出现频率为包含该标签的帖子数除以分析的种子帖子数；互动为 log(1 + 平均点赞/反应 + 评论 + 分享)，按同一种子内最高值归一化；近期比例 = 0.65 × 近 7 天比例 + 0.35 × 近 30 天比例；关键词包含种子或被种子包含时种子匹配为 1。每个种子单独排名。

输出包含 seedKeyword、keyword、score、rank、frequency、frequencyShare、sampleCount、avgLikes、avgComments、avgShares、avgEngagement、recencyScore、recent7DaysShare、recent30DaysShare、datedSampleCount、topExamples、topExampleUrl、platform、scrapedAt 等字段。Facebook 不公开这些帖子的播放量，因此 totalViews、avgViews、engagementRate 为 null；growthSignal 固定为 null，因为单次观察无法证明增长。种子本身和 fyp、viral、reels、explore、trending、keşfet 等通用流量标签会被过滤。共现不保证语义相关，样本较小时请参考 frequency 和 sampleCount。

### 计费及免费限制

按实际写入数据集的关键词行计费，无额外启动事件。免费计划每个 Actor 每个 UTC 日最多请求 40 条结果，历史免费用户还受共享用量预算限制，按请求数量计算额度。付费计划不受这些限制。输入错误以 SUCCEEDED 结束、没有结果且不收费，原因见 OUTPUT；真实服务错误会失败且不收费。部分种子无结果时，其他种子仍返回数据，OUTPUT.skipped 说明原因。

# Actor input Schema

## `seedKeywords` (type: `array`):

1–5 Facebook hashtag seeds (letters, numbers, underscore; a leading # is optional). Empty input finishes without charge.

## `maxKeywords` (type: `integer`):

Up to this many ranked keywords per seed. Availability varies with the public sample.

## `sampleSize` (type: `integer`):

Maximum distinct public posts sampled per seed. Larger values take longer; fewer posts may be available.

## `includeExamples` (type: `boolean`):

Include up to three supporting public posts per keyword.

## Actor input object example

```json
{
  "seedKeywords": [
    "coffee"
  ],
  "maxKeywords": 50,
  "sampleSize": 20,
  "includeExamples": true
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

## `metrics` (type: `string`):

No description

## `evidence` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "seedKeywords": [
        "coffee"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("myagizm/facebook-trend-keyword-finder").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "seedKeywords": ["coffee"] }

# Run the Actor and wait for it to finish
run = client.actor("myagizm/facebook-trend-keyword-finder").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "seedKeywords": [
    "coffee"
  ]
}' |
apify call myagizm/facebook-trend-keyword-finder --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,myagizm/facebook-trend-keyword-finder"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/ZEt9TCmLQGs7150nF/builds/9ftU2rcZ2gHfkeHEe/openapi.json
