# Wikipedia Pageviews: Topic Interest & Trend Tracker (`precious_bathmat/wikipedia-pageviews`) Actor

Get Wikipedia pageviews for any article or topic, daily or monthly since 2015: total views, peak day, trend, last 7 and 30 days vs before, spike days and other languages. Plus the most-viewed articles of any day. A free Google Trends alternative with real numbers.

- **URL**: https://apify.com/precious_bathmat/wikipedia-pageviews.md
- **Developed by:** [Mariam Ahmed](https://apify.com/precious_bathmat) (community)
- **Categories:** SEO tools, Marketing
- **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 articles

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: Topic Interest & Trend Tracker

Get **Wikipedia pageviews** for any article or topic, **daily or monthly since July 2015**, from Wikimedia's official API, with no login and no API key. It works like a free **Google Trends alternative with real numbers**, not a 0–100 index:

- **Every article**: total views, daily or monthly average, **peak day**, **last 7 and 30 days vs the period before**, half-over-half **trend**, **spike days** (3x normal or more), year-over-year change (monthly), the full **daily or monthly series**
- **Compare languages**: the same article in other Wikipedias (German, Spanish, Japanese ...) through Wikipedia's own language links, and the share of the main language
- **Smart titles**: plain topics ("grok chatbot") take Wikipedia's best match, and redirects are followed ("Claude (language model)" → "Claude (AI)")
- **Most viewed**: Wikipedia's top articles for any day, in any language, without the main page and special pages
- **Sheets**: `SERIES_CSV` (date × article, ready for a chart) and `ARTICLES_CSV` (one row per article)

### What does this Wikipedia pageviews tool do?

```
English Wikipedia · people only · 3 Aug – 31 Oct 2026
 ChatGPT          5.87M views · last 30 days +35% · spike 26 Oct (3.2x)
 Claude (AI)      486K views  · last 30 days +19% · trend +25%
 Google Gemini    248K views  · last 30 days +5%
 DeepSeek         245K views  · last 30 days +14%
 Grok (chatbot)   159K views  · last 30 days −11%
```

1. Enter **articles or topics** (titles, topics or Wikipedia links).
2. Pick the **dates**, **daily or monthly**, and any **languages** to compare.
3. You get **one row per article** with its numbers and series, plus CSV sheets. Add **dates** to also get each day's **most-viewed articles**.

```mermaid
flowchart LR
    A[Articles,<br/>topics, links] --> B[Wikipedia API<br/>titles, redirects,<br/>languages]
    B --> C[Wikimedia<br/>Pageviews API]
    C --> D[Per article<br/>totals, peak,<br/>trend, spikes]
    C --> E[SERIES_CSV<br/>date × article]
    F[Dates] --> G[Most viewed<br/>that day]
```

### Who is it for?

- **Marketers and SEO teams**: compare interest in brands, products and topics with absolute numbers
- **Analysts and investors**: track public interest in companies, coins and technologies over years
- **Journalists and researchers**: find the day interest in a person or event spiked, and how long it lasted
- **Content creators**: spot rising topics and check what people read today
- **Data teams**: clean, gap-free daily series for models and dashboards

### What data do you get?

**Articles** (dataset, one row per article)

| Field | What it tells you |
|---|---|
| `input`, `language`, `title`, `url`, `description`, `matchedBySearch` | The article found for your input |
| `from`, `to`, `granularity` | The period |
| `totalViews`, `average`, `peakDate`, `peakViews` | Overall interest |
| `last7DaysViews`, `changeVsPrevious7DaysPercent`, `last30DaysViews`, `changeVsPrevious30DaysPercent` | Recent momentum (daily) |
| `changeLastFullMonthVsYearBeforePercent` | Year over year (monthly) |
| `trendPercent` | Second half of the period vs the first half |
| `spikes` | Days with 3x the usual views or more |
| `otherLanguages`, `allLanguagesTotalViews`, `shareInMainLanguagePercent`, `languagesAvailable` | Interest in other languages |
| `series` | Every day's or month's views |

**Most viewed** (dataset rows with `type: "top"`): `date`, `language`, `rank`, `wikipediaRank`, `title`, `views`, `url`.

### Example: 3 August to 31 October 2026

AI assistants on English Wikipedia, people only, compared with German, Spanish and Japanese (5 articles in 6 seconds):

| Article | Views | Last 30 days vs before | Peak day | Share in English |
|---|---|---|---|---|
| ChatGPT | 5,873,998 | +35% | 29 Oct (197,747) | 79% |
| Claude (AI) | 485,813 | +19% | 27 Oct (11,639) | 74% |
| Google Gemini | 248,321 | +5% | 11 Sep (5,986) | 77% |
| DeepSeek | 244,519 | +14% | 20 Oct (4,729) | 85% |
| Grok (chatbot) | 158,794 | −11% | 10 Sep (2,661) | 80% |

Monthly since 2016: **Bitcoin** peaked in December 2017 (4.87M views that month), and its last full month was 17% below the year before. **Taylor Swift** peaked in February 2024 (4.36M).

### Pricing

Pay per event:

| Event | Price |
|---|---|
| Article (with its series and languages) | $0.002 |
| Most-viewed article row | $0.0005 |

100 articles cost **$0.20**; a day's top 100 costs **$0.05**. Platform usage is tiny: each run above used well under $0.01 of compute.

### Good to know

- **Data starts on 1 July 2015** and each day is ready about a day later, so the period ends yesterday at the latest. The default period is the last 90 days.
- **People only** (default) leaves out crawlers and bots; choose "People and bots" for Wikimedia's full count.
- **Titles** are matched as Wikipedia spells them and redirects are followed. Topics that are not titles take Wikipedia's best search match, marked `matchedBySearch: true`; check the `title` it found.
- **Spike days** have at least 3 times the median of the 30 days before and 1,000+ views.
- **Other languages** use the article Wikipedia links to in that language; when there is none, `title` is empty and views are 0.
- **Most-viewed lists** leave out the main page and special or project pages; `rank` is the position after that.

### Input

| Field | Default | What it does |
|---|---|---|
| `articles` | – | Titles, topics, links or `fr:Paris` style entries |
| `language` | `en` | Wikipedia to read |
| `otherLanguages` | – | Also count the same article in these Wikipedias |
| `dateFrom`, `dateTo` | last 90 days | Period (from 2015-07-01) |
| `granularity` | `daily` | `daily` or `monthly` |
| `agent` | `user` | `user`, `all-agents` or `automated` |
| `access` | `all-access` | `all-access`, `desktop`, `mobile-web`, `mobile-app` |
| `topDates` | – | Days for the most-viewed lists (`yesterday` or `2026-10-31`) |
| `topLimit` | `100` | Articles per most-viewed list |
| `includeSeries` | `true` | Daily or monthly series and SERIES_CSV |

```json
{
  "articles": ["Bitcoin", "Ethereum", "Solana (blockchain platform)"],
  "otherLanguages": ["de", "ja"],
  "granularity": "monthly",
  "dateFrom": "2020-01-01"
}
```

### Integrations

Schedule it daily or weekly to track **topic interest** in **Google Sheets**, **Looker Studio** or **Slack**, or call it from **Make**, **Zapier**, **n8n** or the **Apify API**. `SERIES_CSV` opens directly in any spreadsheet as a chart-ready table.

### Related tools

Other tools from the same publisher that pair well with this one:

- [Patent Landscape Tracker: Who Is Patenting What](https://apify.com/precious_bathmat/patent-landscape-tracker)
- [Spanish Case Law Search: CENDOJ Rulings & Jurisprudencia](https://apify.com/precious_bathmat/cendoj-case-law-search)
- [Google News Monitor: Real Article Links & Top Stories](https://apify.com/precious_bathmat/google-news-scraper)
- [News & Blog Article to Text: Author, Date & Markdown](https://apify.com/precious_bathmat/article-extractor)

# Actor input Schema

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

Article titles, topics or Wikipedia links, one per line: "ChatGPT", "Taylor Swift", "https://de.wikipedia.org/wiki/Bitcoin", "fr:Paris". Topics that are not exact titles take Wikipedia's best search match.

## `language` (type: `string`):

Language code of the Wikipedia to read: en, de, fr, es, ja, ru, it, pt, zh ...

## `otherLanguages` (type: `array`):

Optional: also count the same article in these Wikipedias, e.g. "de", "es", "fr", "ja" (found through Wikipedia's own language links).

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

Start date (default: 90 days ago). Data starts on 2015-07-01.

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

End date (default and latest: yesterday).

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

Daily views (with spike days) or monthly totals (good for years of data).

## `agent` (type: `string`):

People only leaves out crawlers and bots.

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

Count views from all devices or one.

## `topDates` (type: `array`):

Optional: Wikipedia's most-viewed articles for these days, e.g. "yesterday", "2026-10-31" (for the main language and each compare language).

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

How many of the day's most-viewed articles to save (1 to 1,000).

## `includeSeries` (type: `boolean`):

Include every day's (or month's) views in each row and a date × article sheet (SERIES_CSV).

## Actor input object example

```json
{
  "articles": [
    "ChatGPT",
    "Claude (language model)",
    "Gemini (chatbot)"
  ],
  "language": "en",
  "granularity": "daily",
  "agent": "user",
  "access": "all-access",
  "topLimit": 100,
  "includeSeries": true
}
```

# Actor output Schema

## `articles` (type: `string`):

One row per article: total views, average, peak, last 7 and 30 days vs before, trend, spike days, other languages, series.

## `top` (type: `string`):

Wikipedia's most-viewed articles for each day asked.

## `series` (type: `string`):

Date × article views, one column per article, ready for a chart.

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

Period, problems and the limits of the data.

# 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 = {
    "articles": [
        "ChatGPT",
        "Claude (language model)",
        "Gemini (chatbot)"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("precious_bathmat/wikipedia-pageviews").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 = { "articles": [
        "ChatGPT",
        "Claude (language model)",
        "Gemini (chatbot)",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("precious_bathmat/wikipedia-pageviews").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 '{
  "articles": [
    "ChatGPT",
    "Claude (language model)",
    "Gemini (chatbot)"
  ]
}' |
apify call precious_bathmat/wikipedia-pageviews --silent --output-dataset

```

## MCP server setup

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

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/qyAjn4YAHWXJ5XdLZ/builds/MAu0tZxaZH0dk9aPU/openapi.json
