Mastodon Profile Posts Scraper avatar

Mastodon Profile Posts Scraper

Pricing

from $2.99 / 1,000 results

Go to Apify Store
Mastodon Profile Posts Scraper

Mastodon Profile Posts Scraper

Mastodon Profile Posts Scraper is a Python tool to extract public statuses, author bios, follower counts, timestamps, and engagement metrics from Mastodon user profile endpoints. It exports normalized decentralized social media data into clean CSV or JSON formats

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 Profile and Posts Scraper — Account Information and Recent Public Posts

Mastodon Profile and Posts Scraper cover

Overview

Look up Mastodon accounts and optionally collect their recent public posts from any supported Mastodon instance. Provide an instance hostname, enter one or more usernames, and choose whether to include posts.

Collect structured profile information such as account IDs, usernames, display names, follower counts, and profile links. Export the results as JSON, CSV, Excel, or other supported Apify dataset formats.

Features

  • Look up multiple Mastodon accounts in one run.
  • Collect account IDs, usernames, and display names.
  • Retrieve account creation dates and bot indicators.
  • Extract follower, following, and status counts.
  • Collect public profile links.
  • Optionally retrieve recent public posts.
  • Deduplicate collected records.
  • Control the total number of output records.
  • Support different Mastodon instance hosts.

Collection Mode

ModeDescription
profileLookupLooks up account profiles using the supplied usernames. Optionally collects recent public posts when includePosts is enabled.

Input Parameters

ParameterDescriptionExample
modeCollection mode.profileLookup
instanceMastodon instance hostname.mastodon.social
accountsArray of Mastodon usernames to look up.["Gargron"]
includePostsWhether to collect recent public posts for each account.false
maxItemsMaximum number of records to collect.50
requestDelaySecsDelay between requests in seconds.1

Example Input

{
"mode": "profileLookup",
"instance": "mastodon.social",
"accounts": ["Gargron"],
"includePosts": false,
"maxItems": 50,
"requestDelaySecs": 1
}

To collect recent public posts as well, set includePosts to true.

What Data Does This Actor Extract?

The actor produces profile records and, when enabled, public post records.

Profile records

FieldDescription
recordTypeIdentifies the record as a profile.
accountIdUnique Mastodon account identifier.
usernameAccount username.
acctMastodon account handle.
displayNameAccount display name.
botIndicates whether the account is marked as a bot.
createdAtAccount creation date.
followersCountNumber of followers.
followingCountNumber of accounts followed.
statusesCountNumber of statuses published by the account.
urlPublic profile link.
scraped_atDate and time the record was collected.

When includePosts is enabled, the actor also collects recent public statuses. Post records contain post information returned by the selected Mastodon instance.

Example Output

{
"recordType": "profile",
"accountId": "1",
"username": "Gargron",
"acct": "Gargron",
"displayName": "Eugen Rochko",
"bot": false,
"createdAt": "2016-03-16T00:00:00.000Z",
"followersCount": 383119,
"followingCount": 748,
"statusesCount": 82482,
"url": "https://mastodon.social/@Gargron",
"scraped_at": "2026-10-26T00:00:00+00:00"
}

Use Cases

  • Creator research: Review profile information and follower counts for selected Mastodon accounts.
  • Social listening: Collect recent public posts for content and topic analysis.
  • Instance research: Compare account information across different Mastodon instances.
  • Community analysis: Examine account activity and public posting patterns.
  • Research exports: Save profile and post records in spreadsheets or structured datasets.
  • Social media monitoring: Refresh selected account information periodically.

Working with Your Dataset

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

You can use the results to:

  • Build Mastodon account directories.
  • Compare follower and following counts.
  • Organize profiles by instance and username.
  • Analyze recent public posts.
  • Import account and post information into research databases.

FAQ

Who is this actor for?

It is designed for researchers, journalists, marketers, and developers who need structured public Mastodon account information and recent posts.

What can I export?

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

Can I collect posts as well as profile information?

Yes. Set includePosts to true to collect recent public posts for the selected accounts.

Can I look up accounts on different Mastodon instances?

Yes. Enter the desired instance hostname in the instance field.

How many records can it collect per run?

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

Can I run it on a schedule?

Yes. You can configure an Apify schedule to refresh account information and collect recent posts 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 account information and 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?.