# Wiki Attention Radar - is a topic rising or falling right now? (`forrestfarm/wiki-attention-radar`) Actor

Give it a list of topics. For each one get the Wikipedia article, human page views in your window, views in the window before, the % change, rising or falling, the peak day and every day's count. Straight from Wikimedia, no key, no browser.

- **URL**: https://apify.com/forrestfarm/wiki-attention-radar.md
- **Developed by:** [Forrest Scholtes-Dowd](https://apify.com/forrestfarm) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## Wiki Attention Radar - is a topic rising or falling right now?

### Use case

You have a list of topics. They can be video ideas, products, coins, people or places. Which ones are hot **this week**? Which ones are cooling off? Wikipedia counts how many people read each page, every day. This tool reads that count for you. You get one row per topic. It shows the views now, the views before, and the % change. It also says rising, falling or flat. It names the best day and lists every day. It fits right in a spreadsheet.

### Sample output

Input `{"topics": ["pumpkins", "Halloween", "Hot sauce", "Pumpkin spice", "Bitcoin", "Daylight saving time"], "days": 7}` -> 6 rows (run 2026-10-31, window 2026-10-24..2026-10-30 vs 2026-10-17..2026-10-23).

| topic | article | views | change_pct | trend | peak_day |
|---|---|---|---|---|---|
| pumpkins | Pumpkin | 18,562 | +44.3 | rising | 2026-10-30 |
| Halloween | Halloween | 242,626 | +149.4 | rising | 2026-10-30 |
| Hot sauce | Hot sauce | 1,063 | -0.7 | flat | 2026-10-25 |
| Pumpkin spice | Pumpkin pie spice | 4,448 | -1.4 | flat | 2026-10-25 |
| Bitcoin | Bitcoin | 26,693 | +69.7 | rising | 2026-10-30 |
| Daylight saving time | Daylight saving time | 81,528 | +126.5 | rising | 2026-10-25 |

Every row carries: `topic` (what you typed), `article` (the real page it maps to), `project`, `access`, `url`, `window_start`, `window_end`, `views`, `daily_avg`, `previous_views`, `change_pct`, `trend` (`rising` above +10 %, `falling` below -10 %, else `flat`; `new` when the window before had 0 views; `no views`), `peak_day`, `peak_views`, and `daily` (one `{date, views}` per day).

The summary record adds both windows, how many topics had no article, how many rose and fell, and the total views.

### Price

**$0.002 per topic** plus **$0.005 per start**. Pay per event only: no plan, no subscription, no platform-usage charge. 100 topics cost $0.205. A topic with no Wikipedia article gets no row and costs nothing.

### Input

- `topics` (required) - up to 500. The article name (Pumpkin, Bitcoin) or its Wikipedia link. Plurals and redirects are followed: `pumpkins` -> Pumpkin.
- `days` - the window, ending yesterday UTC (default 30, max 365). The same number of days before it is the comparison.
- `project` - which wiki (default `en.wikipedia`; also `de.wikipedia`, `es.wikipedia`, `fr.wiktionary` and so on).
- `access` - `all-access` (default), `desktop`, `mobile-web` or `mobile-app`.

### What it does not do

- It counts **human** views only (the API's `user` agent class); known bots and crawlers are left out by Wikimedia.
- Today is not counted. Wikimedia publishes each day's numbers after the day ends, so the window ends yesterday (UTC).
- One article per topic. Views on a redirect page are not added to the article it points to.
- It reads the article text **not at all**. If you want article text, other tools in the store do that.
- A topic with no article is listed in the status message and the summary, never returned as a row of 0 views. A Wikimedia door that does not answer stops the run with an error, never a "0 results" run.

### Notes

We keep this tool simple on purpose: Wikimedia's official public APIs only (the title check and the pageview metrics), no proxies, no logins, no key.

# Actor input Schema

## `topics` (type: `array`):

Up to 500 topics. Use the Wikipedia article name (Pumpkin, Bitcoin, Taylor Swift) or paste its link. Plurals and redirects are followed (pumpkins -> Pumpkin). A topic with no article gets no row and no charge.

## `days` (type: `integer`):

How many days to count, ending yesterday (UTC). The same number of days before it is the comparison window.

## `project` (type: `string`):

Which wiki to read, e.g. en.wikipedia, de.wikipedia, es.wikipedia, fr.wiktionary.

## `access` (type: `string`):

Count every device, or only one kind.

## Actor input object example

```json
{
  "topics": [
    "Pumpkin",
    "Halloween",
    "Hot sauce"
  ],
  "days": 30,
  "project": "en.wikipedia",
  "access": "all-access"
}
```

# Actor output Schema

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

No description

# 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 = {
    "topics": [
        "Pumpkin",
        "Halloween",
        "Hot sauce"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("forrestfarm/wiki-attention-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 = { "topics": [
        "Pumpkin",
        "Halloween",
        "Hot sauce",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("forrestfarm/wiki-attention-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 '{
  "topics": [
    "Pumpkin",
    "Halloween",
    "Hot sauce"
  ]
}' |
apify call forrestfarm/wiki-attention-radar --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,forrestfarm/wiki-attention-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/w0fGptHGGpDo2rnMs/builds/CeOzraXgkTojDE1Oa/openapi.json
