Bitbucket REST API for code search of repo for keywords in master branch


I need to look for text key words such as “password=”, but I’d rather not read every file in every repo (which I can do using a Python script using files?at=master and then raw). But, is there a way using the new BB code search API (referred to in and{username}/search/code) to search for text in the master branch of the project/repos? Also, I’d like to look for a list of text/dictionary such as “password=”, “password:”, etc. - is that possible?