Mastodon Posts & Hashtag Scraper avatar

Mastodon Posts & Hashtag Scraper

Pricing

from $1.00 / 1,000 posts

Go to Apify Store
Mastodon Posts & Hashtag Scraper

Mastodon Posts & Hashtag Scraper

Export public Mastodon posts by hashtag or account from any instance: text, author, date, language, likes, boosts, replies, hashtags, media and links. No login or API key.

Pricing

from $1.00 / 1,000 posts

Rating

0.0

(0)

Developer

Danial Maqbool

Danial Maqbool

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

9 days ago

Last modified

Features

Limited permissions

Share

Export public Mastodon posts by hashtag or by account from any Mastodon server (mastodon.social, fosstodon.org, mstdn.social and thousands more). Get the post text, author, date, language, likes, boosts, replies, hashtags, mentions, media links and link previews as JSON, CSV or Excel.

It uses Mastodon's public REST API. No login, API key or proxy needed.

What you can use it for

  • Hashtag monitoring: follow a topic, event or campaign hashtag across the fediverse.
  • Brand and community tracking: export every public post from your own or a competitor's account.
  • Research and datasets: collect public posts with language tags and engagement counts for analysis or NLP.
  • Content curation: find the most liked and boosted posts on a topic.

What data you get

FieldDescription
id, url, uriPost ID and links
createdAt, editedAtPost and edit time (ISO 8601)
text, spoilerText, sensitivePost text as plain text and content warning
languageLanguage tag set by the author
favouritesCount, reblogsCount, repliesCountLikes, boosts and replies
hashtags, mentionsHashtags and mentioned accounts
mediaUrls, mediaTypesAttached images, videos or audio
linkUrl, linkTitleLink preview card
accountHandle, accountDisplayName, accountUrl, accountFollowers, accountIsBotAuthor
isReply, inReplyToId, isBoost, boostedByThread and boost context
source, sourceValue, instance, scrapedAtWhich hashtag or account the post came from

How to use it

  1. Set the Mastodon instance (default mastodon.social).
  2. Add Hashtags and/or Accounts (user@instance, @user@instance or a profile URL).
  3. Optionally filter by Language or Posted on or after, and choose whether to include replies and boosts.
  4. Click Start and export from the Output tab.

Example input

{
"instance": "mastodon.social",
"hashtags": ["opensource", "rustlang"],
"accounts": ["Mastodon@mastodon.social", "https://fosstodon.org/@fosstodon"],
"language": "en",
"dateFrom": "2026-11-01",
"maxPostsPerSource": 200
}

Example output

One record from a real run:

{
"source": "hashtag",
"sourceValue": "opensource",
"instance": "mastodon.social",
"id": "117616123489683897",
"url": "https://social.nerdzoom.media/@marius/117616123068406511",
"uri": "https://social.nerdzoom.media/users/marius/statuses/117616123068406511",
"createdAt": "2026-11-14T18:06:52.000Z",
"editedAt": null,
"language": "en",
"text": "RE: https://marius.blog/steam-machine/\n\nI tested Valve’s “GabeCube” on the TV and at my desk. What impressed me most was the everyday Linux PC: quiet, compact, and happy to leave me alone to get some work done.\n\nThere’s a lot to like about having KDE Plasma one menu away from the console interface. The price and limited ports are harder to love.\n\n#SteamMachine #SteamOS #Linux #OpenSource #Gaming",
"spoilerText": null,
"sensitive": false,
"repliesCount": 0,
"reblogsCount": 0,
"favouritesCount": 0,
"hashtags": [
"steammachine",
"steamos",
"linux",
"opensource",
"gaming"
],
"mentions": [],
"mediaUrls": [],
"mediaTypes": [],
"linkUrl": null,
"linkTitle": null,
"accountHandle": "marius@social.nerdzoom.media",
"accountDisplayName": "Marius Quabeck 🔜 40C3",
"accountUrl": "https://social.nerdzoom.media/@marius",
"accountFollowers": 671,
"accountIsBot": false,
"isReply": false,
"inReplyToId": null,
"isBoost": false,
"boostedBy": null,
"scrapedAt": "2026-11-14T18:08:54.929Z"
}

Pricing

Pay per event: $1.00 per 1,000 posts saved, plus a tiny standard start fee and Apify platform usage (usually a fraction of a cent per run). Set Max cost per run to cap spending.

Tips and limits

  • A hashtag timeline shows the posts the chosen instance knows about. Large instances such as mastodon.social see most of the fediverse; for niche communities, use their own instance.
  • Up to 2,000 posts per hashtag or account per run. Use Posted on or after for regular monitoring runs.
  • Mastodon has no public keyword search without login, so search works by hashtag or account.
  • By default, hashtag posts from accounts that opted out of search indexing are skipped. Accounts you list by name are exported as requested.
  • Only public posts are exported. Followers-only and direct messages are never returned by the public API.
  • Instances rate-limit anonymous clients (usually 300 requests per 5 minutes); the Actor paces its requests and retries.

FAQ

Do I need a Mastodon account? No. Hashtag timelines and public account posts are open to anonymous API clients on almost every instance.

Why did an instance return nothing? Some servers turn off public timeline access for logged-out visitors. Try another instance or the account's home server.

This Actor reads public posts through Mastodon's public API. Respect each instance's rules and the authors' rights, and handle any personal data in line with GDPR and other privacy laws.