VOOZH about

URL: https://apify.com/jupri/mastodon-scraper

⇱ Mastodon Scraper Β· Apify


πŸ‘ Mastodon Explorer avatar

Mastodon Explorer

Under maintenance

Pricing

$30.00/month + usage

Go to Apify Store

Mastodon Explorer

Under maintenance

🐘 Scrape Mastodon Social Network websites

Pricing

$30.00/month + usage

Rating

0.0

(0)

Developer

πŸ‘ cat

cat

Maintained by Community

Actor stats

4

Bookmarked

34

Total users

0

Monthly active users

2 years ago

Last modified

Categories

Share

Welcome to Mastodon Scraper

πŸ‘ don't be sad readme is here

🐘 About Mastodon (social network)

πŸ‘ Image

Mastodon is free and open-source software for running self-hosted social networking services. It has microblogging features similar to Twitter, which are offered by a large number of independently run nodes, known as instances, each with its own code of conduct, terms of service, privacy policy, privacy options, and content moderation policies.[6][7][8]

🐘 About This Actor

Scrape data from Mastadon, the decentralized alternative to Twitter. Extract information on users, their "toots," likes, and favorites or scrape data based on a search query, such as a hashtag or a keyword. Export accumulated data into a variety of database formats.

πŸ‘ Image

🐘 Tutorial

πŸ“ Parameters

InputTypeDescription
querystring arrayList of Query, Search Terms or Start URL
portalstringDefault portal (default: mastodon.social)
limitintegerNumber of results (per-query)

πŸ“ Basic Usage

# search posts
{"query":["sponge bobs"],"limit":10}
# search hashtag
{"query":["#python"],"limit":10}
# just paste an url
{"query":["https://mastodon.social/@elonmusk"],"limit":10}

πŸ“ Advanced Usage

Mastodon Query Language (MQL)

