Mastodon Scraper - Posts by Hashtag, Account or Instance avatar

Mastodon Scraper - Posts by Hashtag, Account or Instance

Pricing

$3.00 / 1,000 post delivereds

Go to Apify Store
Mastodon Scraper - Posts by Hashtag, Account or Instance

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

Moses Ndambuki

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

2 days ago

Last modified

Categories

Features

Limited permissions

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 LR
A[Hashtags] --> D[Public Mastodon API]
B[Accounts] --> D
C[Instance timeline] --> D
D --> E[Filter: replies, boosts, language, keywords, date]
E --> F[Post rows with author]

Quick start

  1. Click Try for free.
  2. Add Hashtags, Accounts, or turn on Instance timeline.
  3. Optional: Keywords, Language or Posted within (days).
  4. Change the Instance if you want a server other than mastodon.social.
  5. 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 ApifyClient
client = 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

FieldDefaultWhat it does
hashtags–Without the #
accounts–user@server or profile URLs
instanceTimelinefalseNewest local posts on the instance
instancemastodon.socialServer for hashtags and timeline
keywords–Match post text
languageallLanguage code, like en
excludeRepliestrueSkip replies
excludeBooststrueSkip reposts
postedWithinDays0 (all)Only recent posts
maxResultsPerSource100Per hashtag or account
maxResults500Total cap per run

Pricing

$0.003 per post delivered. 1,000 posts cost $3.

Option1,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 url across scheduled runs.
  • For Bluesky, use Bluesky Scraper.

Pairs well with


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

Built and maintained by Turboextract on the Apify platform.