Page content

Get latest HTML for a title.

Stability: stable

get/page/html/{title}

Request

  • Base URL: https://en.wikipedia.org/api/rest_v1
  • URL: https://en.wikipedia.org/api/rest_v1/page/html/{title}
  • Auth: none declared

Path parameters

titlestring required

Page title. Use underscores instead of spaces. Use percent-encoding. Example: Main_Page.

Query parameters

redirectboolean

Requests for redirect pages return HTTP 302 with a redirect target in Location header and content in the body. To get a 200 response instead, supply false to the redirect parameter.

stashboolean

Whether to temporary stash data-parsoid metadata in order to support transforming the modified content later. If this parameter is set, requests are rate-limited on a per-client basis (max 5 requests per second per client)

Headers

Accept-Languagestring

The desired language variant code for wikis where LanguageConverter is enabled. Example: sr-el for Latin transcription of the Serbian language.

Response

The latest HTML for the given page title.

See the MediaWiki DOM spec for a description of the MediaWiki-specific semantic markup in this HTML. Note that additional metadata is available in the HTML head.

object required

Changes

No recorded changes to this operation across all 1 revision of this API.