1.3.3. Page API

API endpoints related to a single page.

1.3.3.1. Article info

See also

The pageviews and edits data REST APIs.

GET /api/page/articleinfo/{project}/{article}/{format}

Get basic information about the history of a page.

Parameters:

  • project (required) - Project domain or database name.
  • article (required) - Full page title.

Example:

Get basic information about Albert Einstein.

1.3.3.2. Prose

GET /api/page/prose/{project}/{article}

Get statistics about the prose (characters, word count, etc.) and referencing of a page.

Parameters:

  • project (required) - Project domain or database name.
  • article (required) - Full page title.

Example:

Get prose statistics of Albert Einstein.

1.3.3.4. Top editors

GET /api/page/top_editors/{project}/{article}/{start}/{end}/{limit}

Get the top editors to a page by edit count. You can optionally pass in ?nobots=1 to exclude bots from the results.

Parameters:

  • project (required) - Project domain or database name.
  • article (required) - Full page title.
  • start - Start date in the format YYYY-MM-DD.
  • end - End date in the format YYYY-MM-DD.
  • limit - Number of results to return. Default 20, maximum 1000.

Example:

Get the top editors to the English Wikipedia article Albert Einstein.

Same as above, but return 50 results.

Get the top 50 editors in 2017 to the English Wikipedia article Albert Einstein, excluding bots.

1.3.3.5. Assessments

GET /api/page/assessments/{project}/{articles}

Get assessment data of the given articles, including the overall quality classifications, along with a list of the WikiProjects and their classifications and importance levels. You can optionally pass in ?classonly=1 to get only the overall quality assessment.

Parameters:

  • project (required) - Project domain or database name.
  • article (required) - One or more full page titles, separated by pipes |

Example:

Get the assessment data on the English Wikipedia articles Albert Einstein and Bob Dylan.

Same as above, but get only the overall quality assessments.