---
title: "Per-article pageviews across multiple language editions"
method: GET
path: "/api/v1/news/wikipedia/pageviews/languages-compare"
tags: ["Global News and Media"]
---

# Per-article pageviews across multiple language editions

`GET /api/v1/news/wikipedia/pageviews/languages-compare`

Sugra-synthesised endpoint: fans out parallel per-article pageview calls against several Wikimedia language editions and merges the results into one response with per-project series. The Wikimedia API does not offer a cross-language aggregation for a single article - Sugra composes it server-side. The article title is applied identically across every requested project; callers should pass the local title per project when titles differ. Missing articles surface as `found=false` with an empty series rather than a hard error. Attribution: Wikimedia Foundation (CC0).

## Query parameters

- `article` string, required — Article title applied identically across every requested project (URL form with underscores for spaces, case-sensitive).
- `projects` string — Comma-separated list of Wikimedia project domains (max 10).
- `access` string — Access method filter (`all-access`, `desktop`, `mobile-app`, `mobile-web`).
- `agent` string — User-agent class filter (`all-agents`, `user`, `spider`, `automated`).
- `granularity` string — Aggregation granularity (`daily` or `monthly`).
- `start_date` string, required — Earliest date to include (ISO 8601 YYYY-MM-DD, inclusive).
- `end_date` string, required — Latest date to include (ISO 8601 YYYY-MM-DD, inclusive).

## Response `200`

Per-project pageview series for the requested article across language editions.

- EnvelopeWikipediaLanguagesComparePayload
  - `data` WikipediaLanguagesComparePayload, required — Response payload for `/pageviews/languages-compare`.
    - `article` string, required — Article title applied identically across every requested project (callers should pass the local title per project when titles differ).
    - `access` string, required — Access method filter echoed from the request.
    - `agent` string, required — User-agent class filter echoed from the request.
    - `granularity` string, required — Aggregation granularity (`daily` or `monthly`).
    - `start_date` string, required — ISO 8601 start of the requested window (inclusive).
    - `end_date` string, required — ISO 8601 end of the requested window (inclusive).
    - `projects` string[], required — Wikimedia project domains queried in parallel.
    - `series` WikipediaLanguageSeries[], required — Per-project series (one entry per requested project, including empty series on 404).
      - `project` string, required — Wikimedia project domain (e.g. `en.wikipedia`, `ru.wikipedia`).
      - `found` boolean, required — True when the upstream per-article call returned rows. False when Wikimedia returned 404 (article missing in that language) or the call otherwise failed.
      - `rows` WikipediaPageviewRow[] — Pageview buckets for this project in chronological order. Empty when `found` is false.
        - `project` string, nullable — Wikimedia project domain echoed from the request (e.g. `en.wikipedia`).
        - `article` string, nullable — Article title (per-article endpoint only; null for aggregate rows).
        - `access` string, nullable — Access method filter echoed from the request (`all-access`, `desktop`, `mobile-app`, `mobile-web`).
        - `agent` string, nullable — User-agent class filter echoed from the request (`all-agents`, `user`, `spider`, `automated`).
        - `granularity` string, nullable — Aggregation granularity (`daily` or `monthly`).
        - `timestamp` string, nullable — ISO 8601 UTC timestamp of the bucket (`YYYY-MM-DDT00:00:00Z`, normalised from upstream `YYYYMMDDHH`).
        - `views` integer, nullable — Pageview count for the bucket.
  - `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. JSON body with a stable `code` distinguishing `missing_api_key` (no header sent) from `invalid_api_key` (header sent, key not accepted); any other 401 source carries the generic `unauthorized` with its detail as `reason`. Plus `hint`. `plan` is always null on 401 - an unauthenticated request has no plan; quota exhaustion is 429, not 401.
- `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/d9a732d8e6be/schema)
