Type Definitions
ArticleDetailsReq
Type
-
Object
Properties
-
ids
number|Array.<number><optional>
An array of article ids or a single article id
-
titles
string|Array.<string><optional>
An array of article titles or a single article title, can be used alongside ids
-
abstract
number<optional>
100The desired length for the article's abstract
Source
ArticleDetailsRes
Type
-
Object
Properties
-
items
Object.<number, ArticleDetailsResItem>Dictionary mapping article ids to objects describing them
-
basepath
stringURL of associated wiki
Source
ArticleDetailsResItem
Type
-
Object
Properties
-
id
numberInternal article identifier
-
title
stringArticle's title
-
ns
numberArticle's namespace, see: see: Help:Namespaces
-
url
stringArticle's URL
-
revision
ArticleDetailsResItemRevisionLast revision of the article
-
type
stringType of the page ("article" for articles)
-
abstract
stringShort description of the article
Source
ArticleDetailsResItemRevision
Type
-
Object
Properties
-
id
numberInternal revision identifier
-
user
stringUsername of associated editor
-
user_id
numberIdentifier of associated editor
-
timestamp
stringTime of the revision
Source
ArticleItem
Type
-
Object
Properties
-
id
numberInternal article identifier
-
title
stringArticle's title
-
url
stringArticle's URL
-
ns
numberArticle's namespace, see: see: Help:Namespaces
Source
ArticleListReq
Type
-
Object
Properties
-
category
string<optional>
Return only articles belonging to the provided valid category title
-
namespaces
number|Array.<number><optional>
Array of namespace ids or a single namespace id, see: Help:Namespaces
-
limit
number<optional>
25Limit the number of results
-
offset
string<optional>
Only display articles where name is lexicographically greater than provided
Source
ArticleListRes
Type
-
Object
Properties
-
items
Array.<ArticleItem>Array of article items
-
basepath
stringURL of associated wiki
-
offset
stringCurrent lexicographical offset (lists first articles where titles are greater lexicographically than that offset)
Source
SearchSuggestionsRes
Type
-
Object
Properties
-
items
Array.<SearchSuggestionsResItem>List of suggested articles for a given query
Source
SearchSuggestionsResItem
Type
-
Object
Properties
-
title
stringSuggested article's title
Source
TopArticlesReq
Type
-
Object
Properties
-
namespaces
number|Array.<number><optional>
Array of namespace ids or a single namespace id, see: Help:Namespaces
-
category
string<optional>
Return only articles belonging to the provided category title
-
limit
number<optional>
10Limit the number of results - maximum limit is 250
Source
TopArticlesRes
Type
-
Object
Properties
-
items
Array.<ArticleItem>Array of article items
-
basepath
stringURL of associated wiki
Source
UserDetailsReq
Type
-
Object
Properties
-
ids
number|Array.<number>An array of user ids or a single user id
-
size
number<optional>
100The desired width and height of the thumbnail, defaults to 100, 0 for no thumbnail
Source
UserDetailsRes
Type
-
Object
Properties
-
items
Array.<UserDetailsResItem>Array of matching users
-
basepath
stringURL of associated wiki
Source
UserDetailsResItem
Type
-
Object
Properties
-
user_id
numberInternal user identifier
-
title
stringUser's title
-
name
stringUser's name
-
url
stringURL of user's profile page
-
numberofedits
numberNumber of user's edits on the given wiki
-
is_subject_to_ccpa
booleanSee: CCPA
-
avatar
stringLink to user's avatar
Source
WikiVariablesRes
Type
-
Object
Properties
-
data
WikiVariablesResDataWrapper object containing all of the other info
Source
WikiVariablesResAppleIcon
Type
-
Object
Properties
-
url
stringIcon's URL
-
size
stringString describing icon's dimensions
Source
WikiVariablesResData
Type
-
Object
Properties
-
vertical
stringPrimary category of the wiki
-
appleTouchIcon
WikiVariablesResAppleIconObject describing icon shown on Apple devices
-
articlePath
stringBase URL of wiki's articles
-
basePath
stringBase URL of the entire site
-
dbName
stringName of related database
-
favicon
stringURL of site's favicon, see Help:Favicon
-
id
numberInternal wiki identifier
-
isClosed
booleanWhether the wiki is closed
-
htmlTitle
WikiVariablesResHtmlTitleObject describing how wiki's
<title>tag is formed -
language
WikiVariablesResLanguageObject describing wiki's language
-
scriptPath
stringBase URL of site's JS scripts
-
siteName
stringMain title of the wiki in its full form
-
surrogateKey
stringWiki's identifier in internal databases
-
enableCommunityData
boolean -
mainPageTitle
stringTitle of wiki's home/landing article
-
siteMessage
stringFull wiki title
-
cookieDomain
stringScope of cookies stored on this wiki
Source
WikiVariablesResHtmlTitle
Type
-
Object
Properties
-
separator
stringTitle separator sequence
-
parts
Array.<string>Parts of the title
Source
WikiVariablesResLanguage
Type
-
Object
Properties
-
content
stringWiki's content language
-
contentDir
"ltr"|"rtl"Direction of text ("ltr" - left to right, "rtl" - right to left)