Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Wiki

Hierarchy

  • Wiki

Index

Properties

Private URL

URL: string = "https://oldschool.runescape.wiki/api.php"

Methods

fetchAPI

  • fetchAPI(query: any): Promise<any>

fetchPage

  • fetchPage(pageID: number): Promise<WikiPage | undefined>

Private parseRawPage

random

  • random(amount?: number): Promise<WikiPage[]>

search

  • search(query: string): Promise<WikiPage[]>

Object literals

Private commonPageAPIOptions

commonPageAPIOptions: object

action

action: string = "query"

cllimit

cllimit: string = "max"

exintro

exintro: string = "1"

explaintext

explaintext: string = "1"

exsentences

exsentences: string = "5"

format

format: string = "json"

formatversion

formatversion: string = "2"

inprop

inprop: string = "url"

piprop

piprop: string = "original"

prop

prop: string = ['extracts', 'pageimages', 'info', 'categories'].join('|')

Private searchOptions

searchOptions: object

-incategory

-incategory: string = ['Slang_dictionary', 'Disambiguation'].join('|')