Using Bitbucket\'s Cloud API 2.0 and running this query for example...
https://api.bitbucket.org/2.0/workspaces/MyWorkspace/search/code?search_query=myfile.json+repo: