Bestiary

Usage

from rs3_api import Bestiary
bestiary = Bestiary()

Functions

get_beast(id: int)

Retrieve a beasts information by id

Parameter

Type

id

int

response = bestiary.get_beast(89)
print(response)

get_beast_by_term(term: str)

Look up every occurrence of a term in the bestiary

Parameter

Type

term

str

response = bestiary.get_beast_by_term("cow")
# Look up more than one term by separating with + e.g "cow+rabbit"
print(response)

get_beast_by_first_letter(letter: str)

Look up every monster which starts with a certain letter

Parameter

Type

letter

str

response = bestiary.get_beast_by_first_letter("C")
print(response)

get_areas()

List of all areas in the bestiary

response = bestiary.get_areas()
print(response)

get_beasts_by_area(area: str)

Look up all beasts the searched area

Parameter

Type

area

str

response = bestiary.get_beasts_by_area("The Abyss")
print(response)

get_slayer_categories()

Get all slayer categories and their Id

response = bestiary.get_slayer_categories()
print(response)

get_slayer_beasts_by_category_id(id: int)

Get a list of all slayer beast by category Id

Parameter

Type

id

int

response = bestiary.get_slayer_beasts_by_category_id(25)
print(response)

get_weakness_names()

Get all weaknesses

response = bestiary.get_weakness_names()
print(response)

get_beasts_by_weakness_id(id: int)

Get all beasts that have a certain weakness

Parameter

Type

id

int

response = bestiary.get_beasts_by_weakness_id(1)
print(response)

get_beasts_by_level_group(level_from: int, level_to: int)

Get all beasts between a certain level group

Parameters

Type

level_from

int

level_to

int

response = bestiary.get_beasts_by_level_group(140, 150)
# Both arguments are inclusive
print(response)

Last updated

Was this helpful?