# 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](https://pushbuild.com/apis/app/signup?api=mastodon-scraper)

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.

| Field | Type | Description |
| --- | --- | --- |
| `mode` | string: accountPosts, hashtag, trendingPosts, trendingTags, trendingLinks, profiles, searchAccounts | What to fetch. Default: `"accountPosts"`. |
| `accounts` | list of strings | user@instance, e.g. Gargron@mastodon.social (posts and profiles modes). |
| `hashtags` | list of strings | Without #, e.g. nvidia (hashtag mode; read from the chosen instance). |
| `instance` | string | Instance for hashtag, trends and search modes. Default: `"mastodon.social"`. |
| `query` | string | Search accounts mode. |
| `since` | string | ISO date or time; older posts are skipped. |
| `includeReplies` | boolean | Posts by account: include replies. Default: `false`. |
| `includeBoosts` | boolean | Include boosted (reblogged) posts. Default: `false`. |
| `maxItems` | integer | Maximum 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](https://pushbuild.com/apis/mcp.html).

## Related APIs

- [Military Aircraft Tracker API](https://pushbuild.com/apis/military-aircraft-tracker.html): Military aircraft currently broadcasting ADS-B worldwide: hex code, callsign, registration, aircraft type, latitude, longitude, altitude, ground speed, track, squawk and emergency status.
- [New Zealand Earthquake API](https://pushbuild.com/apis/new-zealand-earthquakes.html): New Zealand earthquakes and volcanoes from GeoNet: recent quakes with time, magnitude, depth, locality, coordinates and shaking intensity (MMI), plus current volcanic alert levels and aviation colour codes..
- [NOAA Space Weather API](https://pushbuild.com/apis/noaa-space-weather.html): Official NOAA SWPC space weather data: planetary Kp index (observed, 1-minute and 3-day forecast), alerts, warnings and watches, NOAA R/S/G storm scales, GOES solar flares and X-ray flux, real-time solar wind and magnetic field, flare probabilities and the solar cycle..
- [Maritime Warnings API](https://pushbuild.com/apis/maritime-navigation-warnings.html): Active maritime navigational warnings from the US NGA broadcast service: naval exercises, missile and gunnery firings, rocket launches, piracy, wrecks and drifting hazards, with positions parsed to latitude and longitude..
- [Manifold Markets API](https://pushbuild.com/apis/manifold-markets.html): Manifold prediction markets: question, current probability (or per-answer probabilities), volume, 24h volume, liquidity, number of traders, close and resolution times and resolution, for software, science, politics, tech and culture questions.
- [Library of Congress API](https://pushbuild.com/apis/library-of-congress.html): Search the Library of Congress digital collections: books, photos and prints, maps, manuscripts, newspapers, audio, film and web archives with title, date, contributors, subjects, formats, collection, location, language, description, image and link.

## 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](mailto:hello@pushbuild.com?subject=API%20question)

[(617) 299-8887](tel:+16172998887)

---
As of 2026-11-05. Source: https://pushbuild.com/apis/mastodon-scraper.html
