Go to example tasks

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.

Try for free
Mastodon & Lemmy Scraper: Fediverse Posts, Profiles, Comments
Mastodon & Lemmy Scraper: Fediverse Posts, Profiles, Commentsspriggs-data/fediverse-scraper
Network
Link
Mastodon author
Lemmy author
+12 fields
Text
Number
Boolean
List
Object

Input

What to scrape(required):hashtagPosts
Hashtags:ai
Mastodon servers:mastodon.social+2
Max total items:150

Output fields

Network
Link
Mastodon author
Lemmy author
Lemmy title
Text
Lemmy body
Community
Created
Favourites
Boosts
Replies
Score
Comments
Hashtags
Input

How it works

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.

Image

Integrate "Scrape Mastodon posts by hashtag" into your workflow

Connect "Scrape Mastodon posts by hashtag" with 100+ integrations, or run it via API or MCP.

Webhook

Webhook

n8n

n8n

Make

Make

Zapier

Zapier

Airbyte

Airbyte

Keboola

Keboola

IFTTT

IFTTT

Hubspot

Hubspot

GDrive

GDrive

Gmail

Gmail

Apify MCP

Apify MCP

GitHub

GitHub

Slack

Slack

LangChain

LangChain

LlamaIndex

LlamaIndex

Flowise

Flowise

Pinecone

Pinecone

OpenAI

OpenAI

Mastra

Mastra

Clay

Clay

Frequently asked questions

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.