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


#1

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 https://blog.bitbucket.org/2018/04/05/bitbucket-code-search-api-now-available/ and https://developer.atlassian.com/bitbucket/api/2/reference/resource/teams/{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?