# Wikipedia Pageviews Trends: Google Trends alternative (`ucchiii/wikipedia-pageviews-trends`) Actor

Track attention on any topic via Wikipedia pageviews (input: article names or URLs; official API, no key). Daily or monthly series, or one summary row per topic with 7-day change. Empty input = free demo. $0.67 per 1,000 rows.

- **URL**: https://apify.com/ucchiii/wikipedia-pageviews-trends.md
- **Developed by:** [Actor Factory](https://apify.com/ucchiii) (community)
- **Categories:** SEO tools, AI, Other
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.47 / 1,000 output rows

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

## Wikipedia Pageviews Trends — a Google Trends alternative

See **how much attention a topic gets over time**, using Wikipedia pageviews. Wikipedia traffic is a solid,
open proxy for public interest — use it for trend research, content planning, brand and news monitoring,
or as a signal in AI and analytics pipelines. No API key, no login, no scraping.

- **Google Trends alternative** that returns real view counts (not a 0-100 index)
- Any language edition: `en.wikipedia`, `ja.wikipedia`, `de.wikipedia`, ...
- Give **article names or Wikipedia URLs** (the URL sets the language for you)
- **Daily or monthly** data, any date range (default: last 90 days)
- Human traffic only (bots excluded: `agent=user`), all access types (desktop + mobile)
- Two output modes: full **series** or one **summary** row per topic
- **$0.67 per 1,000 rows** (an empty input runs a free demo)

### Use cases

- Compare public interest in brands, products or people-free topics over time
- Spot rising topics for content planning and newsletters
- Back-test news or event impact on attention
- Add an open, free-to-use interest signal to market research

### Input

```json
{ "topics": ["ChatGPT", "https://en.wikipedia.org/wiki/Taylor_Swift"], "project": "en.wikipedia",
  "granularity": "daily", "startDate": "2026-07-01", "endDate": "2026-09-30", "outputMode": "series" }
```

`startDate` / `endDate` use `YYYY-MM-DD`. Days or months with no views are filled with `0`, so each topic
is one continuous series. For monthly data the start date is rounded to the first of its month. The range is limited to the data Wikimedia has: from 2015-07-01 up to yesterday (UTC); an end date in the future is cut to yesterday, so no empty future rows are output or charged.

### Output

Series mode (one row per topic per day/month):

```json
{ "topic": "ChatGPT", "article": "ChatGPT", "project": "en.wikipedia", "date": "2026-09-30", "views": 41873 }
```

Summary mode (one row per topic):

```json
{ "topic": "ChatGPT", "article": "ChatGPT", "project": "en.wikipedia", "totalViews": 3810422, "avgDaily": 42338.0,
  "peakDate": "2026-08-12", "peakViews": 95120, "last7Days": 301220, "prev7Days": 288004, "change7dPct": 4.6,
  "firstDate": "2026-07-01", "lastDate": "2026-09-30" }
```

The 7-day fields are only filled for daily data with at least 14 days (`prev7Days` / `change7dPct` need 14 days;
`change7dPct` is empty when the previous week had 0 views). Articles that do not exist, have no data, or fail to load
are not output (and not charged); they are listed in the `SUMMARY` record of the key-value store.

### Data source

Official [Wikimedia Pageviews REST API](https://wikimedia.org/api/rest_v1/). The pageview data is published
by the Wikimedia Foundation under **CC0**. This Actor identifies itself with a contact User-Agent and keeps request
volume low (2 in parallel, 0.2 s apart), as the Wikimedia API policy requires. Not affiliated with the Wikimedia Foundation.
Pageviews reflect Wikipedia reading, not all web search interest.

### More tools from the same developer

- [SERP Keyword Clustering](https://apify.com/ucchiii/serp-keyword-clustering) — group keywords by shared search results
- [SERP Analyzer](https://apify.com/ucchiii/serp-dataset-analyzer) — rankings, share of voice and People Also Ask from Google Search scraper datasets
- [Google Sheets Export](https://apify.com/ucchiii/google-sheets-export) — export an Apify dataset to Google Sheets
- [RSS Feed Reader & Aggregator](https://apify.com/ucchiii/rss-feed-reader) — many RSS / Atom feeds merged into one clean article list

# Actor input Schema

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

Wikipedia article names (e.g. ChatGPT) or article URLs (e.g. https://en.wikipedia.org/wiki/Taylor_Swift). A URL sets the language/project itself. Leave empty for a free demo.

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

Project used for plain article names, e.g. en.wikipedia, ja.wikipedia, de.wikipedia. Ignored for topics given as URLs.

## `granularity` (type: `string`):

'daily' (default) or 'monthly': one data point per day or per month.

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

First date, YYYY-MM-DD. Default: 90 days before the end date.

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

Last date, YYYY-MM-DD. Default: yesterday (UTC).

## `outputMode` (type: `string`):

'series' (default): full time series, one row per topic per day/month. 'summary': one row per topic with totals, average, peak, and the last 7 days vs the 7 days before.

## Actor input object example

```json
{
  "topics": [
    "ChatGPT",
    "https://en.wikipedia.org/wiki/Taylor_Swift"
  ],
  "project": "en.wikipedia",
  "granularity": "daily",
  "outputMode": "series"
}
```

# Actor output Schema

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

Series mode: one row per topic and day/month (date, views). Summary mode: one row per topic (totalViews, avgDaily, peakDate, last7Days, prev7Days, change7dPct).

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

Record SUMMARY: per-topic status (not found, errors).

# 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": [
        "ChatGPT",
        "https://en.wikipedia.org/wiki/Taylor_Swift"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("ucchiii/wikipedia-pageviews-trends").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": [
        "ChatGPT",
        "https://en.wikipedia.org/wiki/Taylor_Swift",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("ucchiii/wikipedia-pageviews-trends").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": [
    "ChatGPT",
    "https://en.wikipedia.org/wiki/Taylor_Swift"
  ]
}' |
apify call ucchiii/wikipedia-pageviews-trends --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,ucchiii/wikipedia-pageviews-trends"
        }
    }
}
```

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/hfXuaPoUvT19PujgW/builds/wMIfZuN0gop6gzfIL/openapi.json
