Hello there,
I just want to get only English word from this WIKTIONARY API URL
http://en.wiktionary.org/w/api.php?action=query&list=random&format=json .
which parameter should i include in this URL to fulfill the requirement?
shoul i have to use different url? (yes) which one?
--
Thank you
tushar
Hi,
it seems that documentation about action=edit
<https://www.mediawiki.org/wiki/API:Edit> doesn't cover all possible
results.
I just found that when I tried to save a page which contains an URL to a
blacklisted site (when trying to remove the nowiki tags around an URL
in an article
on frwiki
<https://fr.wikipedia.org/w/index.php?title=Ruud_Jolie&oldid=106287645>).
My program, WPCleaner, didn't warn me of a problem because the answer was
not in a format described in the doc:
<?xml version="1.0" encoding="UTF-8"?>
<api batchcomplete="">
<query>
<pages>
<page ns="1" title="Discussion:Ruud Jolie/À faire" missing=""
contentmodel="wikitext" pagelanguage="fr">
<protection />
<restrictiontypes>
<rt>create</rt>
</restrictiontypes>
</page>
</pages>
</query>
</api>
Is this normal ? Are there other formats for answers ?
The documentation only covers answers in the format api/edit/result or the
classic error reporting mechanism.
I ended up manually removing the entire link
<https://fr.wikipedia.org/w/index.php?title=Ruud_Jolie&diff=113608629&oldid=…>
.
Thanks,
Nico
Hello,
I have been using Mediawiki API on a few projects.
I now need to query the API for pages, members of 2 categories.
The pages have to be members of BOTH Category:Graduation_work and Category:2013
I've tried with:
api.php?format=json&action=query&list=categorymembers&cmlimit=500&cmtitle=Category:Graduation_work&cmtitle=Category:2013
but I realized that what the request is doing is asking only for the members of last category, that is Category:2013.
How could I request only the pages that are member of BOTH categories?
I have been searching, but found no answer.
Help would be very much appreciated :)
cheers
a
--
pinknoi.so
bibliotecha.info
--..,___.--,--'-,---..-.--+--.,,-,,...