Mastodon Scraper avatar

Mastodon Scraper

Pricing

$0.50 / 1,000 results

Go to Apify Store
Mastodon Scraper

Mastodon Scraper

Scrape Mastodon posts by hashtag, profile, trending, instance timeline, or link: text, boosts, favourites, replies, media, link cards, polls, and author stats. Works across the fediverse. No login needed.

Pricing

$0.50 / 1,000 results

Rating

0.0

(0)

Developer

Donjuan

Donjuan

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, replies, and author stats from hashtags, profiles, and timelines

Mastodon Scraper collects public posts from Mastodon and the wider fediverse. Scrape a hashtag, any account on any instance, the posts trending on an instance, an instance's local timeline, or a single post with its replies. For every post you get the text, content warning, language, publish and edit time, replies, boosts, and favourites, the images and videos with alt text, the link card, the poll, the hashtags and mentions, and the author's profile with follower and post counts.

You don't need a Mastodon account, an API key, or any code. Add hashtags, profiles, or links, press Start, and download the results as JSON, CSV, Excel, XML, or HTML. Or pull them into your app through the Apify API.

What can you do with Mastodon data?

  • Monitor a topic or brand. Follow a hashtag and see who posts about it and how people react.
  • Follow accounts. Collect every post from journalists, researchers, open source projects, or public institutions, with boosts and favourites for each.
  • Analyze conversations. Pull the replies to a post to study how a discussion unfolds.
  • See what an instance talks about. Scrape trending posts or the local timeline of a community instance such as fosstodon.org.
  • Build datasets for research. Clean text, language tags, content warnings, and timestamps make good input for topic, sentiment, or language analysis.

What data does Mastodon Scraper extract?

GroupFields
Posttype (post, reply, or boost), ID, URL, ActivityPub URI, text, HTML, content warning, sensitive flag, language, created and edited time
Engagementreplies, boosts, favourites
Authorhandle (user@instance), display name, profile URL, avatar, bio, followers, following, post count, bot flag, join date
Mediaimages, videos, GIFs, and audio with preview and alt text
Extraslink card, poll with votes per option, hashtags, mentions
Threadsthe post a reply answers, and for collected replies the post they came from; for boosts, who boosted

How to scrape Mastodon

  1. Open the actor and go to the Input tab.
  2. Add hashtags, profiles, or Mastodon links, or turn on trending posts or the local timeline. You can mix them.
  3. Set Posts per source, and turn on Include replies if you want the reply threads.
  4. Press Start. When the run finishes, open the Output tab to preview the table, or press Export to download the data.

Input

FieldTypeDescription
hashtagsarray of stringsHashtags, with or without #.
profilesarray of strings@user@instance, user@instance, or a profile link. Each is read from its home instance, so you get its whole history.
instancestringThe server for hashtags, trending posts, and the local timeline. mastodon.social by default.
includeTrendingbooleanAlso scrape the instance's trending posts.
includeLocalTimelinebooleanAlso scrape the latest posts by the instance's own users.
startUrlsarrayLinks to posts, profiles, hashtag pages, an instance's home page (local timeline), or its /explore page (trending), on any instance.
maxItemsintegerThe maximum number of posts from each source.
excludeReplies, excludeReblogsbooleanFor profiles: leave out the account's replies or boosts.
includeRepliesbooleanAlso collect the replies to every post that has them.
maxRepliesPerPostintegerThe maximum number of replies from each thread.

Example input:

{
"hashtags": ["golang", "rust"],
"profiles": ["@Gargron@mastodon.social"],
"startUrls": [{ "url": "https://fosstodon.org/" }],
"maxItems": 100,
"includeReplies": true,
"maxRepliesPerPost": 20
}

Output

One dataset item per post, reply, or boost:

{
"type": "post",
"id": "117640079247128922",
"url": "https://mastodon.social/@Gargron/117640079247128922",
"text": "#Dota2 has been my favourite game for 14 years.",
"language": "en",
"createdAtISO": "2026-11-18T23:39:14.529Z",
"repliesCount": 2,
"reblogsCount": 3,
"favouritesCount": 30,
"account": {
"acct": "Gargron@mastodon.social",
"displayName": "Eugen Rochko",
"url": "https://mastodon.social/@Gargron",
"followersCount": 381406
},
"hashtags": ["dota2"],
"input": "@Gargron@mastodon.social"
}

Tips and limits

  • Each instance sees its own slice of the fediverse. A hashtag on mastodon.social shows the posts that reached mastodon.social. Run the same hashtag on several instances to widen coverage.
  • Some instances hide timelines from visitors. mastodon.social, for example, shows its local timeline only to logged-in users. The run log says so, and the other sources still run.
  • Full-text search needs a login on Mastodon, so the scraper works with hashtags instead.
  • Rate limits are handled. Mastodon allows 300 requests per 5 minutes; the scraper waits when an instance asks it to.

The scraper reads only public posts through Mastodon's public REST API, the same one Mastodon apps use. Personal data such as names and handles is protected by laws like the GDPR, and many fediverse users expect their posts not to be mass collected, so collect only what you need for a legitimate purpose and consult a lawyer if you are unsure.