User:Catrope/Wikimania/API requests
Appearance
For how to do POST requests with jQuery, see this.
Main page with docs
[edit]Information about the wiki
[edit]- http://en.wikipedia.org/w/api.php?action=query&meta=siteinfo
- http://en.wikipedia.org/w/api.php?action=query&meta=siteinfo&siprop=general%7Cnamespaces%7Cnamespacealiases
- http://es.wikipedia.org/w/api.php?action=query&meta=siteinfo&siprop=general%7Cnamespaces%7Cnamespacealiases
- http://en.wikipedia.org/w/api.php?action=query&meta=userinfo&uiprop=groups%7Crights
Title normalization
[edit]- http://en.wikipedia.org/w/api.php?action=query&titles=Image:Wiki.png%7Cfoo_bar_baz%7CTalk:Talk:Foo
- http://en.wiktionary.org/w/api.php?action=query&titles=Image:Wiki.png%7Cfoo_bar_baz%7CTalk:Talk:Foo
- http://es.wikipedia.org/w/api.php?action=query&titles=Image:Wiki.png%7Cfoo_bar_baz%7CTalk:Talk:Foo
Redirect resolution
[edit]- http://en.wikipedia.org/w/api.php?action=query&titles=main_page&redirects
- http://prototype.wikimedia.org/s/api.php?action=query&titles=foo&redirects
Information about pages
[edit]Running multiple queries
[edit]Limits and continuations
[edit]- http://en.wikipedia.org/w/api.php?action=query&titles=Main_Page&prop=info%7Crevisions&rvlimit=5
- http://en.wikipedia.org/w/api.php?action=query&titles=Main_Page&prop=info%7Crevisions&rvlimit=5&rvstartid=273421236
- http://en.wikipedia.org/w/api.php?action=query&titles=Main_Page&prop=info%7Crevisions&rvlimit=max
- http://en.wikipedia.org/w/api.php?action=query&titles=Main_Page&prop=info%7Crevisions&rvlimit=max&rvprop=content
Image information
[edit]- http://en.wikipedia.org/w/api.php?action=query&titles=File:Flag_of_the_Netherlands.png&prop=imageinfo
- http://en.wikipedia.org/w/api.php?action=query&titles=File:Flag_of_the_Netherlands.png&prop=imageinfo&iiprop=url
- http://en.wikipedia.org/w/api.php?action=query&titles=File:Flag_of_the_Netherlands.png&prop=imageinfo&iiprop=url&iiurlwidth=200
- http://en.wikipedia.org/w/api.php?action=query&titles=File:Flag_of_the_Netherlands.png&prop=imageinfo&iiprop=url&iiurlwidth=137
Lists of pages
[edit]- http://www.mediawiki.org/w/api.php?action=query&list=allpages&aplimit=5
- http://www.mediawiki.org/w/api.php?action=query&list=allpages&aplimit=5&apnamespace=2
- http://www.mediawiki.org/w/api.php?action=query&list=allpages&aplimit=5&apnamespace=2&apprefix=Catrope/
Generators
[edit]- http://www.mediawiki.org/w/api.php?action=query&generator=allpages&prop=revisions
- http://www.mediawiki.org/w/api.php?action=query&generator=allpages&gaplimit=5&gapnamespace=2&gapprefix=Catrope/&prop=revisions
- http://www.mediawiki.org/w/api.php?action=query&generator=allpages&gaplimit=5&gapnamespace=2&gapprefix=Catrope/&prop=revisions&rvprop=content
Editing pages
[edit]- Get token and basetimestamp
- The actual edit (needs POST request)
- Appending text to pages