Profile Lookup
/api/mastodon/profile
Look up a public Mastodon profile by username or federated handle
Scrappa's Mastodon API returns structured JSON from any public Mastodon instance. Look up public profiles by username, read account statuses with cursor pagination, fetch status contexts with replies, browse hashtag timelines, and search for accounts and hashtags. Scrappa is an independent service and is not affiliated with or endorsed by Mastodon.
Try it now
Use the first endpoint in this API family with a Scrappa API key. Every account includes 500 free monthly credits, so you can validate the response shape before buying credits.
curl -X GET "https://scrappa.co/api/mastodon/profile?instance=mastodon.social&acct=Gargron" -H "Accept: application/json" -H "X-API-KEY: YOUR_API_KEY"
{
"success": true,
"data": {
"id": "1",
"username": "Gargron",
"acct": "Gargron",
"display_name": "Eugen Rochko",
"followers_count": 383131,
"following_count": 749,
"statuses_count": 82500,
"url": "https://mastodon.social/@Gargron"
}
}
Structured data for real applications. Here are some ideas.
Look up any public Mastodon account by username or federated handle to get display name, bio, avatar, follower counts, and custom fields.
Read the public posting history of any Mastodon account with cursor-based pagination and filtering by replies, boosts, and media.
Fetch any status with its full conversation context including ancestors and descendants to read entire threads.
Browse public hashtag timelines on any Mastodon instance to track trending topics and conversations in real time.
Search any public Mastodon instance for accounts, hashtags, or statuses with type filtering and pagination.
Mastodon scraper API
The Mastodon API is built for social media monitoring, research, and community tools. Each profile includes display name, bio, avatar, header, follower counts, and custom fields. Statuses include content, visibility, language, counts, media attachments, tags, and the embedded account. Hashtag timelines return the latest public posts for any tag.
Look up any public Mastodon account by username or federated handle.
Read account statuses with cursor-based pagination and filtering.
Fetch status contexts with ancestors and descendants for full threads.
Browse hashtag timelines with media, local/remote, and tag filters.
Search any public instance for accounts, hashtags, or statuses.
Look up any public Mastodon account by username to get the full profile object with display name, bio, avatar, follower counts, and custom fields.
Open Mastodon Profile API docsRead the public posting history of any account with cursor-based pagination. Filter by replies, boosts, and media to focus on the content you need.
Open Mastodon Statuses API docsFetch any status with its full conversation context including ancestors and descendants to read entire threads in one request.
Open Mastodon Status Context API docsBrowse public hashtag timelines on any Mastodon instance to track trending topics and conversations in real time.
Open Mastodon Hashtag API docsSearch any public Mastodon instance for accounts, hashtags, or statuses with type filtering and pagination.
Open Mastodon Search API docsEverything you need in one API.
/api/mastodon/profile
Look up a public Mastodon profile by username or federated handle
/api/mastodon/statuses
Read public statuses from a Mastodon account with cursor pagination
/api/mastodon/status
Fetch a status with its reply context (ancestors and descendants)
/api/mastodon/hashtag
Browse a public hashtag timeline on any Mastodon instance
/api/mastodon/search
Search Mastodon for accounts, hashtags, or statuses
See how Scrappa compares to the official API.
| Feature | Scrappa | ScrapingBee / ScraperAPI |
|---|---|---|
| Mastodon social data as JSON | Build your own parser | |
| Multi-instance support | Any public instance | Single instance |
| Thread context | Ancestors + descendants | Parse it yourself |
| Price per 1k requests | From $0.20 | Varies by credits per request |
| Unified API key | Yes (80+ APIs) | Scraping only |
| Free tier | 500 credits/month | Trial credits |
No. Scrappa is an independent service and is not affiliated with or endorsed by Mastodon. The Mastodon API returns structured JSON from public Mastodon instances through a Scrappa API key.
Every Scrappa account includes 500 free credits each month. After that, each request costs one credit, which works out to $0.20 to $0.30 per 1,000 requests depending on the credit pack or plan. Failed requests are never charged.
Account statuses and hashtag timelines use cursor-based pagination. The response carries a pagination block with has_more plus next_cursor (max_id) and prev_cursor (min_id) taken from the upstream Link header. Search uses offset-based pagination. A valid empty result is a successful response.
Any public Mastodon instance. Pass the instance parameter with the hostname (e.g. mastodon.social, mstdn.social). IP addresses and private ranges are not allowed.