Pushbuild

Mastodon Scraper – Posts, Hashtags, Trends & Profiles

Mastodon posts by account or hashtag with replies, boosts and favourites, trending posts, tags and links, profiles and account search, from any instance's public API. No login.

$0.32 per 1,000 rows

Get an API key

Example request

POST /mastodon-scraper/run
{
  "maxItems": 20
}

What it returns

Mastodon posts by account (user@instance) or hashtag, trending posts, hashtags and links, profiles and account search, from each instance's public REST API. No login.

Charged per row returned.

Request

POST https://api.pushbuild.com/mastodon-scraper/run with a JSON body. Send your key in the X-API-Key header.

FieldTypeDescription
modestring: accountPosts, hashtag, trendingPosts, trendingTags, trendingLinks, profiles, searchAccountsWhat to fetch. Default: "accountPosts".
accountslist of stringsuser@instance, e.g. Gargron@mastodon.social (posts and profiles modes).
hashtagslist of stringsWithout #, e.g. nvidia (hashtag mode; read from the chosen instance).
instancestringInstance for hashtag, trends and search modes. Default: "mastodon.social".
querystringSearch accounts mode.
sincestringISO date or time; older posts are skipped.
includeRepliesbooleanPosts by account: include replies. Default: false.
includeBoostsbooleanInclude boosted (reblogged) posts. Default: false.
maxItemsintegerMaximum items to return (1-500). Default: 100.

Example

curl -X POST https://api.pushbuild.com/mastodon-scraper/run \
  -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"maxItems": 20}'

Response

{"count": 20, "truncated": false, "seconds": 1.4, "items": [ { ... } ]}

Each call returns up to 500 items. Records that fail validation or are not found are flagged in the items and not charged.

Pricing

Pay only for results returned: $0.32 per 1,000 rows. No charge for errors or empty searches.

Use it from Claude, ChatGPT or Cursor

This API is also an MCP server: https://api.pushbuild.com/mcp/mastodon-scraper. Add it to any assistant that supports remote MCP servers, with your key in the X-API-Key header. Same prices. Setup for each app.

Tell us what you need built.

Questions about this API, higher volumes, or a data source you need that we don't cover yet.

hello@pushbuild.com

(617) 299-8887

Tell us about your project

A few questions so we can come back with a written scope. We reply within one business day.

Need data from a site with no API? Web scraping and data pipelines