Page object
The page object represents the latest revision of a wiki page.
Example
{
"id": 9228,
"key": "Earth",
"title": "Earth",
"latest": {
"id": 963613515,
"timestamp": "2020-06-20T20:05:55Z"
},
"content_model": "wikitext",
"license": {
"url": "//creativecommons.org/licenses/by-sa/3.0/",
"title": "Creative Commons Attribution-Share Alike 3.0"
},
"html_url": "https://en.wikipedia.org/w/rest.php/v1/page/Earth/html"
}
Schema
id
required integer |
Page identifier | ||||
key
required string |
Page title in URL-friendly format | ||||
title
required string |
Page title in reading-friendly format | ||||
latest
required object |
Information about the latest revision
Properties
| ||||
content_model
required string |
Page content format:
| ||||
license
required object |
Information about the wiki's license
Properties
| ||||
Get page only: | |||||
html_url
required string |
API route to fetch the content of the page in HTML | ||||
Get page offline only: | |||||
html
required string |
Latest page content in HTML | ||||
Get page source, create page, and edit page only: | |||||
source
required string |
Latest page content in the format specified by the content_model property
|