# Facebook Hashtag Scraper (`coregent/facebook-hashtag-scraper`) Actor

Collect public Facebook posts by hashtag: text, author, reactions with breakdown, comments, shares, media, timestamps and matched hashtags. Multi-hashtag dedupe, format/date filters, only-new monitoring. No Facebook login or cookies.

- **URL**: https://apify.com/coregent/facebook-hashtag-scraper.md
- **Developed by:** [Delowar Munna](https://apify.com/coregent) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 96.3% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$2.50 / 1,000 hashtag post results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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 Hashtag Scraper — Public Posts, Reels, Engagement & Hashtag Monitoring

![Facebook Hashtag Scraper](https://raw.githubusercontent.com/coregentdevspace/facebook-hashtag-scraper-assets/main/thumbnail-facebook-hashtag-scraper.png)

**Start from a hashtag.** Give it `#sustainability`, your campaign tag, or a dozen of them, and get the public Facebook posts behind each one as clean rows. Each row has the post text, author, reactions with a per-type breakdown, comments, shares, photos, videos and Reels, an exact timestamp, the post URL, and **which of your hashtags matched it**. Export to JSON, CSV or Excel, or call it from the API.

- 🔓 **No Facebook login, cookies, account or token.** Nothing to hand over, nothing to get banned.
- \#️⃣ **Many hashtags per run**, up to 50. With or without `#`, in any script (`#রেস্টুরেন্ট`, `#ข่าวพัทยา`).
- 🧾 **One row per unique post.** A post found under `#travel` and `#sydney` is one row with `matchedHashtags: ["travel", "sydney"]`, charged once.
- ❤️ **Engagement as Facebook shows it**: reactions, the reaction breakdown (Like, Love, Care, Haha, Wow, Sad, Angry), comments and shares.
- 🖼️ **Post formats**: Photo, Album, Video, Reel, Link, Text and shared posts, with a format filter.
- 📅 **Date filter**: an exact date or `"7 days ago"`.
- 🔔 **Only-new monitoring**: schedule it daily and get only the posts it has not returned before.
- 📊 **Honest coverage**: every hashtag reports how many posts were asked for, how many were found, and whether Facebook's public list ran out first.
- 💸 **Pay only for posts delivered.** Hashtag pages, requests, pagination, retries, duplicates, filtered-out posts and empty hashtags are never charged.

***

### Quick start

1. Add one or more hashtags, e.g. `sustainability`.
2. Leave **Maximum posts per hashtag** at 100, or lower it.
3. Click **Start**. A 100-post hashtag usually finishes in well under a minute.

```json
{
    "hashtags": ["sustainability"],
    "maxPostsPerHashtag": 100
}
```

#### More examples

**Five hashtags in three scripts, 100 posts each** (the input behind the sample output below: 500 posts)

```json
{
    "hashtags": ["sydney", "travel", "nike", "recycling", "রেস্টুরেন্ট"],
    "maxPostsPerHashtag": 100
}
```

**Several hashtags, one row per post**

```json
{
    "hashtags": ["#travel", "#sydney", "#australia"],
    "maxPostsPerHashtag": 100,
    "deduplicateAcrossHashtags": true
}
```

**Reels and videos only**

```json
{
    "hashtags": ["travel"],
    "postFormats": ["REEL", "VIDEO"]
}
```

**Campaign monitor: run it daily, get only new posts**

```json
{
    "hashtags": ["coregentlaunch", "coregent"],
    "dateFrom": "7 days ago",
    "onlyNewPosts": true,
    "monitorKey": "coregent-campaign"
}
```

**Strictly posts that contain the hashtag, last 30 days**

```json
{
    "hashtags": ["sustainability", "recycling"],
    "strictHashtagMatch": true,
    "dateFrom": "30 days ago"
}
```

***

### Input

| Field                                             | What it does                                                                                                                         |
| ------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
| `hashtags`                                        | Hashtags, with or without `#`. Up to 50 per run. Duplicates (`#Travel`, `travel`) are merged.                                        |
| `hashtagUrls`                                     | `https://www.facebook.com/hashtag/<tag>` URLs, combined with the above.                                                              |
| `maxPostsPerHashtag`                              | Stop a hashtag at this many matching posts. Default 100.                                                                             |
| `maxPostsTotal`                                   | Optional cap on unique posts for the whole run (0 = none).                                                                           |
| `postFormats`                                     | `POST` (a post sharing another post), `PHOTO`, `ALBUM`, `VIDEO`, `REEL`, `LINK`, `TEXT`. Empty = all.                                |
| `dateFrom` / `dateTo`                             | `2026-10-01`, an ISO timestamp, or `"7 days ago"`, `"12 hours ago"`, `"2 weeks ago"`, `today`, `yesterday`.                          |
| `strictHashtagMatch`                              | Keep only posts whose text contains `#<your hashtag>` (see below).                                                                   |
| `feeds`                                           | Facebook's **Top** and **Recent** hashtag lists. Both by default, which finds the most posts.                                        |
| `includeAuthor`, `includeEngagement`, `includeReactionBreakdown`, `includeMedia` | Leave on for the full row. Switched off, that column is `null`, so exports keep the same columns. |
| `includeOCR`                                      | Adds `ocrText`: the words Facebook's own automatic alt text says are written in the post's images (see below).                       |
| `onlyNewPosts`, `monitorKey`, `emitBaselinePosts` | Monitor mode (see below).                                                                                                            |
| `deduplicateAcrossHashtags`                       | On by default: one row per post. Off: one row per hashtag-and-post pair.                                                             |
| `maxConcurrency`                                  | Hashtags read in parallel (default 3).                                                                                               |
| `proxyConfiguration`                              | Apify Datacenter (default) or none. See the proxy policy.                                                                            |

#### Should hashtags include `#`?

Either way works. `#Travel`, `travel` and `https://www.facebook.com/hashtag/travel` are the same hashtag, scraped once. Matching ignores case; letters in scripts without case are left exactly as written. Something that is not a single hashtag (`two words`, `#123`) is skipped with the status `INVALID_HASHTAG`, and the rest of the run continues.

***

### Output

One row per unique public post.

| Field                                                  | Meaning                                                                                                                              |
| ------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ |
| `postId`, `feedbackId`, `postUrl`                      | Facebook's post ID, its feedback ID, and the post's permalink.                                                                      |
| `postFormat`                                           | `PHOTO`, `ALBUM` (several photos), `VIDEO`, `REEL`, `LINK`, `TEXT`, `POST` (shares another post; see `sharedPost`), or `UNKNOWN`.    |
| `text`                                                 | The full post text, with emojis, line breaks, mentions and hashtags kept.                                                            |
| `matchedHashtags`                                      | Every one of your hashtags this post was found under.                                                                                |
| `inputHashtags`                                        | Exactly what you typed for those hashtags, so you can trace each row back to your input.                                             |
| `hashtagsInText`                                       | Every hashtag written in the post, including ones you did not search for.                                                            |
| `hashtagInText`, `matchedHashtagsInText`               | Whether, and which of, your hashtags are literally written in the post.                                                              |
| `publishedAt`, `publishedTimestamp`, `timestampQuality` | Exact publish time (ISO and Unix seconds). `EXACT` when Facebook gave it, otherwise `UNKNOWN`.                                      |
| `author`                                               | `id`, `name`, `url`, `avatarUrl`, `isVerified`, `type`.                                                                              |
| `engagement`                                           | `reactionCount`, `commentCount`, `shareCount`, `viewCount`, `totalEngagement` (reactions + comments + shares; views not included).   |
| `reactions`                                            | Breakdown, e.g. `[{"type":"LIKE","count":180},{"type":"LOVE","count":12}]`.                                                          |
| `media`                                                | Each photo/video: `type`, `id`, `url` (its Facebook page), `thumbnailUrl` (the image file), `durationSeconds`, `width`, `height`, `altText`. |
| `imageUrls`, `videoUrls`, `thumbnailUrls`, `mediaCount` | Flat lists for CSV and spreadsheets.                                                                                                |
| `ocrText`                                              | With `includeOCR`: words Facebook's alt text says are in the images.                                                                 |
| `externalLinks`, `sharedPost`                          | Off-Facebook links the post points to, and the post it shares (if any).                                                              |
| `source`                                               | Where it was posted: `sourceType` (`GROUP` for a public group post), `sourceId`, `sourceName`, `sourceUrl`, `sourceVisibility`. For a group post, `sourceName` is `null`: the list carries the group's ID, not its name. |
| `discoveredVia`                                        | Which hashtag and list found it, e.g. `["#sustainability (TOP)", "#sustainability (RECENT)"]`.                                       |
| `isNewPost`, `firstSeenAt`, `monitorKey`               | Monitor mode only, otherwise `null`.                                                                                                 |
| `scrapedAt`                                            | When the row was collected.                                                                                                          |

**Missing numbers are `null`, never `0`.** A `0` would be a claim that nobody reacted. `null` says Facebook did not show the number.

#### Output views

The dataset has five tabs: **Posts**, **Engagement**, **Media**, **Authors & sources** and **All fields**.

**All fields** (500 posts from the five-hashtag example above):

![All fields table view](https://raw.githubusercontent.com/coregentdevspace/facebook-hashtag-scraper-assets/main/facebook-hashtag-scraper-output-all-fields-table-view.png)

##### All fields

A complete row, as delivered (image and avatar URLs shortened):

```json
{
    "postId": "1600677792089823",
    "feedbackId": "ZmVlZGJhY2s6MTYwMDY3Nzc5MjA4OTgyMw==",
    "postUrl": "https://www.facebook.com/7NEWSsydney/posts/pfbid02KG7AwtzKyYQ4vHvwTijxTqNKQ6oagJZnmTrytfiCeWxd7V5GMj1Mp1wdUQ1ptxhvl",
    "postFormat": "PHOTO",
    "text": "Are you stuck on the M8? Send us a video.\n\nThe M8 Tunnel is closed in both directions due to a truck fire in southbound lanes.\n\nEmergency crews are responding, with drivers urged to avoid the area and allow plenty of extra travel time. #m8 #m8tunnel #sydney #sydneytraffic",
    "matchedHashtags": ["sydney"],
    "inputHashtags": ["sydney"],
    "hashtagsInText": ["m8", "m8tunnel", "sydney", "sydneytraffic"],
    "hashtagInText": true,
    "matchedHashtagsInText": ["sydney"],
    "publishedAt": "2026-10-29T05:21:09.000Z",
    "publishedTimestamp": 1793251269,
    "timestampQuality": "EXACT",
    "author": {
        "id": "100064428530126",
        "name": "7NEWS Sydney",
        "url": "https://www.facebook.com/7NEWSsydney",
        "avatarUrl": "https://scontent-dfw6-2.xx.fbcdn.net/v/t39.30808-1/451580631_…",
        "type": "UNKNOWN",
        "isVerified": true
    },
    "engagement": { "reactionCount": 23, "commentCount": 18, "shareCount": 6, "viewCount": null, "totalEngagement": 47 },
    "reactions": [
        { "type": "LIKE", "count": 11 },
        { "type": "WOW", "count": 8 },
        { "type": "SAD", "count": 2 },
        { "type": "CARE", "count": 1 },
        { "type": "HAHA", "count": 1 }
    ],
    "media": [
        {
            "type": "IMAGE",
            "id": "1600677775423158",
            "url": "https://www.facebook.com/photo/?fbid=1600677775423158&set=a.613481464142799",
            "thumbnailUrl": "https://scontent-dfw6-2.xx.fbcdn.net/v/t39.99422-6/873924101_…",
            "durationSeconds": null,
            "width": 960,
            "height": 540,
            "altText": "May be an image of map, car, road and text"
        }
    ],
    "imageUrls": ["https://scontent-dfw6-2.xx.fbcdn.net/v/t39.99422-6/873924101_…"],
    "videoUrls": [],
    "thumbnailUrls": ["https://scontent-dfw6-2.xx.fbcdn.net/v/t39.99422-6/873924101_…"],
    "mediaCount": 1,
    "ocrText": null,
    "externalLinks": ["http://m.me/7NEWSsydney"],
    "sharedPost": null,
    "source": {
        "sourceType": "UNKNOWN",
        "sourceId": "100064428530126",
        "sourceName": "7NEWS Sydney",
        "sourceUrl": "https://www.facebook.com/7NEWSsydney",
        "sourceVisibility": "PUBLIC"
    },
    "discoveredVia": ["#sydney (TOP)"],
    "isNewPost": null,
    "firstSeenAt": null,
    "monitorKey": null,
    "scrapedAt": "2026-10-30T06:19:23.910Z"
}
```

##### Posts

Hashtags, format, text, author, date, reactions, comments, shares, whether the hashtag is in the text, and the link. This `#recycling` post is one of the topic-page posts that does not contain the hashtag (`hashtagInText: false`):

```json
{
    "matchedHashtags": ["recycling"],
    "postFormat": "PHOTO",
    "text": "Inverclyde has bucked Scotland’s recycling trend ♻️",
    "author": { "name": "Greenock Telegraph" },
    "publishedAt": "2026-10-29T18:38:26.000Z",
    "engagement": { "reactionCount": 48, "commentCount": 10, "shareCount": 2 },
    "hashtagInText": false,
    "postUrl": "https://www.facebook.com/greenocktelegraph/posts/pfbid0YeGJ1UnmKyZCtkwkfZb3d219AYG8wucwEF2RbAbSarWeg14Dxa92aS22vfxjjDaal",
    "isNewPost": null
}
```

##### Engagement

The numbers and the full reaction breakdown:

```json
{
    "matchedHashtags": ["travel"],
    "author": { "name": "Ryanair" },
    "postFormat": "ALBUM",
    "engagement": { "reactionCount": 5485, "commentCount": 627, "shareCount": 4, "totalEngagement": 6116 },
    "reactions": [
        { "type": "HAHA", "count": 4474 },
        { "type": "ANGRY", "count": 905 },
        { "type": "LIKE", "count": 95 },
        { "type": "LOVE", "count": 8 },
        { "type": "CARE", "count": 1 },
        { "type": "WOW", "count": 1 },
        { "type": "SAD", "count": 1 }
    ],
    "publishedAt": "2026-10-29T16:19:05.000Z",
    "postUrl": "https://www.facebook.com/ryanair/posts/pfbid02CqUvpPqJNqDemKu7qf81xWdVWV8BQ4UU7zhnZ2ZdzNmbkzHvvi3gSfmzQctkiUiJl"
}
```

##### Media

Thumbnails, image and video URLs, and text in images. A Reel found on both the Top and Recent lists:

```json
{
    "thumbnailUrls": ["https://scontent-dfw6-1.xx.fbcdn.net/v/t15.5256-10/877255582_…"],
    "postFormat": "REEL",
    "mediaCount": 1,
    "author": { "name": "Sydney.com" },
    "text": "Sydney is aglow with purple! 💜\n\nJacaranda season is on now until early November. …",
    "imageUrls": [],
    "videoUrls": ["https://www.facebook.com/reel/1374922011179673/"],
    "ocrText": null,
    "postUrl": "https://www.facebook.com/reel/1374922011179673/"
}
```

##### Authors & sources

Who posted, and where. This post was published in a public Facebook Group (`sourceType: "GROUP"`):

```json
{
    "author": {
        "avatarUrl": "https://scontent-dfw5-1.xx.fbcdn.net/v/t39.30808-1/580981816_…",
        "name": "Sydney Daily Tour",
        "url": "https://www.facebook.com/sydneydailytour.org"
    },
    "source": {
        "sourceType": "GROUP",
        "sourceName": null,
        "sourceUrl": "https://www.facebook.com/groups/1600197680874355/"
    },
    "matchedHashtags": ["sydney"],
    "hashtagsInText": ["SydneyDailyTour", "BlueMountains", "DuLichUc", "KhamPhaAustralia", "SydneyTour", "DuLichSydney"],
    "postUrl": "https://www.facebook.com/groups/1600197680874355/permalink/2211322089761908/"
}
```

#### Run summary and coverage

Every run writes a **`RUN_SUMMARY`** record to the key-value store. It includes the number of posts found and delivered, duplicates merged, unique authors, the format mix, the top **co-occurring hashtags**, and one entry per hashtag:

| Field                 | Meaning                                                                         |
| --------------------- | ------------------------------------------------------------------------------- |
| `status`              | See the status list below.                                                      |
| `coverageStatus`      | `HIGH`, `PARTIAL`, `LIMITED`, `BLOCKED` or `UNKNOWN`.                           |
| `requestedPosts`      | Your `maxPostsPerHashtag`.                                                      |
| `returnedUniquePosts` | Matching posts found for this hashtag.                                          |
| `deliveredPosts`      | Of those, delivered in this run (after the cross-hashtag merge and monitoring). |
| `scannedPosts`, `filteredOut` | Posts read, and how many each filter removed.                           |
| `pagesFetched`, `feeds` | Requests made, and how each list (Top/Recent) ended.                          |

##### What does coverage status mean?

| `coverageStatus` | Meaning                                                                                                                   |
| ---------------- | ------------------------------------------------------------------------------------------------------------------------- |
| `HIGH`           | Your requested number of posts was reached.                                                                               |
| `PARTIAL`        | Facebook's public list for this hashtag ended before your number. You got everything it shows a logged-out visitor.       |
| `LIMITED`        | Stopped early, by an error part-way, your total cap, or your spending limit. Some posts were delivered.                   |
| `BLOCKED`        | Facebook refused the requests before any post was read.                                                                   |
| `UNKNOWN`        | Nothing to measure: no posts, the hashtag is unavailable, or an error.                                                    |

**Statuses:** `SUCCESS`, `NO_RESULTS`, `INVALID_HASHTAG`, `INVALID_HASHTAG_URL`, `HASHTAG_UNAVAILABLE`, `PARTIAL_RESULTS`, `PAGINATION_FAILED`, `RATE_LIMITED`, `BLOCKED`, `PROVIDER_ERROR`, `BASELINE_CREATED`. **One failed hashtag never fails the run.** If any hashtag fails, a ready-to-run input with just those hashtags is saved as **`RETRY_INPUT`**.

***

### Frequently asked questions

#### What is a Facebook hashtag post?

It is a public post that Facebook lists on its hashtag page, `facebook.com/hashtag/<tag>`. This Actor reads that page's **Top** and **Recent** lists, as a logged-out visitor would see them.

#### ⚠️ Does every post actually contain the hashtag?

**No, and you should know this before you analyse the data.** Facebook's hashtag page works as a **topic page**. Alongside posts that contain `#recycling`, it lists posts it relates to the topic, for example ones that only mention "recycling" in plain text. In our tests between about half and two-thirds of the posts contained the hashtag itself.

Every row tells you which kind it is: `hashtagInText: true/false`, plus `matchedHashtagsInText`. To get only posts that contain the hashtag, turn on **`strictHashtagMatch`**. Posts it removes are not charged.

#### Can I submit multiple hashtags?

Yes, up to 50 per run. They are read in parallel.

#### Are duplicate posts removed?

Yes. A post found under several of your hashtags, or under both the Top and Recent lists, is **one row** with every match listed in `matchedHashtags` and `discoveredVia`. **It is charged once.** If you would rather have one row per hashtag, turn off `deduplicateAcrossHashtags`. Each row is then delivered and charged separately.

#### Can it scrape Reels, videos and photos?

Yes. `postFormat` tells you which a post is: `PHOTO`, `ALBUM`, `VIDEO`, `REEL`, `LINK`, `TEXT`, or `POST` for a post sharing another post. **`postFormats` filters by it.** In our tests most hashtag posts were photos and albums, with Reels next.

#### Are public Page and Group posts supported?

Yes, both, whenever Facebook lists them on the hashtag page. A post published in a public Group has `source.sourceType: "GROUP"` with the group's ID and URL. The hashtag list does not carry the group's name, so `source.sourceName` is `null` for group posts.

#### Are private Groups supported?

**No.** Only content Facebook shows to a logged-out visitor is read. Private or closed Group content is never accessed.

#### Does it need a Facebook login or cookies?

**No.** No login, no `c_user` or `xs` cookies, no access token, no account. It reads only what Facebook shows a visitor who is not logged in.

#### Does it need a residential proxy?

**No.** It runs on Apify Datacenter proxy (the default) or without a proxy. See the proxy policy below.

#### How deep does hashtag search go?

Facebook decides how many posts it shows a logged-out visitor for each hashtag. In our tests, each of the Top and Recent lists ended after about **65–95 posts**. The two lists overlap by roughly half, so reading both reached about **100–140 unique posts per hashtag**. When a list ends, the hashtag's `coverageStatus` is `PARTIAL` and its summary says how many posts there were.

#### Is coverage exhaustive?

**No.** This is not a complete feed of every post that ever used a hashtag. It returns the public posts Facebook chooses to show on that hashtag's page, and the selection can vary between runs. Use `coverageStatus` to see how far each hashtag got.

#### Can I filter by date?

Yes, with `dateFrom` and `dateTo`. Facebook's hashtag lists are **not in strict date order**, so the date filter is applied to the posts the lists return. It cannot reach further back than those lists. Posts without an exact timestamp are left out when a date range is set.

#### Can I filter by post format?

Yes, with `postFormats`. Filtered-out posts are not charged.

#### Are reactions, comments and shares included?

Yes: `engagement.reactionCount`, `commentCount` and `shareCount`, plus the per-type `reactions` breakdown when Facebook shows it. `totalEngagement` is reactions + comments + shares. It is `null` if any of the three is missing, so an unknown never turns into a zero.

#### Are video views included?

`engagement.viewCount` is part of the output, but **Facebook does not show view counts on this logged-out list**, so it is `null`. We do not estimate it.

#### Are images and videos included?

Yes. `media` has each photo or video with its Facebook link, the image or thumbnail file, size and duration. `imageUrls`, `videoUrls` and `thumbnailUrls` are flat lists for spreadsheets.

#### Is there OCR text from images?

With `includeOCR` on, `ocrText` carries the words that **Facebook's own automatic alt text** says are written in the images, for example from "…and text that says 'SUMMER SALE 50% OFF'". This Actor runs no OCR of its own. It is `null` when Facebook gave no such text.

#### Are hashtags inside the post text extracted?

Yes: `hashtagsInText` lists every hashtag written in the post. The run summary's `topCoOccurringHashtags` shows which other hashtags appear most often alongside yours, which is useful for finding related campaigns and topics.

#### Can I monitor only new posts?

Yes. Set `onlyNewPosts: true` and a `monitorKey`, then schedule the run, for example daily.

- **First run:** records a **baseline** of the posts it finds and returns none, so you are not flooded with old posts. The hashtag's status is `BASELINE_CREATED`. Turn on `emitBaselinePosts` to receive them anyway, marked `isNewPost: false`.
- **Later runs:** return only posts this monitor has not returned or recorded before, marked `isNewPost: true` with `firstSeenAt`.
- **Adding a hashtag later:** the new hashtag gets its own baseline, and everything already known is kept.
- **Failures:** a hashtag that fails does not update the monitor, so nothing is skipped. Posts that a later run no longer shows are never forgotten.
- **Limits:** posts held back by your total cap or spending limit are not marked as seen. They are offered again next run.

#### What does a hashtag status of `HASHTAG_UNAVAILABLE` mean?

Facebook shows some hashtags to logged-out visitors with no posts at all. One very large fitness hashtag did this in our tests. The run reports that clearly rather than retrying, and charges nothing.

#### Why might I get fewer posts than I asked for?

- Facebook's public list for that hashtag ended (`coverageStatus: PARTIAL`).
- Your filters removed posts. `filteredOut` says how many each filter removed.
- In monitor mode, most posts were already known.
- The same post matched several hashtags. It is one row, but it counts towards each hashtag's `returnedUniquePosts`.

***

### 💸 How is pricing calculated?

This Actor uses **pay-per-event** pricing with one event:

- **Hashtag post result**: charged once for each unique public post delivered to your dataset.

**Never charged:**

- hashtag pages, feed requests, pagination and retries
- a post matched by a second hashtag: it is one row and one charge
- posts removed by your format, date, strict-match or only-new filters
- failed, invalid, unavailable or empty hashtags
- a monitor's baseline run that returns no posts

There is no start fee: a run that delivers nothing costs you nothing. Your **per-run spending limit** is respected: the Actor stops collecting once it holds as many posts as the limit allows, and never delivers a post it cannot charge for.

This README deliberately doesn't quote figures. See the **Pricing** tab for live rates.

***

### Can I call it through the API or MCP?

Yes. Like every Apify Actor, it can be run from the [Apify API](https://docs.apify.com/api/v2), the JavaScript and Python clients, and the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp). An AI assistant can then call it as a tool, for example *"get this week's #ourbrand posts with their engagement"*.

```bash
curl -X POST "https://api.apify.com/v2/acts/coregent~facebook-hashtag-scraper/run-sync-get-dataset-items?token=<YOUR_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"hashtags": ["sustainability"], "maxPostsPerHashtag": 50}'
```

***

### 🚦 Proxy policy

Use **Apify Datacenter** proxy (the default) or **no proxy** for normal runs. Both are supported for reading Facebook's public hashtag pages at this Actor's conservative concurrency.

**Apify Residential proxy is not supported.** If `apifyProxyGroups` includes `RESIDENTIAL`, the run uses Apify Datacenter proxy instead and logs a warning; it doesn't fail. The reason: on pay-per-event Actors, residential bandwidth is billed to the developer rather than to the run, and hashtag feed responses are large (around a megabyte per request). A single run could cost more than the posts it delivers.

If you genuinely need residential routing, supply your own residential provider in the proxy editor's **Custom proxy URLs** field. That traffic goes through your provider, not Apify, and is unaffected:

```
http://user:pass@proxy.iproyal.com:12321
http://user:pass@proxy.brightdata.com:22225
http://user:pass@proxy.oxylabs.io:7777
```

***

### Limitations

- **Coverage is what Facebook shows a logged-out visitor**: about 100–140 unique posts per hashtag in our tests, not the full history.
- **The hashtag page is a topic page.** In our tests a third to a half of the posts did not contain the hashtag; see `hashtagInText` and `strictHashtagMatch`.
- **No view counts** on this surface (`viewCount` is `null`).
- **Author type** (Page vs personal profile) is not published on this list, so `author.type` is `UNKNOWN`. A public group post is identified as `GROUP` in `source`.
- **Lists are not date-ordered.** The date filter cannot reach older posts than the lists return.
- Some hashtags are shown to logged-out visitors with no posts at all (`HASHTAG_UNAVAILABLE`).
- Facebook can change which posts it shows between runs. Engagement counts change over time.

### Privacy and responsible use

This is an **unofficial** tool, not affiliated with or endorsed by Meta or Facebook, and it does not use any official Meta API. It reads only public content Facebook shows to visitors who are not logged in. It never accesses private Groups, private profiles, hidden engagement or private user data.

You are responsible for using the data lawfully, including data-protection laws such as GDPR and Facebook's terms. Collect only what you need.

### Need something else?

Related Coregent Actors cover Facebook **search** (find Pages, people and posts by keyword), **posts** from known Pages, and **comments** on posts. Feed this Actor's `postUrl`s into a comments scraper to read the conversation under each hashtag post. Found a problem or need a feature? Open an issue on the Actor's **Issues** tab.

# Actor input Schema

## `hashtags` (type: `array`):

One or more hashtags, with or without the leading #, e.g. sustainability, #travel. Any script works (#রেস্টুরেন্ট). A post found under several of them is returned once, with every match listed in matchedHashtags. Up to 50 per run.

## `hashtagUrls` (type: `array`):

Facebook hashtag page URLs, e.g. https://www.facebook.com/hashtag/travel. Combined with the hashtags above.

## `maxPostsPerHashtag` (type: `integer`):

Stop collecting a hashtag once this many matching posts are found. Facebook's public (logged-out) hashtag lists usually end at about 100–150 posts per hashtag, so larger values return what Facebook shows and say so in coverageStatus.

## `maxPostsTotal` (type: `integer`):

Optional cap on unique posts for the whole run, across all hashtags. 0 = no cap.

## `postFormats` (type: `array`):

Return only these formats. Leave empty for all. ALBUM = several photos; POST = a post that shares another post; TEXT = no media.

## `dateFrom` (type: `string`):

Only posts published at or after this time: 2026-10-01, an ISO timestamp, or a relative time such as "7 days ago". Applied to the posts Facebook's public list returns — it does not reach further back than that list.

## `dateTo` (type: `string`):

Only posts published at or before this time (same formats; a bare date includes the whole day).

## `strictHashtagMatch` (type: `boolean`):

Facebook's hashtag page also shows posts it relates to the topic without the # written in them (about half, measured). On: keep only posts whose text contains #<your hashtag>. Off: return everything Facebook's hashtag page shows; each row's hashtagInText says which kind it is.

## `feeds` (type: `array`):

Facebook's public hashtag page has a Top and a Recent list. Reading both finds the most posts (they overlap by about half).

## `includeAuthor` (type: `boolean`):

Author name, ID, profile URL and picture.

## `includeEngagement` (type: `boolean`):

Reaction, comment and share counts.

## `includeReactionBreakdown` (type: `boolean`):

Counts per reaction type (Like, Love, Care, Haha, Wow, Sad, Angry) where Facebook shows them.

## `includeMedia` (type: `boolean`):

Photos, videos and Reels attached to the post, with image/video/thumbnail URL lists.

## `includeOCR` (type: `boolean`):

Adds ocrText: the text Facebook's own automatic alt text says is written in the post's images. Only present when Facebook published it; this Actor runs no OCR of its own.

## `onlyNewPosts` (type: `boolean`):

Monitor mode: return only posts this monitor has not returned before. The first run records a baseline and returns nothing (unless "Return baseline posts" is on). Needs a Monitor key. Schedule it daily.

## `monitorKey` (type: `string`):

A name for this monitor, e.g. brand-campaign-q4. Runs with the same key share their memory of seen posts. Letters, digits, - \_ . only.

## `emitBaselinePosts` (type: `boolean`):

On a monitor's first run (and for hashtags newly added to it), also return the posts found, marked isNewPost: false.

## `deduplicateAcrossHashtags` (type: `boolean`):

On (recommended): a post matched by several hashtags is one row, charged once, with all matches in matchedHashtags. Off: one row per hashtag-and-post pair, each delivered and charged separately.

## `maxConcurrency` (type: `integer`):

How many hashtags are read at the same time.

## `proxyConfiguration` (type: `object`):

Apify Datacenter proxy (default) or no proxy. Apify Residential is not supported — a run that selects it uses Apify Datacenter instead, with a warning. To route through residential, use your own provider under Custom proxy URLs.

## `debug` (type: `boolean`):

Verbose logging.

## Actor input object example

```json
{
  "hashtags": [
    "sustainability"
  ],
  "hashtagUrls": [],
  "maxPostsPerHashtag": 100,
  "maxPostsTotal": 0,
  "postFormats": [],
  "dateFrom": "",
  "dateTo": "",
  "strictHashtagMatch": false,
  "feeds": [
    "TOP",
    "RECENT"
  ],
  "includeAuthor": true,
  "includeEngagement": true,
  "includeReactionBreakdown": true,
  "includeMedia": true,
  "includeOCR": false,
  "onlyNewPosts": false,
  "monitorKey": "",
  "emitBaselinePosts": false,
  "deduplicateAcrossHashtags": true,
  "maxConcurrency": 3,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "debug": false
}
```

# Actor output Schema

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

No description

## `engagement` (type: `string`):

No description

## `media` (type: `string`):

No description

## `sources` (type: `string`):

No description

## `runSummary` (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 = {
    "hashtags": [
        "sustainability"
    ],
    "maxPostsPerHashtag": 100,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("coregent/facebook-hashtag-scraper").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 = {
    "hashtags": ["sustainability"],
    "maxPostsPerHashtag": 100,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("coregent/facebook-hashtag-scraper").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 '{
  "hashtags": [
    "sustainability"
  ],
  "maxPostsPerHashtag": 100,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call coregent/facebook-hashtag-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,coregent/facebook-hashtag-scraper"
        }
    }
}
```

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/lx74kLJkJaPlWg5AS/builds/BpenzbTDRglgsCpyx/openapi.json
