---
title: "Top articles on a date"
method: GET
path: "/api/v1/news/wikipedia/pageviews/top"
tags: ["Global News and Media"]
---

# Top articles on a date

`GET /api/v1/news/wikipedia/pageviews/top`

Top Wikipedia articles on a specific date for a single project. Upstream returns up to 1000 rows; Sugra caps via the `limit` parameter. Rows can include namespace entries (`Main_Page`, `Special:Search`, `File:...`). Sourced from the Wikimedia Foundation Analytics Query Service (CC0).

## Query parameters

- `project` string — Wikimedia project domain (e.g. `en.wikipedia`, `de.wikipedia`).
- `access` string — Access method filter (`all-access`, `desktop`, `mobile-app`, `mobile-web`).
- `date` string, required — Date of the ranking (ISO 8601 YYYY-MM-DD).
- `limit` integer — Maximum rank rows to return (1-1000).

## Response `200`

Articles ordered by pageview rank on the requested date.

- EnvelopeWikipediaPageviewsTopPayload
  - `data` WikipediaPageviewsTopPayload, required — Response payload for `/pageviews/top`.
    - `project` string, required — Wikimedia project domain echoed from the request.
    - `access` string, required — Access method filter echoed from the request.
    - `date` string, required — ISO 8601 date of the ranking (YYYY-MM-DD).
    - `limit` integer, required — Caller-requested cap on the rank list (upstream returns up to 1000).
    - `articles` WikipediaTopArticle[], required — Articles ordered by rank (1-indexed). Includes namespace-prefixed entries like `Main_Page`, `Special:Search`, `File:...`.
      - `article` string, required — Article title (URL form with underscores for spaces). Some entries use namespaces (`Special:Search`, `File:...`).
      - `project` string, nullable — Wikimedia project domain (present on `top-per-country` responses; omitted on single-project `top`).
      - `rank` integer, nullable — 1-indexed rank within the list.
      - `views` integer, nullable — Exact pageview count for the date (null on country-scoped responses which publish only `views_ceil`).
      - `views_ceil` integer, nullable — Privacy-rounded ceiling of views in the date (present on `top-per-country`; null on plain `top`).
  - `meta` SugraMeta, required — Metadata attached to every /api/v1/* response envelope.
    - `endpoint` string, required — Requested endpoint path.
    - `data_time` string, required — ISO 8601 UTC timestamp of the source data, not of the request.
    - `response_time` string, required — ISO 8601 UTC timestamp when this response was produced.
    - `provider` string, required — API name and version.
    - `source` string, nullable — Identifier of the primary upstream source used for this response.
    - `attribution` string, nullable — Human-readable attribution mandated by an upstream source (e.g. a securities regulator or self-regulatory organization). Present only on responses whose source requires the owner and source to be clearly identified. Do not remove or alter it when using the response.
    - `fallback_used` boolean, nullable — True when the primary source failed and a fallback produced the data.
    - `fallback_chain` string[], nullable — Ordered list of sources attempted, in the order they were tried.
    - `cached` boolean, nullable — True when this response was served from the internal cache.
    - `stale` boolean, nullable — True when the cached response was returned after the upstream rate-limited or errored. Clients can use this to detect degraded data.

## Other responses

- `401` — Missing or invalid `x-api-key` header.
- `422` — Validation Error
- `429` — Daily rate limit exceeded. Check `X-RateLimit-Reset` for the next window.
- `503` — Upstream source is temporarily unavailable. Retry after a short delay.

---

[API](https://skmtc.net/sugra/apis/sugra-api.md) · [All operations](https://skmtc.net/sugra/apis/sugra-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sugra/sugra-api/revisions/dcf7427e6897/schema)
