public class Query extends RequestBuilder
Parameters:
titles - A list of titles to work on
pageids - A list of page IDs to work on
revids - A list of revision IDs to work on
prop - Which properties to get for the titles/revisions/pageids
Values (separate with '|'): info, revisions, links, langlinks, images, imageinfo, templates, categories, extlinks, categoryinfo, duplicatefiles
list - Which lists to get
Values (separate with '|'): allimages, allpages, alllinks, allcategories, allusers, backlinks, blocks, categorymembers, deletedrevs, embeddedin, imageusage, logevents, recentchanges, search, usercontribs, watchlist, exturlusage, users, random
meta - Which meta data to get about the site
Values (separate with '|'): siteinfo, userinfo, allmessages
generator - Use the output of a list as the input for other prop/list/meta items
One value: links, images, templates, categories, duplicatefiles, allimages, allpages, alllinks, allcategories, backlinks, categorymembers, embeddedin, imageusage, search, watchlist, exturlusage, random
redirects - Automatically resolve redirects
indexpageids - Include an additional pageids section listing all returned page IDs.
Example: api.php?action=query&prop=revisions&meta=siteinfo&titles=Main%20
Page&rvprop=user|comment| Constructor and Description |
|---|
Query() |
| Modifier and Type | Method and Description |
|---|---|
Query |
apfrom(String title)
The page title to start enumerating from.
|
Query |
aplimit(int limit)
How many total pages to return.
|
static Query |
create() |
Query |
generator(String generator)
Use the output of a list as the input for other prop/list/meta items.
One value: links, images, templates, categories, duplicatefiles, allimages, allpages, alllinks, allcategories, backlinks, categorymembers, embeddedin, imageusage, search, watchlist, exturlusage, random |
Query |
indexpageids()
Include an additional pageids section listing all returned page IDs.
|
Query |
inprop(String... prop)
Which additional properties to get: "protection" - List the protection
level of each page "talkid" - The page ID of the talk page for each
non-talk page "subjectid" - The page ID of the parent page for each talk
page Values (separate with '|'): protection, talkid, subjectid, url,
readable
|
Query |
inprop(String prop)
Which additional property to get:
"protection" - List the protection level of each page "talkid" - The page ID of the talk page for each non-talk page "subjectid" - The page ID of the parent page for each talk page Values (separate with '|'): protection, talkid, subjectid, url, readable |
Query |
intoken(String intoken) |
Query |
list(String... lists)
Which lists to get.
Values (separate with '|'): allimages, allpages, alllinks, allcategories, allusers, backlinks, blocks, categorymembers, deletedrevs, embeddedin, imageusage, logevents, recentchanges, search, usercontribs, watchlist, exturlusage, users, random |
Query |
meta(String... metadata)
Which meta data to get about the site.
Values (separate with '|'): siteinfo, userinfo, allmessages |
Query |
pageids(int... pageids)
A list of page IDs to work on
|
Query |
prop(String... prop)
Which properties to get for the titles/revisions/pageids.
Values (internally separated with '|'): info, revisions, links, langlinks, images, imageinfo, templates, categories, extlinks, categoryinfo, duplicatefiles |
Query |
prop(String prop)
Which property to get for the titles/revisions/pageids.
Values info, revisions, links, langlinks, images, imageinfo, templates, categories, extlinks, categoryinfo, duplicatefiles |
Query |
redirects()
Automatically resolve redirects.
|
Query |
revids(int... revids)
A list of revision IDs to work on
|
Query |
titles(String... titles)
A list of titles to work on
|
Query |
titles(String title)
One title to work on
|
action, clear, containsKey, containsValue, entrySet, equals, format, get, getParameters, hashCode, isEmpty, keySet, maxage, maxlag, put, putAll, putPipedString, putPipedString, remove, requestid, size, smaxage, toPipedString, toPipedString, toString, values, versionpublic static Query create()
public Query titles(String... titles)
titles - public Query pageids(int... pageids)
pageids - public Query revids(int... revids)
revids - public Query prop(String prop)
prop - public Query prop(String... prop)
prop - public Query list(String... lists)
lists - public Query meta(String... metadata)
metadata - public Query generator(String generator)
generator - public Query redirects()
public Query indexpageids()
public Query inprop(String prop)
prop - public Query inprop(String... prop)
prop - public Query apfrom(String title)
title - public Query aplimit(int limit)
limit - Copyright © 2017 Java Wikipedia API (Bliki engine). All rights reserved.