Mastodon Posts Scraper avatar

Mastodon Posts Scraper

Pricing

from $0.30 / 1,000 post saveds

Go to Apify Store
Mastodon Posts Scraper

Mastodon Posts Scraper

Export public Mastodon posts by hashtag or by account: text, date, boosts, favourites, replies, media, links and hashtags. Uses the official public Mastodon API of the server you choose, with no login.

Pricing

from $0.30 / 1,000 post saveds

Rating

0.0

(0)

Developer

jake mcclure

jake mcclure

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

3 days ago

Last modified

Categories

Features

Limited permissions

Share

Export public Mastodon posts by hashtag or by account. For each post you get the text, date, author, boost, favourite and reply counts, media, links, hashtags, mentions and polls.

It uses the official Mastodon API of the server you choose. No login, no cookies and no API key are needed.

Use it to:

  • follow a hashtag and see who is posting about a topic
  • track what a brand, project, journalist or public figure posts
  • measure engagement over time for a set of accounts
  • collect posts for research or sentiment analysis

Input

FieldWhat it does
Hashtags and accountsOne per line: #opensource, @Gargron@mastodon.social, or a link to a hashtag or profile page.
Server for hashtagsThe server whose view of a hashtag is read. Default mastodon.social.
Maximum posts per hashtag or accountStop after this many posts for each, newest first. Default 100.
Include repliesAlso return replies to other posts.
Include boostsFor accounts: also return posts the account boosted.
Only posts with mediaOnly posts with an image, video or audio attached.
Posted on or afterOnly posts from this date onwards.
{
"sources": ["#opensource", "@Mastodon@mastodon.social", "https://mastodon.social/@Gargron"],
"server": "mastodon.social",
"maxPostsPerSource": 500,
"postedAfter": "2026-01-01"
}

Output

One record per post, newest first:

{
"source": "@Mastodon@mastodon.social",
"id": "117599871234567890",
"url": "https://mastodon.social/@Mastodon/117599871234567890",
"text": "Mastodon 4.6 is out today.",
"createdAt": "2026-11-11T14:40:51.440Z",
"editedAt": null,
"language": "en",
"authorHandle": "Mastodon@mastodon.social",
"authorName": "Mastodon",
"authorUrl": "https://mastodon.social/@Mastodon",
"authorFollowers": 850000,
"authorIsBot": false,
"isBoost": false,
"boostedBy": null,
"boostedAt": null,
"isReply": false,
"replyCount": 42,
"boostCount": 610,
"favouriteCount": 1280,
"sensitive": false,
"contentWarning": null,
"hashtags": ["mastodon"],
"mentions": [],
"media": [{ "type": "image", "url": "https://files.mastodon.social/media_attachments/files/example.png", "description": "Screenshot of the new profile page" }],
"linkCard": { "url": "https://blog.joinmastodon.org/", "title": "Mastodon 4.6", "description": null },
"poll": null,
"server": "mastodon.social",
"scrapedAt": "2026-11-12T09:00:00.000Z"
}
  • source is the line of input the post was found under.
  • For a boost, isBoost is true, the post and author fields describe the original post, and boostedBy and boostedAt say who boosted it and when.
  • server is the Mastodon server the post was read from. Counts are the counts that server knows about.

A SUMMARY record in the run's key-value store lists, for each hashtag or account, how many posts were saved and any error.

Pricing

Pay per result. You are charged once for each post saved to the dataset, at the per-result price shown on this page.

Accounts that cannot be found and servers that refuse to answer cost nothing. The run stops as soon as it reaches the maximum charge you set for it.

Limits

  • Mastodon is a network of independent servers. A hashtag timeline holds the posts that the chosen server has seen, which is most but not all posts with that hashtag across the network. A larger server sees more.
  • Counts for a post written on another server can be lower than on its home server.
  • Only public posts are returned. Followers-only and direct posts are never returned.
  • Some servers do not allow reading without a login. Those are reported in the log and the summary.
  • The Actor does not search post text by keyword. Mastodon only offers that to logged-in users, and this Actor does not log in.
  • Requests are limited to about one a second per server, within Mastodon's published limits. If a server asks the Actor to slow down, it waits.

Is this allowed?

The Actor uses the public API that Mastodon servers provide for reading public posts without logging in. Posts are returned with the public handle and display name of their author. You are responsible for how you use the data, including any personal data in it and the terms of the server concerned.