Scrape Mastodon posts by hashtag
Collects recent public Mastodon posts for a hashtag (here: #ai) from several large instances (mastodon.social, fosstodon.org, mastodon.online) with post text, author, timestamp, boosts, favourites, replies, tags, media and the post URL. Use it for social listening, research datasets and trend tracking across the fediverse.
Input
Output fields
Sign up on Apify or log in
The Mastodon & Lemmy Scraper: Fediverse Posts, Profiles, Comments Actor is ready to run with the inputs already set for "Scrape Mastodon posts by hashtag". Sign up or log in and you'll land in Apify Console with a copy of this exact task.
Start the "Scrape Mastodon posts by hashtag" task
The Mastodon & Lemmy Scraper: Fediverse Posts, Profiles, Comments Actor will start running based on the input automatically. You can also change all the input fields, like what to scrape, hashtags, and more, to match your specific use case.
Receive the "Scrape Mastodon posts by hashtag" 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 network, link, mastodon author, and more.
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 "Scrape Mastodon posts by hashtag" task via API.

The task reads each instance's public Mastodon API hashtag timeline. It needs no account and only collects public posts, skipping accounts that opted out of indexing.
Each Mastodon server only sees the posts it federates, so querying several large instances gives a fuller picture of a hashtag. Add or remove servers in the Instances field.
Yes. Change Hashtags to any tag without the # sign, set Language (for example en) and Since to a date, then schedule the task to run daily.
The Fediverse Scraper Actor charges per result (about $0.50 per 1,000 on the free plan), so 150 posts cost under 10 cents.