Search Routes#

Wynncraft API uses a quite unique system for searching things. All of the search routes are divided intro 3 categories:

Simple

Simple queries perform simple pattern matching and display results. These are just regular function calls.

Example:

await corkus.ingredient.search_by_level(30)
Moderate

Moderate queries introduce conditionality for more advanced searches. The only concept that you need to understand are LogicSymbol

Example:

await corkus.ingredient.search_by_professions(
    LogicSymbol.AND,
    [ProfessionType.WOODWORKING, ProfessionType.ALCHEMISM]
)
Complex

Complex queries allow to search for specific fields in the objects. For these searches you need to use both LogicSymbol and keyword arguments.

Example:

await corkus.ingredient.search_by_item_modifiers(
    LogicSymbol.AND,
    durability = -20,
    strength = 20
)