Get List of all the repos in all projects which have a certain file with extension *.txt

Hi guys,

I have been trying to curl the bitbucket api to get a list of all projects in bitbucket in our org which has font file with certain name like “font.txt”.

Is there a way to get all the repo names which has this file in a json format or any format for say ?

I was trying to curl with this command-

https://bitbucket.org_name.com/rest/api/1.0/projects/CSWO/repos/repo_name/