# Trending Now Radar: Wikipedia, Bluesky & Mastodon Trends (`datacrate/trending-now-radar`) Actor

What is trending right now: Wikipedia most-viewed articles by country/language, Bluesky trending topics and Mastodon trending hashtags. Snapshot or since-last-run mode with rank change, plus a seenIn field for topics trending on several sources. Only topics, no user data.

- **URL**: https://apify.com/datacrate/trending-now-radar.md
- **Developed by:** [Data Crate](https://apify.com/datacrate) (community)
- **Categories:** News, Social media
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.40 / 1,000 trend row returneds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

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 examples already wired to this Actor's own input schema, see the [API](#api) section below.

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`).

# README

## Trending Now Radar – Wikipedia, Bluesky & Mastodon trending topics

Get **what is trending right now** from three open public feeds in one clean dataset: the **most-viewed Wikipedia articles** per country/language edition, **Bluesky trending topics** and **Mastodon trending hashtags**. Every row has a rank, a link and a `seenIn` field that flags topics trending on more than one source. Schedule it with **since-last-run** mode to get only new trends plus how far each topic moved up or down. No scraping, no browser, no API key, no logins.

**First run:** press Start. The prefill (all three sources, country US, top 10 each) returns about 30 rows and costs about **$0.09 at $0.003 per trend row** (it finishes in a few seconds). **Empty input also works:** it returns the top 25 per source, about 75 rows, roughly $0.23.

Not included: Google Trends and X/Twitter trends. This actor only uses sources whose public API terms were checked (see "Terms and licence evidence").

### What you can do with it

- **Daily trend digest** for newsletters, social teams and content planning: top topics across encyclopedia readers, Bluesky and the fediverse.
- **Spot stories breaking across platforms:** rows with a non-empty `seenIn` list trend on two or more sources at once.
- **Alerts:** run on a schedule with `mode: "since-last-run"` and send only new topics and big rank movers to Slack, email or a webhook.
- **Localised trends:** pass several countries (`US`, `DE`, `JP`, `BR`...) to get each Wikipedia language edition's most-read articles.
- **Research and dashboards:** every row carries a date and fetch time, so scheduled runs build your own trend history.

### Input

| Field | What it does |
|---|---|
| `mode` | `snapshot` (default): everything trending now. `since-last-run`: only topics that are new since the previous run with the same State name, plus topics whose rank moved at least `minRankChange` places. The first since-last-run run returns everything as the baseline |
| `sources` | `wikipedia`, `bluesky`, `mastodon` (default: all three) |
| `countries` | Two-letter codes, default `["US"]`. Each maps to a Wikipedia language edition (US, GB, CA, AU... = English; DE, AT, CH = German; FR, BE = French; ES, MX, AR... = Spanish; JP, BR, IT, NL, PL, TR, KR, CN and more). Bluesky and Mastodon trends are global, so they are returned once per run, not once per country |
| `topN` | Rows per source and Wikipedia edition (default 25). Bluesky offers up to 25 topics, Mastodon up to 40 |
| `date` | Wikipedia day, `YYYY-MM-DD`. Empty = latest published day (normally yesterday, UTC) |
| `excludeMainPages` | Default on: drops Main Page, Special:Search, Wikipedia:, Portal:, Help:, File:, Category: and other non-article pages, in every language edition |
| `minRankChange` | Since-last-run threshold for rank movers (default 3) |
| `stateKey` | Name of the saved ranking snapshot. Use different names for different schedules |
| `maxItems` | Hard cap on rows for the run (default 500), a spend limit |

Example: `{ "sources": ["wikipedia", "bluesky", "mastodon"], "countries": ["US"], "topN": 10 }`

Alert example: `{ "mode": "since-last-run", "countries": ["US", "DE"], "topN": 25, "minRankChange": 5, "stateKey": "morning-digest" }`

### Output

```json
{
  "source": "wikipedia",
  "scope": "en.wikipedia",
  "countries": ["US"],
  "rank": 1,
  "topic": "Robert Pattinson",
  "views": 840972,
  "usesLast2Days": null,
  "accountsLast2Days": null,
  "description": null,
  "url": "https://en.wikipedia.org/wiki/Robert_Pattinson",
  "seenIn": [],
  "isNew": null,
  "previousRank": null,
  "rankChange": null,
  "date": "2026-11-17",
  "fetchedAt": "2026-11-18T19:48:24.295Z"
}
```

This is a first-run row, so the delta fields are `null`. A row that also trends on Bluesky would carry e.g. `"seenIn": ["bluesky", "wikipedia"]`.

| Field | Meaning |
|---|---|
| `source`, `scope` | `wikipedia` + the edition (`en.wikipedia`), `bluesky` + `global`, `mastodon` + `mastodon.social` |
| `rank` | Position inside that source and scope (Wikipedia ranks are after non-article pages are removed) |
| `topic` | Article title, Bluesky topic, or hashtag with `#` |
| `views` | Wikipedia only: page views on `date` (all access types) |
| `usesLast2Days`, `accountsLast2Days` | Mastodon only: sum of today's and yesterday's reported uses and accounts |
| `description` | Bluesky only: one-line summary of the topic |
| `seenIn` | Sources where a matching topic also trends in the same run, including this row's own source. Empty when the topic trends on one source only. Matching is a heuristic on names (case, accents and punctuation ignored, all words of the shorter name contained in the longer), so check borderline matches |
| `isNew`, `previousRank`, `rankChange` | Compared with the previous run with the same State name. `rankChange` is positive when the topic moved up. All `null` on the first run |

The dataset has no account names, handles or post authors: only topics, hashtags and article titles. Bluesky's own feed link is deliberately not exported because it points at a profile feed; `url` is a search link instead.

### Terms and licence evidence

Checked 2026-11-18 (all endpoints re-fetched that day with the actor's own User-Agent). Not legal advice.

**Wikimedia pageviews (`wikimedia.org/api/rest_v1/metrics/pageviews/top/...`)**

- Only the documented pageviews REST host is used. `en.wikipedia.org/robots.txt` contains `Disallow: /api/` and `Disallow: /w/`, so the actor never calls `en.wikipedia.org/api`, `api.php` or any Wikipedia page. Article links in the output are plain URLs and are not fetched. `wikimedia.org/robots.txt` redirects to `www.wikimedia.org//robots.txt`, which returns 404 (no restrictions published).
- Data licence, from the Wikimedia pageviews dataset page (`dumps.wikimedia.org/other/pageviews/`): "All Analytics datasets are available under the Creative Commons CC0 dedication."
- User-Agent policy (Wikimedia Foundation User-Agent Policy): "Scripts should use an informative User-Agent string with contact information, or they may be blocked without notice." The actor sends `datacrate-actor/1.0 (Apify actor; trending-now-radar)`, one request per edition, with a 1 request per second limit and back-off on errors.
- Article titles are public encyclopedia titles; Wikipedia text itself is CC BY-SA and is not copied.

**Bluesky public AppView (`public.api.bsky.app`, `app.bsky.unspecced.getTrendingTopics`)**

- `public.api.bsky.app/robots.txt`: "Crawling the public parts of the API is allowed. HTTP 429 ("backoff") status codes are used for rate-limiting. Up to a handful concurrent requests should be ok." The actor sends one request at a time, honours 429 and `Retry-After`.
- Terms of Service (`bsky.social/about/support/tos`, "Last Updated: 14 August, 2025"): the full text was read for scraping, crawling, automated-access and API clauses and none was found. The only mention of automation is Bluesky's own moderation ("We proactively use automated tools and human moderation to detect and act on prohibited content"). The terms state they apply to "social networking that happens on Bluesky". This means no explicit permission or prohibition exists in the ToS; the permission rests on the robots.txt statement above.
- The endpoint is marked `unspecced` by Bluesky, so its shape may change without notice. If it fails, the actor drops the source for that run and records the reason in `SUMMARY`.

**Mastodon (`mastodon.social/api/v1/trends/tags`)**

- `mastodon.social/robots.txt` disallows named AI-training crawlers and, for all other agents, only `/media_proxy/`, `/interact/` and `/api/v1/instance/domain_blocks`. It states: "You are not allowed to use the contents of this website for LLM training". `/api/v1/trends/tags` is not disallowed. **Do not use this output to train AI models.**
- Terms for registered users of mastodon.social (effective 2026-08-31, via `/api/v1/instance/terms_of_service`): "These terms do not apply to anyone who is not a registered user of the Service." The actor uses no account and no login. There is no explicit grant for anonymous API reading; the permission rests on the public API being unauthenticated and not disallowed in robots.txt.
- Only hashtag names and aggregate counts are returned. No accounts or posts.

Requests per run: about 3 to 8 (one per Wikipedia edition, one for Bluesky, one or two for Mastodon). Nothing is sent to any other host.

### Notes and limits

- Wikipedia ranks are daily (UTC), so they change once a day; Bluesky and Mastodon change through the day. Run the actor every few hours for the social sources.
- Bluesky and Mastodon have no country filter in their public trending feeds. They are global (Mastodon: the mastodon.social instance only).
- Mastodon counts come from one instance and describe the fediverse as seen by mastodon.social.
- `since-last-run` can legitimately return 0 rows (nothing new, nobody moved) and then you are not charged.
- Delta state is stored in a named key-value store on your account (`trending-now-radar-state`). A run that skips a source keeps that source's earlier baseline.
- Not affiliated with Wikimedia, Bluesky or Mastodon.

### FAQ

**Does it include Google Trends or X/Twitter trends?** No. Those sources were left out on purpose.

**Why are some Wikipedia pages missing?** `excludeMainPages` removes the Main Page, search and other system pages that top every raw pageview list. Turn it off to see them.

**What happens if a source is down?** The run continues with the others and `SUMMARY` lists the failing source and the reason. If every source fails the run fails and nothing is charged.

**Can I schedule it?** Yes: use Apify schedules, then connect a webhook, Zapier, Make, n8n, or the Apify MCP server to push new trends wherever you need them.

### Pricing

Pay per result: **$0.003 per trend row** ($3 per 1,000), no start fee. Volume tiers lower the per-row price automatically on higher Apify plans (down to $0.0024). Set `topN` and `maxItems` to cap spend.

### Changelog

- 1.0: Wikipedia, Bluesky and Mastodon sources; snapshot and since-last-run modes; `seenIn` cross-source matching.

# Actor input Schema

## `mode` (type: `string`):

snapshot = everything trending now. since-last-run = only topics that are new since the previous run with the same State name, plus topics whose rank moved by at least Min rank change (the first run returns everything).

## `sources` (type: `array`):

Any of: wikipedia (most-viewed articles), bluesky (trending topics), mastodon (trending hashtags on mastodon.social).

## `countries` (type: `array`):

Two-letter country codes such as US, GB, DE, FR, ES, IT, JP, BR. Each maps to a Wikipedia language edition (US and GB both use en.wikipedia). Bluesky and Mastodon trends are global. Use ALL for the English edition only.

## `topN` (type: `integer`):

How many trends to return from each source and Wikipedia edition (Bluesky offers up to 25, Mastodon up to 40). You are charged per row.

## `date` (type: `string`):

Day of Wikipedia page views. Empty = the latest day with published data (normally yesterday, UTC).

## `excludeMainPages` (type: `boolean`):

Drop Main Page, Special:Search, Wikipedia:, Portal:, Help:, File:, Category: and similar non-article pages from Wikipedia results.

## `minRankChange` (type: `integer`):

In since-last-run mode, also return topics that moved up or down at least this many places since the previous run.

## `stateKey` (type: `string`):

Name of the saved ranking snapshot. Use different names for different schedules.

## `maxItems` (type: `integer`):

Hard cap on rows for the whole run, a spend limit.

## Actor input object example

```json
{
  "mode": "snapshot",
  "sources": [
    "wikipedia",
    "bluesky",
    "mastodon"
  ],
  "countries": [
    "US"
  ],
  "topN": 10,
  "excludeMainPages": true,
  "minRankChange": 3,
  "stateKey": "default",
  "maxItems": 500
}
```

# Actor output Schema

## `results` (type: `string`):

One row per trending topic, hashtag or article, ranked within its source.

## `summary` (type: `string`):

Per-source row counts, errors and delta baseline (key-value store record SUMMARY).

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "sources": [
        "wikipedia",
        "bluesky",
        "mastodon"
    ],
    "countries": [
        "US"
    ],
    "topN": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("datacrate/trending-now-radar").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "sources": [
        "wikipedia",
        "bluesky",
        "mastodon",
    ],
    "countries": ["US"],
    "topN": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("datacrate/trending-now-radar").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "sources": [
    "wikipedia",
    "bluesky",
    "mastodon"
  ],
  "countries": [
    "US"
  ],
  "topN": 10
}' |
apify call datacrate/trending-now-radar --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,datacrate/trending-now-radar"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/ITMdQyEdjnvwHl5Pa/builds/6PehkmGgG6ma0p12N/openapi.json
