# Wikipedia Trending: Top Viewed Articles per Day & Language (`smilemask/wikipedia-trending-articles`) Actor

Get the daily top viewed Wikipedia articles for any language edition and date (from the official Wikimedia pageviews API). Returns rank, article title, views and link. Perfect for trend research, content ideas and news monitoring. Free official data, no key needed.

- **URL**: https://apify.com/smilemask/wikipedia-trending-articles.md
- **Developed by:** [돈벼락](https://apify.com/smilemask) (community)
- **Categories:** Developer tools, News
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 results

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 Trending: Top Viewed Articles per Day & Language

Get the daily top viewed Wikipedia articles for any language edition and date (from the official Wikimedia pageviews API). Returns rank, article title, views and link. Perfect for trend research, content ideas and news monitoring. Free official data, no key needed.

### What does Wikipedia Trending do?

The most viewed Wikipedia articles of any day in any language: rank, views and links.

### What can you use it for?

- Spot trending topics for content and SEO ideas.
- Track what people search for in Korean, Japanese, English and 300+ languages.
- Build daily trend reports with a scheduled run.
- Enrich news monitoring with reader-interest signals.

### Why use this Actor?

- **Fast and cheap:** lightweight HTTP-based Actor with no browser, so runs finish in seconds and cost very little.
- **No API keys or accounts needed** for the data source (see notes below).
- **Clean, structured JSON** that you can export as CSV, Excel, JSON or XML, or pull through the Apify API and integrations.
- **Scheduling, webhooks and integrations:** run it daily and send results to Google Sheets, Slack, Zapier, Make, n8n or your own API.

### Input

Configure the run in the **Input** tab (all fields have sensible defaults).

| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| `language` | string | no | `"en"` | Language code: en, ko, ja, de, fr, es ... |
| `date` | string | no | - | YYYY-MM-DD. Empty = two days ago. |
| `excludeSpecialPages` | boolean | no | `true` | Remove Main Page and Special:/Wikipedia:/Portal:/Help:/File:/Category:/Template: pages. |
| `maxResults` | integer | no | `50` | How many top articles to return (up to 1000). |

#### Example input

```json
{
  "language": "en",
  "maxResults": 50
}
```

### Output

Results are stored in the default dataset. Download them from the **Output** tab or via the API.

#### Example result

```json
{
  "rank": 4,
  "article": "Lizzie Borden",
  "views": 586575,
  "date": "2026-09-23",
  "language": "en",
  "url": "https://en.wikipedia.org/wiki/Lizzie_Borden",
  "license": "Wikipedia content is CC BY-SA 4.0; pageview statistics come from the Wikimedia Foundation.",
  "scrapedAt": "2026-09-25T07:25:48.245Z"
}
```

#### Output fields

| Field | Type | Example |
|---|---|---|
| `rank` | number | 4 |
| `article` | string | "Lizzie Borden" |
| `views` | number | 586575 |
| `date` | string | "2026-09-23" |
| `language` | string | "en" |
| `url` | string | "https://en.wikipedia.org/wiki/Lizzie\_Borden" |
| `license` | string | "Wikipedia content is CC BY-SA 4.0; pageview statistics c... |
| `scrapedAt` | string | "2026-09-25T07:25:48.245Z" |

### How much does it cost?

The Actor is billed by Apify according to the pricing shown on the **Pricing** tab of this page. Runs are small and fast, and the Apify Free plan includes monthly platform credits so you can try it at no cost. You can set a maximum cost per run, and the Actor stops cleanly when that limit is reached.

### Notes and limitations

- Data: Wikimedia Pageviews API (human traffic, all platforms). Leave the date empty for two days ago (the latest fully published day).
- Special pages (Main Page, Special:, Wikipedia:, ...) are removed by default.

### Tips

- Start with a small test run, then scale up the input.
- Use **Schedules** to automate recurring runs and **Webhooks** or **Integrations** to deliver the data where you need it.
- Call the Actor from your code with the Apify API or the official JavaScript and Python clients.

### FAQ

**Which languages work?**

Any Wikipedia language code such as en, ko, ja, de, fr, es.

### Feedback

Found a bug or need an extra field? Open an issue from the **Issues** tab of this Actor and it will be looked at quickly.

### More tools from the same author

- [Wikipedia Page Extractor: Text, Categories & Pageviews](https://apify.com/SmileMask/wikipedia-page-extractor) - Extract Wikipedia articles in any language: summary, full text, categories, images, Wikidata ID, pageviews.
- [Hacker News Scraper: Search, Front Page, Threads & Comments](https://apify.com/SmileMask/hacker-news-scraper) - Search Hacker News, list the front page / Ask / Show / Jobs, and export full comment threads.
- [RSS & Atom Feed Reader: Parse Any Feed into Clean JSON](https://apify.com/SmileMask/rss-atom-feed-reader) - Turn any RSS, Atom or JSON feed (or a page that advertises one) into clean, filterable JSON.

# Changelog

This Actor's version history is a separate document: https://apify.com/smilemask/wikipedia-trending-articles/changelog.md

# Actor input Schema

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

Language code: en, ko, ja, de, fr, es ...

## `date` (type: `string`):

YYYY-MM-DD. Empty = two days ago.

## `excludeSpecialPages` (type: `boolean`):

Remove Main Page and Special:/Wikipedia:/Portal:/Help:/File:/Category:/Template: pages.

## `maxResults` (type: `integer`):

How many top articles to return (up to 1000).

## Actor input object example

```json
{
  "language": "en",
  "excludeSpecialPages": true,
  "maxResults": 50
}
```

# Actor output Schema

## `results` (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 = {
    "language": "en",
    "maxResults": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("smilemask/wikipedia-trending-articles").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 = {
    "language": "en",
    "maxResults": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("smilemask/wikipedia-trending-articles").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 '{
  "language": "en",
  "maxResults": 50
}' |
apify call smilemask/wikipedia-trending-articles --silent --output-dataset

```

## MCP server setup

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

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/JQ0JIOGDfXrybH5LD/builds/3nv8JJg2Wf1SebxNa/openapi.json
