Mastodon Scraper - Posts by Hashtag, Account or Instance
Pricing
$3.00 / 1,000 post delivereds
Mastodon Scraper - Posts by Hashtag, Account or Instance
Mastodon posts by hashtag, account or instance timeline: text, link, date, language, replies, boosts, favourites, hashtags, media, link card and author with followers. Works on mastodon.social and any other instance through the public API. No login.
Pricing
$3.00 / 1,000 post delivereds
Rating
0.0
(0)
Developer
Moses Ndambuki
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
2 days ago
Last modified
Categories
Features
Share
Mastodon Scraper: Posts by Hashtag, Account or Instance
Export Mastodon posts by hashtag, account or instance timeline, with text, date, language, replies, boosts, favourites, hashtags, media, link card and author details. Works on mastodon.social and any other Mastodon server through the public API. No login.
In one test, the actor returned 45 recent #opensource posts and 45 posts from a well-known account in a few seconds, each with the author's follower count.
Who this is for
- Brands and PR teams tracking hashtags and mentions on the fediverse
- Social media managers finding posts and people to engage with
- Researchers studying public conversation on Mastodon
- Developer relations teams following tech and open-source hashtags
- AI and data teams collecting public social posts
What you get
{"id": "117650485816558626","url": "https://example.social/@username/117650485785798925","text": "Has AI Solved Reverse Engineering? ... #linux #opensource","createdAt": "2026-11-20T19:45:45.000Z","language": "en","replies": 0,"boosts": 0,"favourites": 0,"hashtags": ["linux", "opensource"],"linkCard": { "url": "https://youtu.be/...", "title": "Has AI Solved Reverse Engineering?" },"authorHandle": "username@example.social","authorName": "Author name","authorFollowers": 17,"source": "#opensource"}
How it works
flowchart LRA[Hashtags] --> D[Public Mastodon API]B[Accounts] --> DC[Instance timeline] --> DD --> E[Filter: replies, boosts, language, keywords, date]E --> F[Post rows with author]
Quick start
- Click Try for free.
- Add Hashtags, Accounts, or turn on Instance timeline.
- Optional: Keywords, Language or Posted within (days).
- Change the Instance if you want a server other than mastodon.social.
- Click Start, then export to CSV, JSON or Google Sheets.
API
curl -X POST "https://api.apify.com/v2/acts/Turboextract~mastodon-posts-hashtags/run-sync-get-dataset-items?token=YOUR_TOKEN" \-H "Content-Type: application/json" \-d '{"hashtags": ["opensource", "selfhosted"], "language": "en", "postedWithinDays": 1}'
Python
from apify_client import ApifyClientclient = ApifyClient("YOUR_TOKEN")run = client.actor("Turboextract/mastodon-posts-hashtags").call(run_input={"accounts": ["https://mastodon.social/@username"],"maxResultsPerSource": 200,})for p in client.dataset(run["defaultDatasetId"]).iterate_items():print(p["createdAt"], p["favourites"], p["text"][:80])
Input
| Field | Default | What it does |
|---|---|---|
hashtags | – | Without the # |
accounts | – | user@server or profile URLs |
instanceTimeline | false | Newest local posts on the instance |
instance | mastodon.social | Server for hashtags and timeline |
keywords | – | Match post text |
language | all | Language code, like en |
excludeReplies | true | Skip replies |
excludeBoosts | true | Skip reposts |
postedWithinDays | 0 (all) | Only recent posts |
maxResultsPerSource | 100 | Per hashtag or account |
maxResults | 500 | Total cap per run |
Pricing
$0.003 per post delivered. 1,000 posts cost $3.
| Option | 1,000 posts |
|---|---|
| Mastodon Scraper | $3, hashtags, accounts and timelines |
| Other Mastodon actors on Apify | $0.05 to $3 |
| Social listening tools | $50+ a month |
Use cases
- Hashtag tracking: every #yourbrand post, every hour
- Influencer research: active accounts with followers in your niche
- Event coverage: conference hashtags during the event
- Content research: what tech and open-source people share
- Archiving: a backup of an account's public posts
Tips
- Hashtag timelines show posts the instance knows about. mastodon.social is the largest, so it sees the most.
- Account posts come from the account's own server, so they are complete.
- Dedupe on
urlacross scheduled runs. - For Bluesky, use Bluesky Scraper.
Pairs well with
- Bluesky Scraper: posts and profiles from Bluesky
- Lemmy Scraper: fediverse forum posts and comments
- Telegram Channel Scraper: public channel posts
FAQ
Do I need a Mastodon account? No. The actor uses the public API.
Can it search all posts by keyword? Mastodon only allows full-text search when signed in, so use hashtags or accounts, then filter with Keywords.
Which servers work? Any Mastodon server that allows public timelines, which is most of them.
How fast is it? About 40 posts per request, a few hundred posts in seconds.
Is it legal? It reads public posts through Mastodon's open API.
Support
- Docs and examples: https://github.com/andersonjames38phd-cpu/mastodon-posts-hashtags
- Community Discord: https://discord.gg/8SrXSCpvgj
Built and maintained by Turboextract on the Apify platform.