Wikimedia
  1. Legacy 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}
      GET
  • 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. Legacy data

/metrics/legacy/pagecounts/aggregate/{project}/{access-site}/{granularity}/{start}/{end}

GET
/metrics/legacy/pagecounts/aggregate/{project}/{access-site}/{granularity}/{start}/{end}
Legacy data
Given a project and a date range, returns a timeseries of pagecounts.
You can filter by access site (mobile or desktop) and you can choose between monthly,
daily and hourly granularity as well.
Stability: experimental
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/legacy/pagecounts/aggregate/////'
Response Response Example
200 - Example 1
{
    "items": [
        {
            "access-site": "string",
            "count": 0,
            "granularity": "string",
            "project": "string",
            "timestamp": "string"
        }
    ]
}

Request

Path Params
project
string 
required
The name of any Wikimedia project formatted like {language code}.{project name},
for example en.wikipedia. You may pass en.wikipedia.org and the .org will be stripped
off. For projects like commons without language codes, use commons.wikimedia.
access-site
string 
required
If you want to filter by access site, use one of desktop-site or mobile-site. If you are interested in pagecounts regardless of access site use all-sites.
granularity
string 
required
The time unit for the response data. As of today, the supported granularities for
this endpoint are hourly, daily and monthly.
start
string 
required
The timestamp of the first hour/day/month to include, in YYYYMMDDHH format.
end
string 
required
The timestamp of the last hour/day/month to include, in YYYYMMDDHH format.
In hourly and daily granularities this value is inclusive, in the monthly granularity
this value is exclusive.

Responses

🟢200The list of values
application/json
Body
items
array [object {5}] 
optional
access-site
string 
optional
count
integer <int64>
optional
granularity
string 
optional
project
string 
optional
timestamp
string 
optional
🔴500Error
Modified at 2023-08-15 06:49:12
Previous
Get edit counts for a page in a project.
Next
Get pageview counts for a project.
Built with