Extension:MobileFrontend/MobileViewAPI

APIs are provided by the MobileFrontend extension, but these are being deprecated in favour of the Mobile Content Service. Use these APIs at your own risk. They will soon be marked as deprecated and may disappear (although we will give you sufficient notice when they do)! If you are using them, please reach out to us on the talk page with any concerns you might have.

Deprecation roadmap
The  property was removed in 2019. See T99009. You can use  instead.

The API
Delivers content optimized for mobile devices for use by mobile apps and dynamic section views. Almost like a restricted-functionality, but more flexible and returns separate sections that are always obtained from full-page parse.

Parameters:

Returned section information also includes the for every section - its zero-based number; and for sections that contains references added by , there's also  data member.

Examples:

Same request for XML:

[//www.mediawiki.org/w/api.php?action=mobileview&page=Extension:MobileFrontend/Example&sections=0&prop=text%7Csections&format=xmlfm api.php?action=mobileview&page=Extension:MobileFrontend/Example&sections=0&prop=text|sections&format=xml]