Wikimedia
  1. Pageviews data
Wikimedia
  • Feed content availability
    • Gets availability of featured feed content for the apps by wiki domain.
      GET
  • Math
    • Check and normalize a TeX formula.
      POST
    • Get a previously-stored formula
      GET
    • Get rendered formula in the given format.
      GET
  • Bytes difference data
    • Get the sum of absolute value of text bytes difference between current edit and previous one.
      GET
    • Get the sum of absolute text bytes difference per page.
      GET
    • Get the sum of net text bytes difference between current edit and previous one.
      GET
    • Get the sum of net text bytes difference per page.
      GET
  • Edited pages data
    • Get edited-pages counts for a project.
      GET
    • Get new pages counts for a project.
      GET
    • Get top 100 edited-pages by absolute bytes-difference.
      GET
    • Get top 100 edited-pages by edits count.
      GET
    • Get top 100 edited-pages by net bytes-difference.
      GET
  • Editors data
    • Get editors counts for a project.
      GET
    • Get top 100 editors by absolute bytes-difference.
      GET
    • Get top 100 editors by edits count.
      GET
    • Get top 100 editors by net bytes-difference.
      GET
  • Edits data
    • Get edits counts for a project.
      GET
    • Get edit counts for a page in a project.
      GET
  • Legacy data
    • /metrics/legacy/pagecounts/aggregate/{project}/{access-site}/{granularity}/{start}/{end}
  • Pageviews data
    • Get pageview counts for a project.
      GET
    • Get pageview counts for a page.
      GET
    • Get pageviews by country and access method.
      GET
    • Get the most viewed articles for a project.
      GET
  • Registered users data
    • Get newly registered users counts for a project.
  • Unique devices data
    • Get unique devices count per project
  • Transform
    • Machine-translate content
    • Machine-translate content
    • Lists the language pairs supported by the back-end
    • Lists the tools available for a language pair
    • Lists the tools and language pairs available for the given tool category
    • Lists the tools and language pairs available for the given tool category
    • Lists the tools and language pairs available for the given tool category
    • Fetch the dictionary meaning of a word
    • Fetch the dictionary meaning of a word
  1. Pageviews data

Get pageview counts for a page.

GET
/metrics/pageviews/per-article/{project}/{access}/{agent}/{article}/{granularity}/{start}/{end}
Pageviews data
Given a Mediawiki article and a date range, returns a daily timeseries of its pageview
counts. You can also filter by access method and/or agent type.
Stability: stable
Rate limit: 100 req/s
License: Data accessible via this endpoint is available under the
CC0 1.0 license.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://wikimedia.org/api/rest_v1/metrics/pageviews/per-article///////'
Response Response Example
200 - Example 1
{
    "items": [
        {
            "access": "string",
            "agent": "string",
            "article": "string",
            "granularity": "string",
            "project": "string",
            "timestamp": "string",
            "views": 0
        }
    ]
}

Request

Path Params
project
string 
required
If you want to filter by project, use the domain of any Wikimedia project,
for example 'en.wikipedia.org', 'www.mediawiki.org' or 'commons.wikimedia.org'.
access
string 
required
If you want to filter by access method, use one of desktop, mobile-app
or mobile-web. If you are interested in pageviews regardless of access method,
use all-access.
agent
string 
required
If you want to filter by agent type, use one of user, bot or spider. If you are
interested in pageviews regardless of agent type, use all-agents.
article
string 
required
'The title of any article in the specified project. Any spaces should be replaced
with underscores. It also should be URI-encoded, so that non-URI-safe characters like
%, / or ? are accepted. Example: Are_You_the_One%3F'.
granularity
string 
required
The time unit for the response data. As of today, the only supported granularity for
this endpoint is daily and monthly.
start
string 
required
The date of the first day to include, in YYYYMMDD or YYYYMMDDHH format
end
string 
required
The date of the last day to include, in YYYYMMDD or YYYYMMDDHH format

Responses

🟢200The list of values
application/json
Body
items
array [object {7}] 
optional
access
string 
optional
agent
string 
optional
article
string 
optional
granularity
string 
optional
project
string 
optional
timestamp
string 
optional
views
integer <int64>
optional
🔴500Error
Modified at 2023-08-15 06:49:12
Previous
Get pageview counts for a project.
Next
Get pageviews by country and access method.
Built with