Mastodon Hashtag Posts Scraper avatar

Mastodon Hashtag Posts Scraper

Pricing

from $2.99 / 1,000 results

Go to Apify Store
Mastodon Hashtag Posts Scraper

Mastodon Hashtag Posts Scraper

Mastodon Hashtag Posts Scraper is a Python tool to extract public posts, author handles, timestamps, media links, and engagement metrics from Mastodon public timelines. It exports normalized decentralized social media data into clean CSV or JSON formats for hashtag monitoring.

Pricing

from $2.99 / 1,000 results

Rating

0.0

(0)

Developer

ZeroBreak

ZeroBreak

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

11 days ago

Last modified

Categories

Features

Limited permissions

Share

Mastodon Hashtag Posts Scraper — Public Social Media Posts by Hashtag

Mastodon Hashtag Posts Scraper cover

Overview

Collect public Mastodon posts by hashtag from your chosen Mastodon instance. Enter an instance host, provide one or more hashtags without the # prefix, and set the maximum number of posts to collect.

Export structured results as JSON, CSV, Excel, or other supported Apify dataset formats for social media research, topic monitoring, and content analysis.

Features

  • Collect public posts from any specified Mastodon instance.
  • Search using multiple hashtags in one run.
  • Extract post text, language, and publication date.
  • Retrieve author handles and post links.
  • Collect reply, reblog, and favourite counts.
  • Remove duplicate posts using their status IDs.
  • Control the total number of collected records.
  • Export structured results for further analysis.

Input Parameters

ParameterDescriptionDefault
instanceMastodon instance hostname without the URL scheme.mastodon.social
hashtagsArray of hashtags to search, without the # prefix.["ai"]
maxItemsMaximum number of successful records to collect per run.100
requestDelayMsDelay between requests in milliseconds.1000

The maximum supported maxItems value is 1,000.

Example Input

{
"instance": "mastodon.social",
"hashtags": ["ai"],
"maxItems": 50,
"requestDelayMs": 1000
}

What Data Does This Actor Extract?

Each collected post can include the following fields:

FieldDescription
statusIdUnique Mastodon post identifier.
created_atDate and time the post was published.
languageLanguage of the post, when available.
urlPublic link to the original post.
replies_countNumber of replies.
reblogs_countNumber of reblogs.
favourites_countNumber of favourites.
contentPost content, including HTML formatting.
accountAuthor's Mastodon handle.
hashtagHashtag used to collect the post.
scrapedAtDate and time the record was collected.

Example Output

{
"statusId": "117426232560050198",
"created_at": "2026-10-12T05:15:12.000Z",
"language": "en",
"url": "https://igeek.gamer-geek-news.com/@feed/statuses/01M4Q8JKGV2B04KGQF8CEDH6F3",
"replies_count": 0,
"reblogs_count": 0,
"favourites_count": 0,
"content": "<p>Nace AI Open-Sources Drex 1.5</p>",
"account": "feed@igeek.gamer-geek-news.com",
"hashtag": "ai",
"scrapedAt": "2026-10-12T05:30:00+00:00"
}

Use Cases

  • Hashtag monitoring: Track public conversations around topics such as AI, technology, journalism, and other interests.
  • Social media research: Collect public posts for topic analysis and research sampling.
  • Content discovery: Find posts and discussions associated with specific hashtags.
  • Post cataloging: Export post links, author handles, and engagement statistics into spreadsheets.
  • Multi-hashtag research: Collect posts associated with several hashtags in a single run.
  • Engagement analysis: Examine replies, reblogs, and favourites across collected posts.

Working with Your Dataset

Export your collected records as JSON, CSV, Excel, or another supported Apify dataset format.

You can use the results to:

  • Build hashtag-based post collections.
  • Analyze public conversations by topic.
  • Compare engagement statistics.
  • Organize posts by author, language, or publication date.
  • Import post metadata into research databases and analytics workflows.

FAQ

Who is this actor for?

It is designed for researchers, marketers, analysts, and developers who want structured public Mastodon posts organized by hashtag.

What can I export?

You can export records as JSON, CSV, Excel, and other supported Apify dataset formats.

Can I collect posts from different Mastodon instances?

Yes. Enter the hostname of the Mastodon instance you want to search in the instance field.

Can I search multiple hashtags in one run?

Yes. Provide multiple hashtag names in the hashtags array without the # prefix.

How many posts can it collect per run?

You can collect up to 1,000 records per run. Use maxItems to control the total collection size.

Can I run it on a schedule?

Yes. You can configure an Apify schedule to collect refreshed hashtag results periodically.

Disclaimer

This is an independent data collection tool and is not affiliated with, endorsed by, sponsored by, or officially associated with Mastodon. It collects publicly available posts. Users are responsible for respecting instance rules, applicable privacy laws, and copyright requirements when accessing, storing, or reusing collected content.

Collecting information that is already public is generally legal. There is no single law that bans all forms of web scraping. The limits are the usual ones: do not break into accounts, do not take private or confidential data, and be careful with personal data and copyrighted works. A site's terms can also restrict how you access it. Facts such as a public name, price, or rating are not the same thing as republishing someone's article or photo.

This actor collects information from public pages. It does not log in and it does not bypass access controls.

For a longer explanation, see Apify's article Is web scraping legal?.