Grand Exchange

Usage

import { grandexchange } from "runescape-api"

Functions

getCategories()

List all categories

grandexchange.getCategories().then(data => {
    console.log(data)
})

getCategoryCounts(:categoryId)

grandexchange.getCategoryCounts(24).then(data => {
    console.log(data)
})

getCategoryCountsByPrefix(:categoryId, :prefix, :page?)

grandexchange.getCategoryCountsByPrefix(24, "b").then(data => {
    console.log(data)
})

getItem(:id)

Retrieve an item

grandexchange.getItem(4151).then(data => {
    console.log(data)
})

getItemGraph(:id)

Retrieve an item's price history graph data

grandexchange.getItemGraph(4151).then(data => {
    console.log(data)
})

Last updated