Questions tagged [mediawiki-api]

The MediaWiki API is the interface for automated editing processes ("bots") and other programs to access data in a MediaWiki wiki.

Documentation for the API is available at mediawiki.org; a summary of all available parameters and short help is available by accessing the API endpoint on the wiki, e.g. here for the English .

Please make sure to check out the Etiquette page to get acquainted with the best practices and usage guidelines for using the API.

629 questions
-1
votes
1 answer

Getting wikipedia content page passing its title in Android

I'm developing an Android app that might use Wikipedia API to retrieve the content of a given page (from its title). I searched a lot in the web but I don't find useful information about the implementation. I read the MediaWiki documentation and I…
user3319400
  • 823
  • 2
  • 7
  • 10
-1
votes
2 answers

how to get current page size (that is raw content) in mediawiki api?

I don't know where to put the size argument, here I only managed to get a single edit size: https://en.wikipedia.org/w/api.php?action=query&prop=revisions&rvprop=size&format=xml&titles=United_States_of_America but I need the size of whole raw…
rsk82
  • 28,217
  • 50
  • 150
  • 240
-1
votes
1 answer

Getting Page Content via Json

Link:http://creepypasta.wikia.com/api.php?%20action=query&prop=revisions&titles=Main_Page&rvprop=content&indexpageids=1&format=jsonfm From the json file above I want to get the value of "*". I am using python and have the request setup. Normally if…
-1
votes
2 answers

How to login for each MediaWiki API request?

I've locked down my MediaWiki instance so only registered users can read or write to it (it's "private"). This means any API requests need to be authenticated. From what I can tell, the only way to do so is by "logging in" with credentials, setting…
Jared
  • 2,978
  • 4
  • 26
  • 45
-1
votes
1 answer

Wikipedia - Retrive English name from German link

I am trying to retrieve some Wikipedia informations using mediawiki api. I am trying to retrieve information of "Helmuth Johannes Ludwig von Moltke" English link: http://en.wikipedia.org/wiki/Helmuth_von_Moltke_the_Younger German link:…
Pradeeshnarayan
  • 1,235
  • 10
  • 21
-1
votes
1 answer

Trouble Getting a Locally Hosted Copy of the English Language Wiktionary to include the Translations Sections

I used MWDumper - http://www.mediawiki.org/wiki/Mwdumper - to import the xml dump of the English Language Wiktionary (specifically the file named enwiktionary-20120930-pages-meta-current.xml,) to my local server. I have found that under the…
DJG
  • 6,413
  • 4
  • 30
  • 51
-1
votes
1 answer

Synchronizing LDAP groups with Wiki

How synchronizing LDAP groups with Wiki groups?
Artur
  • 51
  • 5
-2
votes
2 answers

Pywikibot MediaWiki Query API

I have a data dump of Wikipedia articles listed only by their pageid, and I am hoping to filter them by namespace. It would be relatively easy to write some python (probably using the requests module) to call the MediaWiki Query API, to query for…
brubsby
  • 388
  • 2
  • 13
-2
votes
1 answer

Is there any possibility to get the plain (MediaWiki-markup) source instead of HTML source of Wikipedia-pages via API?

As I asked above, I want to get the plain Wikipedia/Mediawiki-markup via the API instead of the HTML source code. If I try this I get the HTML source of the section and of course I've already read the documentation of the Mediawiki API but didn't…
csabinho
  • 1,579
  • 1
  • 18
  • 28
-2
votes
1 answer

Running Wikimedia api.php from command line

First of all, I have no experience with php. I installed wikimedia software in order to parse wikitext markup strings to html. Thus, I set an Apache server (localhost) and I am parsing the wikitext using api.php from Pyhton (requests…
Marcelo Sardelich
  • 952
  • 2
  • 13
  • 28
-2
votes
2 answers

How to work with the results of api.php using javascript?

I have searched around and can't seem to find what I'm looking for. How can I use the results of api.php?action=query&list=allusers&augroup=sysop&aulimit=max&format=json in a javascript? What I'm trying to do is create a script to simply change the…
RyanayR
  • 124
  • 4
-2
votes
1 answer

How do I search for Wikipedia pages that have all the words in my set

I have two terms A and B (strings) and I want all Wikipedia pages that have both these terms A and B, with no constraint regarding the order in which they appear and any phrase query or anything like that. I just want all result pages to be…
London guy
  • 27,522
  • 44
  • 121
  • 179
-3
votes
1 answer

MediaWiki API with PHP

Okay I wish to make a simple program that fetches the latest edits from a MediaWiki site (namely Wikias Community Central) and displays them neatly in a table. I know how to get all the display and sorting stuff code made but I cannot for the life…
-6
votes
2 answers

can someone explain what this code is doing

I am having two problems here: The following block of codes has got me confused. Primarily, I do not know what exactly the code is doing from the basics; I just copied it from a tutorial, and it seems to do what i want it to do. If anyone can…
1 2 3
41
42