Mastodon Scraper - Hashtags, Accounts, Trends & Monitor
Pricing
from $0.56 / 1,000 results
Mastodon Scraper - Hashtags, Accounts, Trends & Monitor
Mastodon scraper for hashtags, accounts, trending tags and links, and replies across several instances. No API key, no login, no proxy: official open Mastodon API. Only-new mode turns it into a brand and keyword monitor for the fediverse. $0.80 per 1000 results.
Pricing
from $0.56 / 1,000 results
Rating
0.0
(0)
Developer
Martin Petrov
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
12 days ago
Last modified
Features
Share
Mastodon Scraper - Hashtags, Accounts, Trends & Keyword Monitor
Collect Mastodon posts by hashtag or account, trending hashtags and links, and the replies to each post, across one or many instances. Turn on the only-new mode and it works as a brand, keyword or hashtag monitor for the fediverse.
It uses the official public Mastodon REST API: no login, no API key, no browser. $0.80 per 1000 results, no start fee.
What you get
- Hashtag posts from every instance you list (mastodon.social, fosstodon.org, ...). Same hashtag on several servers gives wider coverage.
- Account posts: public posts of accounts you name (
user@serveror a profile URL). Boosts and replies are left out. - Trends: trending hashtags and trending links per instance, with uses and accounts over the last days.
- Replies: the public replies under each post (optional, capped per post).
- Filters: keywords, language, max results.
- Only-new monitoring: schedule the actor and every run returns only posts you have not received before.
- Official API: no HTML parsing that breaks when a page changes. Requests are sequential and small, and the actor waits when a server rate-limits it.
Input
| Field | Type | Description |
|---|---|---|
instances | array | Mastodon servers to read. Default ["mastodon.social"]. |
hashtags | array | Hashtags, with or without #. Default ["python"]. |
accounts | array | user@server or a profile URL. |
keywords | array | Keep only posts containing any of these words (not case sensitive). |
language | string | ISO code such as en, de, bg. |
maxItems | integer | Hard limit on rows saved (and paid for). Default 50. |
includeTrends | boolean | Add trending hashtags and links of every instance. |
includeLocalTimeline | boolean | Also read each server's local timeline (many servers need a login for it and are skipped). |
includeReplies | boolean | Save public replies to each post. |
maxRepliesPerPost | integer | Default 20. |
onlyNew | boolean | Monitoring mode. |
monitorId | string | Separate memory per tracked search. |
With no input the actor reads the latest #python posts from mastodon.social and returns results in a few seconds.
Example: brand monitor across three servers
{"instances": ["mastodon.social", "fosstodon.org", "hachyderm.io"],"hashtags": ["opensource", "selfhosted"],"keywords": ["nextcloud", "immich"],"onlyNew": true,"monitorId": "my-brand","maxItems": 200}
Example: an account with replies and trends
{"accounts": ["Gargron@mastodon.social"],"includeReplies": true,"maxRepliesPerPost": 10,"includeTrends": true,"maxItems": 100}
Output
Every row has a type: post, reply, trend_tag or trend_link.
{"type": "post","id": "117571159409678569","url": "https://social.example/@someone/117571158955182260","text": "Plain text of the post ...","html": "<p>Plain text of the post ...</p>","createdAt": "2026-11-06T19:31:54Z","language": "en","author": "someone@social.example","authorName": "Some One","authorUrl": "https://social.example/@someone","repliesCount": 2,"reblogsCount": 5,"favouritesCount": 11,"hashtags": ["python", "opensource"],"mediaUrls": [],"cardUrl": "https://example.org/article","instance": "mastodon.social","sourceHashtag": "python","scrapedAt": "2026-11-06T20:00:00Z"}
Replies carry the same fields plus postId, postUrl and inReplyToId. Account posts have sourceAccount instead of sourceHashtag. Trend rows have name or title, url, uses, accounts and a daily history. Values above are illustrative.
Only public fields from the post are saved (account name, display name, profile link). The actor does not visit profiles or collect follower lists.
Monitor new posts (only-new mode)
- Fill in instances, hashtags and (optional) keywords.
- Turn on
onlyNewand set amonitorIdsuch asmy-brand. - Save as a task and add a schedule (hourly or daily).
- Every run returns only posts not returned before under that
monitorId. Connect the dataset to Slack, email, Make, Zapier or a webhook.
Use a different monitorId for each search. If a run hits maxItems before the end of the list, the rest is still new and comes with the next run. Trend rows are a snapshot and are returned on every run.
Call it from code
curl -X POST "https://api.apify.com/v2/acts/martin10291~mastodon-hashtag-monitor/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \-H "Content-Type: application/json" \-d '{"instances": ["mastodon.social"], "hashtags": ["python"], "keywords": ["django"], "onlyNew": true, "monitorId": "my-brand", "maxItems": 50}'
from apify_client import ApifyClientclient = ApifyClient("YOUR_APIFY_TOKEN")run = client.actor("martin10291/mastodon-hashtag-monitor").call(run_input={"instances": ["mastodon.social"], "hashtags": ["python"], "keywords": ["django"], "onlyNew": True, "monitorId": "my-brand", "maxItems": 50})items = client.dataset(run["defaultDatasetId"]).list_items().items
Schedule it hourly or daily in Apify Console (Schedules) with onlyNew to get only new items each time, or use it as a tool for AI agents through the Apify MCP server.
Pricing
$0.80 per 1000 results (posts, replies and trend rows), no start fee. Filters run before saving, so filtered-out posts are free. Use maxItems to cap a run.
Limits (please read)
- Keyword search is a filter, not a search engine. Mastodon's full-text search for posts needs a login on most servers. Keywords therefore filter the posts fetched from your hashtags and accounts. A post is only found if it carries one of your hashtags or comes from one of your accounts. To monitor a brand, track its hashtags plus a few related ones, on several instances.
- Hashtag timelines show posts that the chosen server knows about. A small server sees fewer posts than a large one; list several instances for wider coverage.
- Hashtag timelines go back a limited time on busy tags (the API pages through roughly the latest 1200 posts per source).
- Local timelines and some other endpoints may need a login on certain servers. Those sources are skipped and the reason is in the run summary.
- Private and followers-only posts are not available. Servers can also rate-limit; the actor waits and retries, and long waits can make a run slower.
accountsin trend rows is the sum of the daily account counts, so the same person can count on several days.- Posts can contain personal data. Process them in line with GDPR and the rules of the servers you read.
The RUN_SUMMARY record shows posts, replies, skipped posts and errors per source, plus lastError.
Use it as an integration (chain it after another actor)
This actor can run after any actor whose results contain Mastodon profile links.
- Open the source actor in Apify Console and go to the Integrations tab.
- Click Add integration -> Actor, pick this actor and set Dataset to
{{resource.defaultDatasetId}}(leaveaccountsempty). - When the source run finishes, this actor reads its dataset and fetches the posts of those accounts. Set Dataset field if your column has another name.
More Actors by Martin Petrov
- YouTube Channel Monitor (New Videos & Shorts): Only new videos, Shorts and streams from many channels.
- Google Trends Scraper: Interest over time, regions and related queries for many keywords.
- Remote Jobs Scraper (8 Job Boards): Remote jobs from RemoteOK, Remotive, We Work Remotely and more, deduplicated.
- Local Business Leads Finder (Emails, Phones): Local businesses by category and city with emails, phones and websites.
FAQ
How fresh is the data? Live: every run reads the public Mastodon API of each server at run time.
Can it search any word? Full-text search needs a login on Mastodon, so keywords filters the posts fetched from your hashtags and accounts (see Limits).
Does it need a login, key or proxy? No. It uses the official public Mastodon API with a normal, honest client and respects rate limits.
What if a server fails? The run continues with the other sources and the error is in RUN_SUMMARY.lastError.
Can AI agents use it? Yes. Add it as a tool through the Apify MCP server (mcp.apify.com) and your AI agent can read hashtags, accounts and trends.