Search code examples
bitbucketbitbucket-api

Bitbucket search repo API


I've been trying to find an API to query repositories on BitBucket based on language they're written in. Few years ago I've been using

https://bitbucket.org/repo/all/relevance?language=X

But right now the link is dead.

There is a new API under

https://bitbucket.org/api/2.0/repositories

But theres no documentation on any query parameters.

Is there any way to browse public repos?


Solution

  • No, at this moment there is no way to browse repositories on Bitbucket without using the search function. There is a proposal to add such a feature, expressed in issue #2934, which you might want to vote/watch.

    On the API side, you can browse all public repositories using the endpoint https://bitbucket.org/api/2.0/repositories/, but you can't search and/or filter results.