# Trend Signals: Google Trends Alternative (Wikipedia Views) (`kempt_horizon_yzk/trend-signals`) Actor

Reliable trend data without Google Trends blocks: daily Wikipedia pageviews for any keyword or article (official Wikimedia API), % change, spike detection and alerts, plus Google trending searches by country. $0.001 per keyword series, $0.0005 per trending item.

- **URL**: https://apify.com/kempt_horizon_yzk/trend-signals.md
- **Developed by:** [Kempt Horizon Data](https://apify.com/kempt_horizon_yzk) (community)
- **Categories:** SEO tools, News, AI
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

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

## Trend Signals: A Reliable Google Trends Alternative (Wikipedia Pageviews + Trending Searches)

Google Trends scrapers break all the time: rate limits, 429 errors, CAPTCHAs and relative 0–100 numbers. **Trend Signals** gives you **real daily interest numbers that don't get blocked**: **Wikipedia pageviews** for any keyword or article (the official Wikimedia REST API, data back to 2015, 300+ languages), with **% change, spike detection and spike alerts**, plus **Google's trending searches by country** from the public trending RSS feed. Schedule it daily and get alerted when interest in your topic, brand, ticker or competitor jumps.

### For AI agents (MCP / API) quick reference

- **Use when:** you need a daily public-interest time series for a topic, company, person or product; you want to detect spikes in attention; or you want today's trending searches in a country.
- **Don't use for:** exact Google search volumes or Google Trends 0–100 index values. Pageviews are a proxy for interest, not search counts.
- **Minimal input:** `{"keywords": ["nvidia"], "days": 30}` or `{"countries": ["US"], "maxTrendingPerCountry": 10}`.
- **Output:** items by `type`:
  - `keyword-series`: `keyword`, `article`, `days[]` (`date`, `views`, `zScore`, `spike`), `totalViews`, `avgDailyViews`, `latestViews`, `changePercent7d`, `changePercentFirstToLast`, `spikeDays`, `latestIsSpike`
  - `trending-item`: `term`, `country`, `approxTraffic`, `startedAt`, `news[]`
  - `spike-alert`: `keyword`, `article`, `date`, `views`, `zScore`, `reason`
- **Price:** **$0.001 per keyword series**, **$0.0005 per trending item**, **$0.005 per spike alert**. No start fee. Pay per event only, limited permissions, so agentic payments (x402, Skyfire, Apify AGI token) work.
- **MCP:** add `https://mcp.apify.com?tools=kempt_horizon_yzk/trend-signals` to your MCP client.

### What can it do?

- ✅ **Daily pageviews** for keywords (auto-matched to the best Wikipedia article) or exact article titles, in any Wikipedia language
- ✅ **Any date range** from July 2015 to yesterday
- ✅ **% change** over the last 7 days vs the 7 before, and first-to-last
- ✅ **Spike detection** per day (z-score vs the previous 28 days plus a ratio-to-median check), with tunable thresholds
- ✅ **Spike alerts** for the latest day; monitor mode alerts each spike once
- ✅ **Trending searches** by country, with approximate search traffic and related news links, and an option for only new terms

### Who uses it?

Marketers and content teams spotting rising topics, traders watching attention on tickers and crypto, PR teams tracking brand spikes, researchers and journalists, and AI agents that need a dependable trend signal.

### How much does it cost?

| Event | Price |
|---|---|
| Keyword series | **$0.001** |
| Trending item | **$0.0005** |
| Spike alert | **$0.005** |

A daily watch on 50 keywords plus 20 US trending terms costs about $0.06 a day.

### Input example

```json
{
  "keywords": ["nvidia", "bitcoin", "ozempic"],
  "articles": ["Taylor_Swift"],
  "wikiLanguage": "en",
  "days": 90,
  "countries": ["US", "GB"],
  "maxTrendingPerCountry": 10,
  "alertOnSpikes": true,
  "onlyNew": true,
  "onlyNewTrending": true,
  "stateKey": "daily-trend-watch"
}
```

### Output example

```json
[
  {
    "type": "keyword-series",
    "keyword": "nvidia",
    "article": "Nvidia",
    "project": "en.wikipedia.org",
    "articleUrl": "https://en.wikipedia.org/wiki/Nvidia",
    "dateFrom": "2026-09-15",
    "dateTo": "2026-10-14",
    "days": [
      {
        "date": "2026-10-12",
        "views": 4968,
        "zScore": -0.7,
        "spike": false
      },
      {
        "date": "2026-10-13",
        "views": 5153,
        "zScore": -0.5,
        "spike": false
      },
      {
        "date": "2026-10-14",
        "views": 5297,
        "zScore": -0.3,
        "spike": false
      }
    ],
    "totalViews": 166222,
    "avgDailyViews": 5541,
    "latestViews": 5297,
    "changePercentFirstToLast": -20.5,
    "changePercent7d": 5.2,
    "spikeDays": [],
    "latestIsSpike": false,
    "scrapedAt": "2026-10-15T14:10:29.676Z"
  },
  {
    "type": "trending-item",
    "term": "nasdaq",
    "country": "US",
    "approxTraffic": "2000+",
    "approxTrafficNumber": 2000,
    "startedAt": "2026-10-15T13:50:00.000Z",
    "news": [
      {
        "title": "Global tech sell-off deepens as enthusiasm for AI stocks wobbles",
        "url": "https://www.cnn.com/2026/10/15/business/tech-selloff-nasdaq-ai-intl",
        "source": "CNN"
      }
    ],
    "source": "Google Trends trending searches RSS",
    "scrapedAt": "2026-10-15T14:10:29.998Z"
  }
]
```

### Data sources

- **Wikimedia REST API** (pageviews, user agents only, all platforms). Wikimedia data is free to reuse; requests carry an identifying User-Agent as Wikimedia asks.
- **Google Trends trending searches RSS** (trends.google.com/trending/rss, allowed by robots.txt). The Actor does not touch Google Trends Explore pages, which robots.txt disallows.

### FAQ

**Why Wikipedia pageviews?** They are published officially every day, give absolute numbers, cover every language, and never block you. They track public interest closely.

**Why is today missing?** Wikimedia publishes each day's pageviews the next day.

Built and maintained by **Kempt Horizon Data**. Found a bug or need a field? Open an issue on the Actor's Issues tab and we usually reply within a day. Not affiliated with Google or the Wikimedia Foundation.

# Actor input Schema

## `keywords` (type: `array`):

Each keyword is matched to its best Wikipedia article (shown in the output as article).

## `articles` (type: `array`):

Optional exact titles, e.g. Taylor_Swift or Bitcoin. Redirects are followed.

## `wikiLanguage` (type: `string`):

Language edition code: en, de, fr, es, ja, pt, ...

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

Used when no date range is set. The series ends yesterday (pageviews publish daily). Data starts July 2015.

## `dateFrom` (type: `string`):

Optional.

## `dateTo` (type: `string`):

Optional. Defaults to yesterday.

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

Optional two-letter country codes for Google's trending searches feed, e.g. US, GB, DE, IN, BR.

## `maxTrendingPerCountry` (type: `integer`):

Trending items to save (and pay for) per country.

## `alertOnSpikes` (type: `boolean`):

Adds a spike-alert item when the latest day is a spike.

## `spikeZ` (type: `number`):

A day is a spike when views exceed the previous 28-day mean by this many standard deviations...

## `spikeRatio` (type: `number`):

...and are at least this multiple of the previous 28-day median.

## `spikeMinViews` (type: `integer`):

Ignore spikes on articles below this many daily views.

## `onlyNew` (type: `boolean`):

Remembers alerts already sent in a key-value store, so a daily schedule alerts each spike once.

## `onlyNewTrending` (type: `boolean`):

Skip trending terms already returned by an earlier run.

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

Optional name for the monitor memory.

## Actor input object example

```json
{
  "keywords": [
    "nvidia",
    "ChatGPT"
  ],
  "wikiLanguage": "en",
  "days": 60,
  "countries": [
    "US"
  ],
  "maxTrendingPerCountry": 5,
  "alertOnSpikes": true,
  "spikeZ": 3,
  "spikeRatio": 2,
  "spikeMinViews": 100,
  "onlyNew": false,
  "onlyNewTrending": false
}
```

# Actor output Schema

## `signals` (type: `string`):

No description

## `all` (type: `string`):

No description

## `summary` (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 = {
    "keywords": [
        "nvidia",
        "ChatGPT"
    ],
    "countries": [
        "US"
    ],
    "maxTrendingPerCountry": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("kempt_horizon_yzk/trend-signals").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 = {
    "keywords": [
        "nvidia",
        "ChatGPT",
    ],
    "countries": ["US"],
    "maxTrendingPerCountry": 5,
}

# Run the Actor and wait for it to finish
run = client.actor("kempt_horizon_yzk/trend-signals").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 '{
  "keywords": [
    "nvidia",
    "ChatGPT"
  ],
  "countries": [
    "US"
  ],
  "maxTrendingPerCountry": 5
}' |
apify call kempt_horizon_yzk/trend-signals --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,kempt_horizon_yzk/trend-signals"
        }
    }
}
```

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/qdnSnee2AYH4m0Vhf/builds/taaAfMM3aGsw8LpFK/openapi.json
