# Wikipedia Pageviews Tracker - Daily Views API (`digivibetech/wikipedia-pageviews-tracker`) Actor

Official Wikimedia Analytics pageviews for any Wikipedia article or top pages. Daily day-rows, optional only-new monitor. CC0 data. $0.00027 per day-row.

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

## Pricing

$0.27 / 1,000 pageview days

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 Tracker - Daily Views API

**Wikipedia Pageviews Tracker** — official Wikimedia Analytics pageviews for any Wikipedia article or top pages.

> **Try it free:** press **Start** — the prefilled input runs a small real job (up to 20 × pageview day, about $0.005 in events). Apify's free plan includes monthly platform credit, so a first test costs you nothing. You can also set a maximum cost per run.

- **What you get:** `recordType`, `project`, `article`, `date`, `views`, `access`
- **Who it's for:** researchers, journalists, SEO and trend analysts
- **Price:** $0.00027 per pageview day
- **Data source:** Uses the official Wikimedia Analytics REST API; data is CC0.

### What is Wikipedia Pageviews Tracker?

Fetch **official Wikimedia Analytics (AQS) pageviews** for any Wikipedia (or sister-project) article, plus optional **top pages** for a project/date. One dataset row per article+date (`pageview-day`). Optional only-new monitor.

**Price:** **$0.00027** per day-row. Failures are free. No start fee.

### 📸 Real-run screenshots

From real run `cZfLs1Mneu7EavSgf` on Apify, 20 Nov 2026 (build 1.0.2). Images are rendered from that run's own input, dataset and charged events.

