Mastodon Scraper (Hashtags, Accounts, Trending)
Pricing
from $0.25 / 1,000 posts
Mastodon Scraper (Hashtags, Accounts, Trending)
Scrape public Mastodon posts by hashtag, account or trending list on any instance: text, author, favourites, boosts, replies, hashtags, media, links. No login or API key.
Pricing
from $0.25 / 1,000 posts
Rating
0.0
(0)
Developer
Murat Uzun
Maintained by CommunityActor stats
0
Bookmarked
1
Total users
0
Monthly active users
5 days ago
Last modified
Categories
Features
Share
What is Mastodon Scraper?
Mastodon Scraper collects public posts from Mastodon and the fediverse. Give it hashtags (python; rust), accounts (Gargron@mastodon.social, https://fosstodon.org/@kev) or ask for trending posts, and it returns every post with its text, author, favourites, boosts and replies, hashtags, mentions, media, link previews and polls. It works with any Mastodon instance, reads each account from its home server, pages through the whole timeline, and needs no login or API key. From $0.25 per 1,000 posts ($0.27 on the Free plan).
Use it for social listening and brand monitoring outside X/Twitter, research datasets, tracking tech communities, or archiving an account. With a store name, scheduled runs also report how many favourites, boosts and replies each post gained since the previous run, and can return (and charge) only the posts that are new or changed.
What data does Mastodon Scraper extract?
| Field | Description |
|---|---|
id, url, createdAt, editedAt | Post id, link and dates |
text, contentWarning, language, sensitive | Post text (HTML removed), content warning, language, sensitive flag |
favouritesCount, boostsCount, repliesCount, quotesCount | Engagement |
isReply, boostedBy | Whether it's a reply; for boosts, the account that boosted it (the row is the original post) |
authorAcct, authorName, authorUrl, authorFollowers, authorIsBot | Author (user@instance) |
hashtags, mentions | Tags and mentioned accounts |
mediaUrls, mediaTypes | Attached images, videos, audio |
linkUrl, linkTitle | Link preview card |
pollOptions | Poll options and votes |
instance, source, sourceValue | Where the post was read and which input found it |
scrapedAt | When the row was scraped |
firstCheck, previousCheckAt, hoursSincePrevious | With a store name: first time this post was seen, and when it was last checked |
favouritesGained, boostsGained, repliesGained, quotesGained | With a store name: change since the previous check (null on the first check) |
How to use Mastodon Scraper
- Enter Hashtags and/or Accounts, several separated by
;. - Optional: tick Trending posts, or change the Instance used for hashtags and trending (default
mastodon.social, which federates posts from across the network). With no input at all, the Actor returns trending posts. - Set Max posts per source (default 100). For accounts you can skip replies and boosts.
- Run it and download the posts as JSON, CSV, Excel or HTML, or read them through the API.
Posts found by more than one source are kept once.
Track engagement between runs
Set Track engagement between runs (store name), e.g. rust-watch, and schedule the run (hourly or daily). Each run saves every post's favourites, boosts, replies and quotes in that key-value store of your account. The next run with the same name adds favouritesGained, boostsGained, repliesGained, quotesGained, previousCheckAt and hoursSincePrevious to every post it sees again, so you can rank posts by what is taking off without diffing exports yourself.
Tick Only new or changed posts as well, and posts whose counters did not move are skipped and not charged: you pay for new posts and for posts that gained (or lost) engagement. Max posts per source then caps the posts checked, so every run watches the same window. The OUTPUT record's monitor object sums it up (postsChecked, postsReturned, unchangedSkipped, totals gained). The store keeps the last 20,000 posts checked.
{ "hashtags": "rust", "maxPosts": 200, "monitorStoreName": "rust-watch", "onlyChangedPosts": true }
Example input
{"hashtags": "python; https://fosstodon.org/tags/rust","accounts": "Gargron@mastodon.social; kev@fosstodon.org","trending": true,"maxPosts": 200}
Example output
{"id": "117348440929571159","url": "https://www.urbanmind.net/@hackaday/…","createdAt": "2026-09-28T10:47:13.000Z","text": "…","language": "en","favouritesCount": 3,"boostsCount": 1,"repliesCount": 0,"authorAcct": "hackaday@www.urbanmind.net","authorName": "Hack a Day (unofficial)","authorIsBot": true,"hashtags": ["python"],"linkUrl": "https://dev.to/…","instance": "mastodon.social","source": "hashtag","sourceValue": "python"}
How much does it cost?
Pay per result, per post written to the dataset, plus $0.00005 per run start:
| Apify plan | Per post | Per 1,000 posts |
|---|---|---|
| Free | $0.00027 | $0.27 |
| Bronze | $0.00026 | $0.26 |
| Silver | $0.00026 | $0.26 |
| Gold, Platinum, Diamond | $0.00025 | $0.25 |
A daily hashtag monitor with 100 posts a day is about 3,000 posts a month: $0.81 on the Free plan. Sources that fail (an unknown account, an instance that is down), duplicates and skipped replies or boosts cost nothing; failed sources are listed in the ERRORS and OUTPUT records. Set Maximum cost per run to cap spend.
What does a monitor cost? Tracking engagement is free; posts are charged as usual. With Only new or changed posts, unchanged posts are not charged at all: a run that checks 200 posts where 30 are new or moved bills 30 posts ($0.0081 on the Free plan) instead of 200 ($0.054).
Errors and empty results
The OUTPUT record of every run has rows, errorCode, zeroResultReason, timeLimited and the per-source errors.
| errorCode | Meaning | Run status |
|---|---|---|
INPUT_INVALID | A hashtag or account could not be read (typo, wrong URL) | SUCCEEDED, not charged |
ACCOUNT_NOT_FOUND | The account does not exist on its home server | SUCCEEDED, not charged |
NO_RESULTS | The sources answered but had no public posts for your filters | SUCCEEDED, not charged |
NO_CHANGES | Only new or changed posts: nothing moved since the previous check | SUCCEEDED, not charged |
TIME_LIMIT | The run timeout was near; the posts saved so far are kept | SUCCEEDED |
SOURCE_BLOCKED | The instance requires login (401/403) for this timeline | FAILED if no posts at all |
RATE_LIMITED | The instance kept answering 429 after retries and the proxy | FAILED if no posts at all |
SOURCE_FAILED | The instance did not answer (network error, 5xx) | FAILED if no posts at all |
When some sources work and others fail, the run succeeds with the posts it found and lists the failures.
Limitations
Mastodon's full-text search and the public "firehose" timeline need a logged-in user on most big instances (mastodon.social answers "This method requires an authenticated user"), so the Actor doesn't offer keyword search. Use hashtags instead: they are how Mastodon posts are discovered. Private and followers-only posts are never visible.
Mastodon Scraper vs. alternatives
Dated Store check, 29 November 2026 (public Apify API pricing per 1,000 rows; each row is one post or result; run-start fees not included):
| Actor | Free plan | Gold+ plan | Unit |
|---|---|---|---|
| This Actor | $0.27 | $0.25 | one post |
| goat255/mastodon-scraper | $0.46 | $0.40 | one post or profile |
| newpo/mastodon-scraper | $1.00 | $1.00 | one result |
| tidyharvest/mastodon-scraper | $0.80 | $0.48 | one post |
| vincentkirui/mastodon-scraper | $1.50 | $1.50 | one result |
| rupom888/mastodon-scraper | $1.50 | $1.50 | one result |
| arjunannamalai/mastodon-scraper | $3.00 | $3.00 | one result |
| moving_beacon-owner1/mastodon-scraper | $10.00 | $10.00 | one result |
| properscraper/mastodon-posts-scraper | $0.30 | $0.30 | one post |
| powernaner/mastodon-lemmy-scraper | $0.30 | $0.30 | one post or comment |
| zhtech/mastodon-scraper | $0.50 | $0.28 | one post |
The competitors' feature sets differ (some add profiles, Lemmy or keyword search): check the field list before choosing. None of the ten has an input that compares a post's engagement with an earlier run or skips unchanged posts (checked in their input schemas, 29 November 2026); here that is monitorStoreName + onlyChangedPosts.
Run it from code
JavaScript (npm install apify-client):
import { ApifyClient } from 'apify-client';const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });const run = await client.actor('webdatatools/mastodon-scraper').call({ hashtags: 'python; rust', maxPosts: 100 });const { items } = await client.dataset(run.defaultDatasetId).listItems();console.log(items.length, items[0]?.text);
Python (pip install apify-client):
from apify_client import ApifyClientclient = ApifyClient("YOUR_APIFY_TOKEN")run = client.actor("webdatatools/mastodon-scraper").call(run_input={"accounts": "Gargron@mastodon.social", "maxPosts": 50})for post in client.dataset(run["defaultDatasetId"]).iterate_items():print(post["createdAt"], post["text"][:80])
CLI:
$echo '{"hashtags": "opensource", "maxPosts": 50}' | apify call webdatatools/mastodon-scraper --output-dataset
Using Mastodon Scraper with AI agents
The Actor is pay-per-event with limited permissions, so AI agents can call it through Apify's MCP server (mcp.apify.com), for example with {"hashtags": "opensource", "maxPosts": 50}. It also accepts hashtag, tags, account, profiles, url and urls.
FAQ
Is scraping Mastodon legal? The Actor reads only public posts through each server's public API, the same data any logged-out visitor sees. Respect the privacy of the people you collect and the rules of each instance.
Does it work with other fediverse servers? Hashtags and trending work on Mastodon-compatible servers. Accounts must be on a server that supports the Mastodon API.
How far back can it go? Account timelines go back through the account's whole history on its home server. Hashtag timelines hold what that instance has seen.
Related Actors
- Hacker News Search & Front Page Scraper — stories and comments by query
- Bluesky Scraper — posts and profiles on another decentralised network
The full webdatatools suite is listed on the publisher profile.
Support
Open an issue on the Actor's Issues tab on Apify. Include the instance, the hashtag or account, the run ID and the OUTPUT record.
If the Actor saved you time, please leave a review on its Apify Store page.