# Get this week's trending hashtags on Mastodon

**Use case:** 

Reads the trending hashtags of mastodon.social, the largest Mastodon server, and saves each with its daily uses and number of accounts over the last 7 days and the hashtag link. Useful for trend tracking, content ideas and fediverse research. Add more servers to compare what each community is talking about.

## Input

```json
{
  "hashtags": [
    "opensource"
  ],
  "accounts": [
    "@Mastodon@mastodon.social"
  ],
  "includeThread": false,
  "timelines": [],
  "trendingTags": true,
  "searchType": "accounts",
  "instances": [
    "mastodon.social"
  ],
  "maxPostsPerSource": 20,
  "includeProfiles": true,
  "includeHashtagStats": true,
  "keywordMatch": "contains",
  "includeReplies": true,
  "includeBoosts": true,
  "onlyMedia": false,
  "respectOptOuts": true,
  "maxPagesPerSource": 50,
  "maxItems": 0,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

## Output

```json
{
  "source": {
    "label": "Source",
    "format": "text"
  },
  "instance": {
    "label": "Instance",
    "format": "text"
  },
  "name": {
    "label": "Hashtag",
    "format": "text"
  },
  "url": {
    "label": "Link",
    "format": "link"
  },
  "rank": {
    "label": "Trend rank",
    "format": "number"
  },
  "usesToday": {
    "label": "Uses today",
    "format": "number"
  },
  "accountsToday": {
    "label": "Accounts today",
    "format": "number"
  },
  "uses7d": {
    "label": "Uses 7 days",
    "format": "number"
  },
  "accounts7dSum": {
    "label": "Accounts 7 days (sum)",
    "format": "number"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Mastodon Scraper: Posts, Hashtags, Profiles, Trends Actor is ready to run with the inputs already set for "Get this week's trending hashtags on Mastodon". [Sign up or log in](https://console.apify.com/create-task-from-example/fBGLErqRoDEYzER14) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Get this week's trending hashtags on Mastodon" task

The Mastodon Scraper: Posts, Hashtags, Profiles, Trends Actor will start running based on the input automatically. You can also change all the input fields, like hashtags, accounts, and more, to match your specific use case.

### 3. Receive the "Get this week's trending hashtags on Mastodon" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as source, instance, hashtag, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Get this week's trending hashtags on Mastodon" task via API](https://apify.com/zhtech/mastodon-scraper.md).

## FAQ

### What does the Mastodon trending hashtags task return?

The Mastodon trending hashtags task saves one row per trending hashtag: name, server, uses and accounts per day for the last 7 days, totals and the hashtag URL.

### How do I see trends on other servers?

In the Mastodon trending hashtags task, add servers such as fosstodon.org, hachyderm.io or mstdn.social to Instances. Each server's trending list is saved separately so you can compare them.

### Can I also get the posts behind a trend?

The Mastodon trending hashtags task returns hashtag rows only. Copy a trending hashtag into Hashtags, or add the trending timeline under Timelines, to also save the posts.

### Can I track Mastodon trends daily?

The Mastodon trending hashtags task can run daily on an Apify schedule or start from the Apify API, Zapier, Make or n8n, building a history of what trended on each server.

### How much does the Mastodon trending hashtags task cost?

The Mastodon trending hashtags task uses pay per event pricing: a small start fee plus a fixed price per hashtag row saved, with no charge for compute time. Small runs like this fit the Apify free plan credit.

## About this Actor

This example demonstrates how to use [Mastodon Scraper: Posts, Hashtags, Profiles, Trends](https://apify.com/zhtech/mastodon-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/zhtech/mastodon-scraper.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/zhtech/mastodon-scraper.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
