Wikipedia Views

The Wikipedia Views dataset provides daily Wikipedia page view counts for equities, along with rolling 30-day statistics (mean, standard deviation, and z-score) measuring how unusual current attention is relative to the recent baseline.

This is designed for research and production workflows that incorporate retail attention as a feature โ€” whether as a standalone signal, a regime filter, or an input to event-driven and cross-sectional models.

Why it's useful

Use this dataset to:

  • Build attention-based factors that capture shifts in investor interest before they show up in price or volume

  • Detect anomaly days where ticker-level attention deviates sharply from its 30-day baseline (high z-score events)

  • Filter or contextualize event-driven setups (earnings, news, filings) by the level of public attention surrounding them

  • Backtest strategies conditioned on attention regimes (e.g., "only trade names with zscore_30d > 2")

Endpoint
GET /v1/wikipedia-views

Pro tier required. This endpoint is not available on Free / Trial accounts. Requests authenticated under a non-Pro tier will return a 403 PRO_TIER_REQUIRED error.

Sample Request

Python

import requests

url = "https://api.alphanume.com/v1/wikipedia-views"
params = {
    "ticker": "AAPL",
    "date": "2026-02-06",
    "api_key": "alp_abc123"
}

r = requests.get(url, params=params)
print(r.json())

cURL

curl "https://api.alphanume.com/v1/wikipedia-views?ticker=AAPL&date=2026-02-06&api_key=alp_abc123"
Request Parameters

api_key (required): Your API key. This endpoint requires Pro-tier authentication.

ticker (optional): Equity ticker filter (case-insensitive, exact match). If omitted, data across all tickers are returned.

date (optional): Observation date filter (YYYY-MM-DD). Cannot be combined with date range parameters.

If no filters are provided, the endpoint returns the full dataset ordered by date descending. Use cursor pagination to walk back through history.

Date Filtering

All dates must be provided in YYYY-MM-DD format.

Supported parameters:

  • date_gte

  • date_lte

  • date_gt

  • date_lt

Any logically valid combination is accepted.

Z-Score Filtering

The zscore_30d field can be filtered to isolate attention anomalies. All values are floats.

Supported parameters:

  • zscore_30d_gte

  • zscore_30d_lte

  • zscore_30d_gt

  • zscore_30d_lt

  • zscore_30d_eq

zscore_30d_eq cannot be combined with z-score range parameters. Any logically valid combination of the range parameters is accepted.

Common use cases:

  • zscore_30d_gte=2 โ€” surface days with abnormally high attention

  • zscore_30d_lte=-2 โ€” surface days with abnormally low attention

  • zscore_30d_gte=2&date=2026-02-06 โ€” find every ticker with anomalous attention on a given date

Response Fields


Field

Type

Description

ticker

string

Equity ticker symbol

name

string

Wikipedia page name associated with the ticker

date

string

Observation date (YYYY-MM-DD)

views

float

Wikipedia page views on the observation date

avg_30d

float

Trailing 30-day mean of daily views

std_30d

float

Trailing 30-day standard deviation of daily views

zscore_30d

float

Z-score of views relative to the trailing 30-day distribution

Example Response
{
  "count": 1,
  "has_more": false,
  "next_cursor": null,
  "data": [
    {
      "ticker": "AAPL",
      "name": "Apple Inc.",
      "date": "2026-02-06",
      "views": 48213,
      "avg_30d": 21847.3,
      "std_30d": 6412.8,
      "zscore_30d": 4.11
    }
  ]
}

Pagination

The Wikipedia Views endpoint uses cursor-based pagination for efficient retrieval of large result sets.

Results are ordered deterministically:

ORDER BY date DESC, ticker ASC

This ensures stable, repeatable pagination across requests.

How Pagination Works

Each response includes:

  • count โ€” number of rows returned in this page

  • has_more โ€” whether additional data is available

  • next_cursor โ€” cursor object to retrieve the next page

If has_more = true, use the next_cursor values in your next request.

Cursor Parameters

When paginating, you must provide both:

  • cursor_date

  • cursor_ticker

These must match the next_cursor object from the previous response.

Example:

Input

requests.get("https://api.alphanume.com/v1/wikipedia-views?ticker=AAPL&api_key=alp_abc123")

Output

{
  "count": 50000,
  "has_more": true,
  "next_cursor": {
    "date": "2022-04-12",
    "ticker": "AAPL"
  }
}

Next request:

params = {
    "ticker": "AAPL",
    "cursor_date": "2022-04-12",
    "cursor_ticker": "AAPL"
}

requests.get("https://api.alphanume.com/v1/wikipedia-views?ticker=AAPL&cursor_date=2022-04-12&cursor_ticker=AAPL&api_key=alp_abc123")

If only one cursor field is provided, the request will return a 400 error.

Full Python Pagination Example

import requests

base_url = "https://api.alphanume.com/v1/wikipedia-views"

headers = {
    "X-API-Key": "alp_abc123"
}

params = {
    "ticker": "AAPL"
}

all_rows = []

while True:
    r = requests.get(base_url, headers=headers, params=params).json()

    all_rows.extend(r["data"])

    if not r["has_more"]:
        break

    cursor = r["next_cursor"]
    params["cursor_date"] = cursor["date"]
    params["cursor_ticker"] = cursor["ticker"]

print(f"Retrieved {len(all_rows)} rows.")

Tier Access

This endpoint is Pro-only. Free / Trial accounts will receive a 403 response:

{
  "error": {
    "code": "PRO_TIER_REQUIRED",
    "message": "This endpoint requires a Pro subscription.",
    "hint": "Upgrade to Pro for access to Wikipedia page view data."
  }
}

Stay in the loop

Be the first to hear about new datasets, coverage expansions, and platform updates.