# Wikipedia Pageviews Trend Radar (GDELT News Bonus) (`atesen-software/trend-radar-wikipedia-gdelt`) Actor

Is a topic rising or falling? Daily Wikipedia pageviews per topic with 7 and 30 day change, peak day and a rising or falling flag. Optional GDELT news volume as a best-effort bonus (the free GDELT service is often busy). Open data, no Google. Also lists the most read Wikipedia articles of a day.

- **URL**: https://apify.com/atesen-software/trend-radar-wikipedia-gdelt.md
- **Developed by:** [Atesen Software](https://apify.com/atesen-software) (community)
- **Categories:** SEO tools, Marketing, News
- **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 one complete topic series

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

## Wikipedia Pageviews Trend Radar (GDELT News Bonus)

### What does Trend Radar do?

**Trend Radar** answers one question for a list of topics: *is interest rising or falling?* Its core is the **Wikipedia pageviews API** (how many people read the article, per day). As an optional, best-effort bonus it can add **GDELT** (how many news articles mention the topic, and in what tone). GDELT is a free public service that is often busy or has gaps, so it is switched off by default; see "Tips and limits". For every topic you get the daily series, the **7 day and 30 day change**, the peak day and a plain **rising / falling / stable** flag. A second mode lists the **most read Wikipedia articles of a day** for a language or a country.

Think of it as a **Google Trends alternative built on open data**: no Google, no scraping of a search page, nothing that breaks when a web page changes. It is a **trend radar** and **topic momentum** tracker for SEO, content and marketing teams, newsrooms and researchers.

**Be clear about what it is not.** It is not Google search volume. Wikipedia pageviews measure how many people read an article, and GDELT counts news articles. Both follow public attention closely for many topics, but they do not give a 0 to 100 search interest index, related queries or regional search breakdowns, and a niche keyword with no Wikipedia article or no news coverage will come back empty. Use it where reader interest and news coverage are the signal you want.

### Why use this trend radar?

- **Real counts, not an index.** Views per day and articles per day, so you can compare topics in absolute terms.
- **Momentum in one flag.** `rising`, `falling`, `stable` or `insufficient-data`, from a rule you can read (see below) and tune with one number.
- **Optional second signal.** Add media attention (GDELT news volume, optional tone) next to reader interest. It is a bonus: when GDELT is busy or has gaps the row is marked `partial` and is free, and you still get the Wikipedia numbers.
- **Any Wikipedia language.** `en:ChatGPT`, `de:Künstliche Intelligenz`, `tr:Yapay zekâ`, `fr:Intelligence artificielle`, or just paste an article URL.
- **Compare mode.** Rank topics against each other by views, by 7 day change and by news volume, with each topic's share of all compared views.
- **Top articles of a day.** What the world, a language edition or a country is reading, with day-over-day change and a "new in the top" flag.
- **You pay for complete results only.** A topic is charged only when every source you chose answered. Unknown articles, rate limits, GDELT gaps and errors are free. With Wikipedia as the only source (the default) every known article is complete.
- Apify platform extras: schedules (weekly trend reports), API access, webhooks, integrations, run history.

### What data does it return?

One row per topic (mode **Topic series**):

| Field | Description |
|---|---|
| `topic`, `article`, `language` | The Wikipedia article you asked for |
| `status` | `ok` (complete, charged), `partial`, `not_found`, `rate_limited`, `error`, `invalid` (all free except `ok`) |
| `trend`, `trend30d` | `rising`, `falling`, `stable` or `insufficient-data` |
| `change7dPct`, `change30dPct` | Percent change of the last 7 (30) days against the 7 (30) days before |
| `peakDate` | Day with the most views |
| `wikipediaViewsTotal`, `wikipediaViewsLast7d`, ... | Page view totals, averages and windows |
| `newsArticlesTotal`, `newsChange7dPct`, `newsTrend`, ... | GDELT article volume, change and flag |
| `newsAverageTone`, `newsToneChange7d` | Average news tone (optional) |
| `compare` | Ranks and share when Compare topics is on |
| `series` | Day-by-day list: `date`, `wikipediaViews`, `newsArticles`, `newsCoverageSharePct`, `newsTone` |
| `source`, `attribution` | Which sources delivered numbers and the credit line to use |

One row per article (mode **Top articles**): `rank`, `article`, `language`, `views`, `previousDayViews`, `viewsChangeVsPreviousDayPct`, `newInTop`, `date`, `country`, `wikipediaUrl`.

### How is "rising" decided?

- `change7dPct` = (views in the last 7 days minus views in the 7 days before) divided by views in the 7 days before. `change30dPct` does the same with 30 day windows. The Actor reads 60 extra days before your start date so both can be calculated; those days are not returned.
- `rising` when the change is at or above the threshold (default **+20 %**), `falling` when at or below the negative threshold, `stable` in between. Change the threshold with "Rising / falling threshold".
- `insufficient-data` when the earlier window is too small to say anything: fewer than 10 views a day (Wikipedia) or 3 articles a day (news) on average, or not enough history. A jump from 1 to 5 views is not called rising.
- Windows are whole weeks (or 30 days), so weekday effects cancel out. It is a simple comparison of two windows, not a forecast.

### How to find rising topics

1. Open the Actor, keep mode **Topic series** and paste your topics, one Wikipedia article per line: `en:Bitcoin`, `de:Elektroauto`, `tr:Yapay zekâ`.
2. Choose the number of days (30 is a good start), the sources, and switch on **Compare topics** to rank them.
3. Optional: add your own news query after a bar, for example `en:Bitcoin|bitcoin OR "BTC price"`.
4. Start the run and open the dataset: sort by `change7dPct` or filter `trend = rising`.
5. Schedule the Actor weekly and call it from the API to keep a trend watchlist.

### How much does it cost?

Pricing is pay per event. In mode **Topic series** one charge is made for each **complete topic series** (a row with status `ok`). In mode **Top articles** one charge is made for each returned article. See the pricing shown at the top of the Actor page for the current prices. Rows with status `partial`, `not_found`, `rate_limited`, `error` or `invalid` are not charged. Set a maximum cost per run and the Actor stops cleanly at that limit. Platform usage is included in the event price.

### Input

See the **Input** tab for every option. The main ones:

```json
{
  "mode": "series",
  "topics": ["en:Artificial intelligence", "en:Bitcoin", "en:Climate change"],
  "days": 30,
  "sources": ["wikipedia"],
  "compare": true
}
```

The same with the optional news signal (best effort, see below): `"sources": ["wikipedia", "gdelt"], "gdeltMaxTopics": 3`.

Top articles of a day:

```json
{ "mode": "top", "topLanguage": "en", "topLimit": 25 }
```

Country list (Wikimedia publishes country data a few days later and rounds the views up):

```json
{ "mode": "top", "topCountry": "US", "topLanguage": "all", "topDate": "2026-10-31", "topLimit": 25 }
```

### Output

You can download the dataset in various formats such as JSON, HTML, CSV or Excel. A shortened topic row (real output of a run, topic `en:Bitcoin`, 30 days, with the optional GDELT news volume switched on):

```json
{
  "mode": "series",
  "topic": "en:Bitcoin",
  "status": "ok",
  "startDate": "2026-10-08",
  "endDate": "2026-11-06",
  "trend": "rising",
  "change7dPct": 22.7,
  "change30dPct": 12.3,
  "peakDate": "2026-10-09",
  "wikipediaViewsTotal": 105965,
  "wikipediaViewsLast7d": 32742,
  "wikipediaViewsPrevious7d": 26693,
  "newsArticlesTotal": 1233,
  "newsChange7dPct": -13.6,
  "newsTrend": "stable",
  "series": [
    { "date": "2026-11-05", "wikipediaViews": 3180, "newsArticles": 15, "newsCoverageSharePct": 0.20056, "newsTone": -0.682 },
    { "date": "2026-11-06", "wikipediaViews": 3815, "newsArticles": 74, "newsCoverageSharePct": 0.13274, "newsTone": -1.851 }
  ],
  "source": "Wikimedia Analytics API (page views); GDELT DOC 2.0 API (news volume and tone)",
  "attribution": "Wikipedia page views: Wikimedia Foundation, Wikimedia Analytics API, CC0 1.0. News volume and tone: GDELT Project, https://www.gdeltproject.org/"
}
```

A shortened top article row: `{ "mode": "top", "date": "2026-11-06", "rank": 1, "article": "Example article", "views": 408705, "previousDayViews": 340000, "viewsChangeVsPreviousDayPct": 20.2, "newInTop": false }`.

### Tips and limits

- **GDELT is best effort.** The news data comes from the free GDELT service, which we do not control. In our own tests it answered HTTP 429 (too many requests) on most requests, even when we kept far below its limit of one request every 5 seconds, and on some days it monitored far fewer articles than usual or had no data. So it is off by default. When you switch it on, the Actor waits 30 seconds and retries after a 429 ("GDELT retries after a rate limit", default 2), then stops asking GDELT for the rest of the run. Your rows keep their Wikipedia numbers, are marked `partial`, and are not charged. The same happens when more than 30 % of the newest 14 days have no usable GDELT data. Days with far fewer monitored articles than usual are shown as empty instead of as a drop in news volume. Run again later, or keep Wikipedia as the only source (rows are then complete and charged). Each topic with news data adds at least 5 seconds to the run (at least 10 with tone); "Topics that get news data" chooses how many topics get it.
- **GDELT covers about the last 3 months.** Older periods have no news data, and the 30 day news change needs 60 days of history.
- **Exact titles.** Wikipedia titles are case sensitive after the first letter. If an article moved, page views are counted under each title separately (a redirect has its own count), so use the current title. Check `wikipediaUrl` in the row.
- **Page views are users only.** The Actor uses Wikimedia's "user" traffic (all platforms), which leaves out known crawlers and automated traffic.
- **Newest day.** Wikimedia publishes yesterday's numbers some hours into the next UTC day. If the newest day is not out yet, the period ends one day earlier and the row says so.
- **News query.** By default the news search is the article title in quotes, without a trailing part in brackets ("Mercury (planet)" searches "Mercury"). Add `|your query` after a topic for something sharper. The query used is in `newsQuery`.
- **Top articles.** The Main Page, search and other special pages are skipped by default; main pages with a local name may still appear.

### Data sources and credit

Wikipedia page views come from the Wikimedia Analytics API (data published under CC0 1.0). News volume and tone come from the GDELT Project (https://www.gdeltproject.org/), which asks that any use cite the GDELT Project. Each row carries a `source` and an `attribution` field with the credit line for the sources that delivered numbers; please keep it when you publish results.

### Use via API

One request runs the Actor, waits for it and returns the dataset items as JSON. Send your token in the `Authorization` header, not in the URL:

```bash
curl -X POST "https://api.apify.com/v2/acts/atesen-software~trend-radar-wikipedia-gdelt/run-sync-get-dataset-items?timeout=120" \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"mode":"series","topics":["en:Artificial intelligence","en:Bitcoin"],"days":30,"sources":["wikipedia"]}'
```

The synchronous endpoint waits up to 300 seconds. For longer jobs start a run with `POST https://api.apify.com/v2/acts/atesen-software~trend-radar-wikipedia-gdelt/runs` and read the dataset when it finishes.

**JavaScript** (`npm install apify-client`):

```js
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('atesen-software/trend-radar-wikipedia-gdelt').call({ mode: "series", topics: ["en:Artificial intelligence", "en:Bitcoin"], days: 30, sources: ["wikipedia"] });
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

### Use with AI agents (MCP)

Claude Desktop, Cursor, VS Code and other MCP clients can call this Actor as a tool through the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp). Load only this Actor with:

```text
https://mcp.apify.com?tools=atesen-software/trend-radar-wikipedia-gdelt
```

Client config (sign in with Apify OAuth when the browser opens, or add an `Authorization: Bearer <APIFY_TOKEN>` header instead):

```json
{
  "mcpServers": {
    "apify": { "url": "https://mcp.apify.com?tools=atesen-software/trend-radar-wikipedia-gdelt" }
  }
}
```

Then ask in plain words, for example: "Compare Wikipedia pageviews for Artificial intelligence and Bitcoin over the last 30 days and tell me which is rising." The agent fills the same input fields you see on the Input tab, and runs are billed to your Apify account at the prices on the Pricing tab.

### FAQ, disclaimers and support

#### Can I use this instead of Google Trends?

For "is reader attention on this topic growing?" with real daily counts, it can be a practical open-data stand-in. It does not replace Google's data one to one. For search interest indexes, related queries or regional search data, no: the Actor does not read Google at all.

#### Does it contain personal data?

No. It returns article titles, page view counts and news article counts only. If you enter the name of a person as a topic (for example a public figure's Wikipedia article), you get public, aggregated page view counts for that article, not data about individuals who read it.

#### Why is a topic marked partial?

One source you asked for did not deliver a usable answer for that topic (most often GDELT was rate limited or had gaps, or the Wikipedia title was not found). The message column says which. Partial rows are free and keep the numbers that did arrive.

#### Legal

The Actor uses documented open APIs with an identifying User-Agent and respects their rate limits. You are responsible for how you use and republish the results; keep the attribution when you do.

Found a problem or need another field? Open the **Issues** tab. The **API** tab shows how to call the Actor from code, a schedule or a no-code tool.

### Related actors

- [Google Trending Searches API: Daily Trends by Country](https://apify.com/atesen-software/google-trends-daily)
- [Google News Scraper: News Articles, Headlines & Real URLs](https://apify.com/atesen-software/google-news-scraper)
- [Hacker News Scraper: Search Stories & Comments API](https://apify.com/atesen-software/hacker-news-search-comments)

# Actor input Schema

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

Topic series: one row per topic with daily Wikipedia page views and GDELT news volume, the 7 and 30 day change and a rising or falling flag. Top articles: the most read Wikipedia articles of one day for a language or a country.

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

One Wikipedia article per line, written as language code, colon, article title: en:ChatGPT, de:Künstliche Intelligenz, tr:Yapay zekâ. A line without a language code uses the default language. A Wikipedia article URL also works. To control the news search, add a bar and a GDELT query: en:Bitcoin|bitcoin OR "BTC price". Used in mode Topic series.

## `defaultLanguage` (type: `string`):

Wikipedia language code for topics written without one, for example en, de, tr, fr, es, pt, ja.

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

How many days of daily data to return, ending yesterday (UTC). Between 7 and 365. Ignored when a start date is given. The 7 and 30 day changes also use the 60 days before this period; those days are read but not returned.

## `startDate` (type: `string`):

First day of the period, written 2026-10-01. Leave empty to use the number of days above.

## `endDate` (type: `string`):

Last day of the period, written 2026-11-05. Leave empty for yesterday, or the newest day Wikimedia has published.

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

Wikipedia page views measure reader interest in the topic and are the core of this Actor. GDELT news volume is an optional bonus: GDELT is a free public service that is often busy (HTTP 429) or has gaps, and it covers about the last 3 months only. A row is charged only when every source you pick answered for that topic, so a busy GDELT makes rows partial and free; leave GDELT off for a guaranteed complete result.

## `gdeltMaxTopics` (type: `integer`):

Only used when GDELT is one of the data sources. GDELT allows one request every 5 seconds, so news data is added for the first N topics of your list only (each one adds at least 5 seconds to the run, twice that with tone). The other topics get Wikipedia data only. 0 turns news data off.

## `gdeltIncludeTone` (type: `boolean`):

Also read the average tone of the news coverage per day (negative to positive, usually between -10 and +10). Needs a second GDELT request per topic.

## `gdeltRetries` (type: `integer`):

Only used when GDELT is one of the data sources. GDELT often answers HTTP 429 (too many requests) when it is busy. After a 429 the Actor waits 30 seconds and tries that request again, up to this many times (default 2); if GDELT still refuses, it stops asking GDELT for the rest of the run and the affected rows are partial and free. With 0 it gives up at the first 429. Each retry adds 30 seconds to the run.

## `compare` (type: `boolean`):

Add a compare object to every row: rank by views, rank by 7 day change, rank by news volume and the share of all compared views. Rows are delivered at the end of the run instead of one by one.

## `includeDailySeries` (type: `boolean`):

Add the day-by-day list (series) to every row. Switch off for a light summary with totals, changes and flags only.

## `trendThresholdPct` (type: `integer`):

A topic is flagged rising when the last 7 days are at least this many percent above the 7 days before, falling when at least this much below, stable in between. Topics with very little traffic in the earlier week get insufficient-data instead of a flag.

## `topLanguage` (type: `string`):

Mode Top articles: Wikipedia language code (en, de, tr, fr ...). With a country you can also type all to include every language edition.

## `topCountry` (type: `string`):

Two-letter country code such as US, DE or TR to list what readers in that country read. Wikimedia publishes country data a few days later than language data and rounds the views up, so choose a date a few days back.

## `topDate` (type: `string`):

Day of the list, written 2026-11-05. Leave empty for yesterday (UTC).

## `topLimit` (type: `integer`):

How many articles to return, at most 1000. Every returned article is one result.

## `topExcludeSpecialPages` (type: `boolean`):

Leave out the Main Page, search and other non-article pages (Special:, Wikipedia:, Portal:, Help:, File:, Category: ...). The main page of some language editions has a local name and may still appear.

## Actor input object example

```json
{
  "mode": "series",
  "topics": [
    "en:Artificial intelligence",
    "en:Bitcoin",
    "en:Climate change"
  ],
  "defaultLanguage": "en",
  "days": 30,
  "sources": [
    "wikipedia"
  ],
  "gdeltMaxTopics": 10,
  "gdeltIncludeTone": false,
  "gdeltRetries": 2,
  "compare": true,
  "includeDailySeries": true,
  "trendThresholdPct": 20,
  "topLanguage": "en",
  "topLimit": 50,
  "topExcludeSpecialPages": true
}
```

# Actor output Schema

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

One row per topic with Wikipedia page views, GDELT news volume, 7 and 30 day change, the rising or falling flag and the daily series; or one row per top article

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

Counts of complete, partial and empty topics, the period, GDELT request count and the reason the run stopped

# 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": [
        "en:Artificial intelligence",
        "en:Bitcoin",
        "en:Climate change"
    ],
    "days": 30,
    "sources": [
        "wikipedia"
    ],
    "compare": true
};

// Run the Actor and wait for it to finish
const run = await client.actor("atesen-software/trend-radar-wikipedia-gdelt").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": [
        "en:Artificial intelligence",
        "en:Bitcoin",
        "en:Climate change",
    ],
    "days": 30,
    "sources": ["wikipedia"],
    "compare": True,
}

# Run the Actor and wait for it to finish
run = client.actor("atesen-software/trend-radar-wikipedia-gdelt").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": [
    "en:Artificial intelligence",
    "en:Bitcoin",
    "en:Climate change"
  ],
  "days": 30,
  "sources": [
    "wikipedia"
  ],
  "compare": true
}' |
apify call atesen-software/trend-radar-wikipedia-gdelt --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,atesen-software/trend-radar-wikipedia-gdelt"
        }
    }
}
```

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/53M0CFDGJ4wHV9223/builds/FrPiWngKKjqC1bROg/openapi.json
