Wikimedia
  1. Edited pages 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. Edited pages data

Get top 100 edited-pages by edits count.

GET
/metrics/edited-pages/top-by-edits/{project}/{editor-type}/{page-type}/{year}/{month}/{day}
Edited pages data
Given a Mediawiki project and a date (day or month), returns a timeseries of the top
100 edited-pages by edits count. You can filter by editor-type (all-editor-types,
anonymous, group-bot, name-bot, user) or page-type (all-page-types, content or
non-content).
Stability: experimental
Rate limit: 25 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/edited-pages/top-by-edits//////'
Response Response Example
200 - Example 1
{
    "items": [
        {
            "editor-type": "string",
            "granularity": "string",
            "page-type": "string",
            "project": "string",
            "results": [
                {
                    "timestamp": "string",
                    "top": [
                        {
                            "edits": 0,
                            "page_title": "string",
                            "rank": 0
                        }
                    ]
                }
            ]
        }
    ]
}

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. For
projects like www.mediawiki.org, you can use that full string, or just use mediawiki
or mediawiki.org.
editor-type
string 
required
If you want to filter by editor-type, use one of anonymous, group-bot (registered
accounts belonging to the bot group), name-bot (registered accounts not belonging to
the bot group but having bot-like names) or user (registered account not in bot group
nor having bot-like name). If you are interested in edits regardless of their
editor-type, use all-editor-types.
page-type
string 
required
If you want to filter by page-type, use one of content (edits on pages in content
namespaces) or non-content (edits on pages in non-content namespaces). If you are
interested in edits regardless of their page-type, use all-page-types.
year
string 
required
The year of the date for which to retrieve top edited-pages, in YYYY format.
month
string 
required
The month of the date for which to retrieve top edited-pages, in MM format. If you want to get the top edited-pages of a whole month, the day parameter should be all-days.
day
string 
required
The day of the date for which to retrieve top edited-pages, in DD format, or all-days for a monthly value.

Responses

🟢200The list of values
application/json
Body
items
array [object {5}] 
optional
editor-type
string 
optional
granularity
string 
optional
page-type
string 
optional
project
string 
optional
results
array [object {2}] 
optional
🔴500Error
Modified at 2023-08-15 06:49:12
Previous
Get top 100 edited-pages by absolute bytes-difference.
Next
Get top 100 edited-pages by net bytes-difference.
Built with