![Input of the real run](https://api.apify.com/v2/key-value-stores/8dx7mDMr71NbvtKdp/records/wikipedia-pageviews-tracker-std-01-input.png)
![Results table (dataset)](https://api.apify.com/v2/key-value-stores/8dx7mDMr71NbvtKdp/records/wikipedia-pageviews-tracker-std-02-results-table.png)
![One result item](https://api.apify.com/v2/key-value-stores/8dx7mDMr71NbvtKdp/records/wikipedia-pageviews-tracker-std-03-result-item.png)
![Charged events and run cost](https://api.apify.com/v2/key-value-stores/8dx7mDMr71NbvtKdp/records/wikipedia-pageviews-tracker-std-04-run-cost.png)

### ⬇️ What data you get

One dataset item per result. Key fields:

| Field |
|---|
| `recordType` |
| `project` |
| `article` |
| `date` |
| `views` |
| `access` |
| `agent` |
| `granularity` |
| `rank` |
| `sourceUrl` |
| `attribution` |
| `schemaVersion` |
| `fetchedAt` |

### 🎯 Use cases

- Track daily pageviews of articles as an interest signal
- Get top pages for a Wikipedia project
- Monitor new days only with the monitor mode

### ▶️ How to use

1. Open the actor; the input is prefilled with a small real example.
2. Replace it with your own input and set `maxRows` to control the cost.
3. Press **Start**. Results appear in the **Output** tab (Overview view).
4. Download JSON, CSV or Excel, call the results via API, or schedule the actor.

### ⚙️ Input

| Field | Meaning |
|-------|---------|
| `articles` | Titles or full `/wiki/...` URLs |
| `project` | Default project for bare titles / top pages (`en.wikipedia`) |
| `access` / `agent` / `granularity` | Wikimedia filters (defaults: all-access / all-agents / daily) |
| `start` / `end` | `YYYYMMDD` inclusive; omit both → last 7 complete UTC days |
| `topPages` / `topDate` | Optional most-viewed list for a day |
| `maxRows` | Cap billed day-rows |
| `onlyNew` / `stateKey` | Monitor mode: skip known (project,article,date) keys |

#### Example input

```json
{
  "articles": [
    "Python_(programming_language)"
  ],
  "maxRows": 20
}
```

### ⬆️ Output

Each item: `project`, `article`, `date`, `views`, `access`, `agent`, `granularity`, optional `rank`, `sourceUrl`, `attribution`, `schemaVersion=1`. In monitor mode also `status`, `changes`, `viewsDelta`.

#### Example record (real run `cZfLs1Mneu7EavSgf`, 2026-11-20)

```json
{
  "recordType": "pageview-day",
  "project": "en.wikipedia",
  "article": "Python_(programming_language)",
  "date": "2026-11-13",
  "views": 7267,
  "access": "all-access",
  "agent": "all-agents",
  "granularity": "daily",
  "rank": null,
  "sourceUrl": "https://wikimedia.org/api/rest_v1/metrics/pageviews/per-article/en.wikipedia/all-access/all-agents/Python_(programming_language)/daily/20261113/20261119",
  "attribution": "Data from Wikimedia Analytics Pageviews API (CC0 1.0). https://wikimedia.org/api/rest_v1/",
  "schemaVersion": 1,
  "fetchedAt": "2026-11-20T20:50:42.794610+00:00"
}
```

### 💵 Pricing and cost estimate

| Event | Price |
|---|---|
| Pageview day | **$0.00027** |

#### Cost estimate

| Pageview days | Cost |
|---|---|
| 100 | $0.027 |
| 1,000 | $0.27 |
| 10,000 | $2.70 |

You pay only for these events: no subscription. Set **Maximum cost per run** in the run options and the actor stops before it is reached.

### 🔌 Integrations and API

Run it from **n8n, Make, Zapier, Clay** or any tool that can call an HTTP endpoint, connect a **webhook** to get notified when a run finishes, or let AI agents call it through the **Apify MCP server** (`mcp.apify.com`).

Run it and get the results in one call:

```bash
curl -X POST "https://api.apify.com/v2/acts/digivibetech~wikipedia-pageviews-tracker/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"articles": ["Python_(programming_language)"], "maxRows": 20}'
```

Python (`pip install apify-client`):

```python
from apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("digivibetech/wikipedia-pageviews-tracker").call(run_input={"articles": ["Python_(programming_language)"], "maxRows": 20})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

### ⚠️ Limits

- Data is returned as the source publishes it; fields the source leaves empty stay empty.
- Each run stops at `maxRows` results, so the cost stays predictable.

### 🛡️ Data source, privacy and legality

Uses the official Wikimedia Analytics REST API; data is CC0.

#### Data & compliance

- Source: `https://wikimedia.org/api/rest_v1/metrics/pageviews/...`
- License: **CC0 1.0** (Wikimedia Analytics API access policy)
- Honest User-Agent with contact: `WikiPageviews/1.0 DigiVibeTech [digivibetech.com/support](https://digivibetech.com/support/) (Apify Actor)`
- ≤1 request/second; wait for each response before the next
- Aggregate views only — no unique-devices-by-country, no editor identities
- Attribution on every item

#### Attribution

Data from Wikimedia Analytics Pageviews API (CC0 1.0). https://wikimedia.org/api/rest_v1/

### ❓ FAQ

#### How much does Wikipedia Pageviews Tracker cost?

$0.00027 per pageview day. See the cost estimate table above. There is no monthly fee.

#### Can I try it for free?

Yes. Press Start with the prefilled input: it runs a small real job (up to 20 × pageview day, about $0.005 in events). Apify's free plan includes monthly platform credit, which covers a first test.

#### Is it legal to use Wikipedia Pageviews Tracker?

Uses the official Wikimedia Analytics REST API; data is CC0. Use the results lawfully (terms of the source, GDPR where it applies). This is not legal advice.

#### Can I use it through the API or an MCP server?

Yes. Every run is available through the Apify API and the official client libraries, and AI agents can call the actor through the Apify MCP server. See Integrations and API above.

#### Something does not work. Where do I get help?

Open an issue on the Issues tab or use [digivibetech.com/support](https://digivibetech.com/support/). Include the run ID so we can reproduce it.

### 📝 Changelog

#### 20 Nov 2026 — listing refresh

- README, listing text and input form restructured to the DigiVibeTech Apify quality standard v1. No feature or price change.

#### 1.0 — builds 1.0.1 to 1.0.2

- First build 2026-10-14, latest build 2026-10-22 (2 successful builds).

### 🧩 More DigiVibeTech actors

- [Website SEO & AI Search Audit (GEO/AEO)](https://apify.com/digivibetech/ai-search-citation-readiness)
- [Article Text Extractor - News & Blog Content, Date, Image](https://apify.com/digivibetech/article-extractor-news-blog)
- [Broken Link & Image Checker - Sitemap or Crawl](https://apify.com/digivibetech/broken-link-image-checker)
- [Bulk WHOIS & DNS Lookup - Domain Expiry, RDAP, SPF, DMARC](https://apify.com/digivibetech/domain-whois-rdap-dns)

*Maintained by DigiVibeTech. Questions or bugs: use the Issues tab or [digivibetech.com/support](https://digivibetech.com/support/); we reply within 2–5 business days.*

# Changelog

This Actor's version history is a separate document: https://apify.com/digivibetech/wikipedia-pageviews-tracker/changelog.md

# Actor input Schema

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

Article titles (e.g. Python\_(programming_language)) or full Wikipedia URLs. Spaces become underscores for the API.

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

Used for bare titles and for topPages. Example: en.wikipedia, de.wikipedia.

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

Wikimedia access filter.

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

User vs spider filter for per-article requests (top pages ignore this).

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

daily (one row per day) or monthly.

## `start` (type: `string`):

Inclusive. Omit start+end together to use the last 7 complete UTC days.

## `end` (type: `string`):

Inclusive. Omit start+end together to use the last 7 complete UTC days.

## `topPages` (type: `boolean`):

Fetch the most-viewed articles for project+access on topDate (or end).

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

Defaults to end when topPages is enabled.

## `maxRows` (type: `integer`):

Charged only for saved pageview-day rows.

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

Skip (project, article, date) keys already returned in earlier runs with the same state key. Adds status/changes/viewsDelta.

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

Separate monitors by using different keys.

## Actor input object example

```json
{
  "articles": [
    "Python_(programming_language)"
  ],
  "project": "en.wikipedia",
  "access": "all-access",
  "agent": "all-agents",
  "granularity": "daily",
  "topPages": false,
  "maxRows": 20,
  "onlyNew": false,
  "stateKey": "default"
}
```

# Actor output Schema

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

All result items (overview view)

## `errors` (type: `string`):

Inputs that could not be processed, with the reason

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

Counts of processed, billed and failed items

# 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": [
        "Python_(programming_language)"
    ],
    "maxRows": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("digivibetech/wikipedia-pageviews-tracker").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": ["Python_(programming_language)"],
    "maxRows": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("digivibetech/wikipedia-pageviews-tracker").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": [
    "Python_(programming_language)"
  ],
  "maxRows": 20
}' |
apify call digivibetech/wikipedia-pageviews-tracker --silent --output-dataset

```

## MCP server setup

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

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/xBNKWbglY5GVcxUIz/builds/PcLZRmcQSpt87keWr/openapi.json
