MediaWiki API help

This is an auto-generated MediaWiki API documentation page.

Documentation and examples:


(main | import)
  • This module requires read rights.
  • This module requires write rights.
  • This module only accepts POST requests.
  • Source: MediaWiki
  • License: GPL-2.0+

Import a page from another wiki, or from an XML file.

Note that the HTTP POST must be done as a file upload (i.e. using multipart/form-data) when sending a file for the xml parameter.


Log entry import summary.


Uploaded XML file.

Must be posted as a file upload using multipart/form-data.

For interwiki imports: wiki to import from.

One of the following values: legacy, global, albania, argentina, australia, austria, belgium, benelux, brazil, bulgaria, canada, chile, china, colombia, costa rica, cyprus, czech republic, denmark, estonia, finland, france, germany, hong kong, hungary, india, indonesia, ireland, italy, japan, korea, kosovo, kwiki, latam, latvia, lithuania, luxembourg, malaysia, mexico, netherlands, new zealand, norway, peru, philippines, poland, portugal, romania, russia, serbia, singapore, slovakia, slovenia, south africa, spain, sweden, switzerland, turkey, united arab emirates, ukraine, uk, uruguay, usa, wikipedia, mediawikiwiki

For interwiki imports: page to import.


For interwiki imports: import the full history, not just the current version.

Type: boolean (details)

For interwiki imports: import all included templates as well.

Type: boolean (details)

Import to this namespace. Cannot be used together with rootpage.

One of the following values: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 274, 275, 460, 461, 1198, 1199, 2300, 2301, 2302, 2303

Import as subpage of this page. Cannot be used together with namespace.


Change tags to apply to the entry in the import log and to the null revision on the imported pages.

Values (separate with | or alternative):

A "csrf" token retrieved from action=query&meta=tokens

This parameter is required.