3

I have a new installation of mediawiki. I am trying to use the API to simply get an article. The API url I am using is:

https://example.com/mediawiki/api.php?action=query&format=json&prop=extracts&titles=Vendor_cisco

Upon going to that URL I get: Unrecognized value for parameter 'prop': extracts

This seems odd because all of the following urls do work and return the right data:

https://example.com/mediawiki/api.php?action=query&format=json&prop=links&titles=Vendor_cisco https://example.com/mediawiki/api.php?action=query&format=json&prop=categories&titles=Vendor_cisco https://example.com/mediawiki/api.php?action=query&format=json&prop=revisions&titles=Vendor_cisco

How do I get the body and text from my article? I was under the impression prop=extracts is what is used.

user985723
  • 628
  • 2
  • 8
  • 18

1 Answers1

5

prop=extracts is part of TextExtracts extension (formerly MobileFrontend extension). If you don't have that extension installed, you won't be able to use prop=extracts.

Nemo
  • 2,441
  • 2
  • 29
  • 63
svick
  • 236,525
  • 50
  • 385
  • 514
  • I added the TextEctracts extension and also the MobileFrontend and installed it like the instrucions on mediawiki, but the error remains? – Name Feb 02 '16 at 15:07