[ [ <COMMAND:> | # | @ ] [ <NAME> | <ID> | <KEYWORD> ] [ / <SECTION> ] | <URL> ]

Possible QUERY values

FormatExampleDescription
KEYWORDSsearch termsSearch Anything
KEYWORDSwebscrapingSearch posts
users:KEYWORDSusers:pythonSearch users
hashtags:KEYWORDShashtags:phpSearch hashtags
portal:SECTIONExplore Current Portal
portal:aboutPortal info & description
portal:infoPortal info
portal:descriptionPortal description
portal:postsPortal posts
portal:hashtagsPortal hashtags
portal:newsPortal news
portal:feedsAll feeds
portal:localPortal feeds (local)
portal:remotePortal feeds (remote)
#HASHTAG#pythonScrape Hashtag
/info#python/infoHashtag info
/posts#python/postsHashtag posts
@USER[@SERVER]@elonmuskScraper User
@elonmusk@mastodon.social
/info@Gargron/infoUser info
/posts@Gargron/postsUser posts
/replies@Gargron/repliesUser posts (with replies)
/media@Gargron/mediaUser media
/following@Gargron/followingUser following
/followers@Gargron/followersUser followers
<POST_ID>112718231305707672Scraper a Post
/info112718231305707672/infoPost content
/comments112718231305707672/commentsPost comments
/reblogs112718231305707672/reblogsPost reblogs (boosts)
/likes112718231305707672/likesPost liked users (favourites)
https:<PORTAL_URL>https://mastodon.socialStart URL
https://mastodon.social/@elonmusk

πŸ“ Examples

By default the actor will scrape from mastodon.social portal (eg: https://mastodon.social)

Example 1: Portal

To scrape from other portal, use portal parameter and specify the website/portal hostname :

{"portal":"fosstodon.org"}

Example 2: Scraping #hastag

{"query":"#microsoft"}

Example 3: Scraping user posts

{"query":"@username"}
{"query":"@username@portal"}

Example 4: Using URL as input

When you specify URL for query parameter, it will automatically parsed with appropriate parameter :

{"query":"https://fosstodon.org/@Joefree/media"}

Example 5: Number of results

Use limit parameter to get more results.

{"query":"microsoft","limit":100}

🐘 Output Examples

{
"account":{
"acct":"Gargron",
"avatar":"https://files.mastodon.social/accounts/avatars/000/000/001/original/dc4286ceb8fab734.jpg",
"avatar_static":"https://files.mastodon.social/accounts/avatars/000/000/001/original/dc4286ceb8fab734.jpg",
"created_at":"2016-03-16T00:00:00.000Z",
"discoverable":true,
"display_name":"Eugen Rochko",
"fields":[
{
"name":"Patreon",
"value":"<a href=\"https://www.patreon.com/mastodon\" target=\"_blank\" rel=\"nofollow noopener noreferrer me\"><span class=\"invisible\">https://www.</span><span class=\"\">patreon.com/mastodon</span><span class=\"invisible\"></span></a>"
},
{
"name":"GitHub",
"value":"<a href=\"https://github.com/Gargron\" target=\"_blank\" rel=\"nofollow noopener noreferrer me\"><span class=\"invisible\">https://</span><span class=\"\">github.com/Gargron</span><span class=\"invisible\"></span></a>",
"verified_at":"2023-02-07T23:24:40.347+00:00"
}
],
"followers_count":312471,
"following_count":395,
"header":"https://files.mastodon.social/accounts/headers/000/000/001/original/3b91c9965d00888b.jpeg",
"header_static":"https://files.mastodon.social/accounts/headers/000/000/001/original/3b91c9965d00888b.jpeg",
"id":"1",
"last_status_at":"2023-04-28",
"note":"<p>Founder, CEO and lead developer <span class=\"h-card\"><a href=\"https://mastodon.social/@Mastodon\" class=\"u-url mention\">@<span>Mastodon</span></a></span>, Germany.</p>",
"statuses_count":73541,
"url":"https://mastodon.social/@Gargron",
"username":"Gargron"
},
"application":{
"name":"Web"
},
"card":{
"blurhash":"U34x7la*9EoYxNfQayfR4mj:?cWIajfRj[a{",
"description":"Learn how to get verified on Mastodon",
"height":267,
"image":"https://files.mastodon.social/cache/preview_cards/images/059/998/839/original/74e91efacf98def0.png",
"title":"Verification",
"type":"link",
"url":"https://joinmastodon.org/verification",
"width":400
},
"content":"<p>Looks like <span class=\"h-card\"><a href=\"https://mastodon.social/@arstechnica\" class=\"u-url mention\">@<span>arstechnica</span></a></span> is now verified on here! Always great to see this feature used. It'll be even more prominent in the future.</p><p><a href=\"https://joinmastodon.org/verification\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"><span class=\"invisible\">https://</span><span class=\"\">joinmastodon.org/verification</span><span class=\"invisible\"></span></a></p>",
"created_at":"2023-04-27T22:37:39.080Z",
"favourites_count":420,
"id":"110273171231251728",
"language":"en",
"mentions":[
{
"acct":"arstechnica",
"id":"110266162634306901",
"url":"https://mastodon.social/@arstechnica",
"username":"arstechnica"
}
],
"reblogs_count":280,
"replies_count":14,
"uri":"https://mastodon.social/users/Gargron/statuses/110273171231251728",
"url":"https://mastodon.social/@Gargron/110273171231251728",
"visibility":"public"
}

🐘 Support

πŸ‘ Image

You might also like

Mastodon Public Posts & Profiles Scraper

rupom888/mastodon-scraper

Scrape Mastodon public posts, timelines, hashtag feeds, and profiles using the public Mastodon API. No login required. Works with mastodon.social and any Mastodon instance. Extracts post content, author, favourites, reblogs, replies, and media attachments.

Mastodon Email Scraper - Advanced, Fast & Cheapest

contacts-api/mastodon-email-scraper-fast-advanced-and-cheapest

🐘 Mastodon Email Scraper allows you to collect emails from Mastodon profiles across instances ⚑ Expand decentralized social outreach πŸ“§

Mastodon Profile Scraper

scrapers-hub/mastodon-profile-scraper

🧾 Mastodon Profile Scraper extracts user profile data from Mastodon instancesβ€”bio, links, stats & more. πŸš€ Fast, reliable, and privacy-consciousβ€”ideal for research, outreach, and community insights. πŸ“ˆ

Mastodon

canadesk/mastodon

Collect Trends, Statuses, Hashtags and Timelines from mastodon.social. It's fast and costs little!

πŸ‘ User avatar

Canadesk Support

33

Mastodon Profile Scraper

sandaliaapps/mastodon-profile-scraper

Mastodon Profile Scraper lets you extract rich profile data from any public Mastodon account. Collect usernames, bios, follower counts, join dates, profile URLs, avatars, and moreβ€”perfect for research, analytics, and social media monitoring.

18

5.0

Mastodon (Bulk)

canadesk/mastodon-bulk

Collect Trends, Statuses, Hashtags and Timelines from mastodon.social. It's fast and costs little!

πŸ‘ User avatar

Canadesk Support

4

Mastodon Email Scraper – Advanced, Cheapest & Reliable πŸ“§βš‘πŸ“·

contactminerlabs/mastodon-email-scraper---advanced-cheapest-reliable

πŸ” Scrape Mastodon Emails Enter your search parameters to collect verified contact emails from public Mastodon profiles, along with profile title, bio snippet, source URL & platform info βœ‰οΈπŸ“Š Perfect for lead generation, influencer outreach & data enrichment in tools like Google Sheets or CRMs⚑🧩

πŸ‘ User avatar

ContactMinerLabs

11