Can't filter public repos with Bitbucket API

Hi. I would like to calculate some metrics on bitbucket’s public repositories.

I can request them with https://api.bitbucket.org/2.0/repositories

But I’d like to apply some filters such as language.
e.g. https://api.bitbucket.org/2.0/repositories?q=language="java"

But if I do this, I get the error:
Querying and sorting are not supported on this resource without a role (member, contributor, admin, or owner)

I can include a role, (e.g. https://api.bitbucket.org/2.0/repositories/?role=member&q=language="java") but all these roles filter out public repositories from the results.

Is there a way to do filtering on public repos? Thanks!