I have gone through the REST API docs for BB cloud but could not find any documentation for Code Search. Is it public? If not, then, are there any plans to make it public in the near future?
Hi @dev-z,
We're working on the public API for code search in Bitbucket Cloud and it will be available in the near future.
Kind regards,
Martin
Product Manager
Bitbucket Cloud
The code search public API is now available,
https://blog.bitbucket.org/2018/04/05/bitbucket-code-search-api-now-available
Kind regards,
Martin
Product Manager
Bitbucket Cloud
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi!
I have not found in documentation, but you can use method
using develop mode.
Where I got this request.
api.bitbucket.org/internal/search/account/%7Bf728b512-c0be-4020-9168-23bb4e04c486%7D/code?q=repo%3Aconfluence-newcode-macro-plugin%20import&fields=%2Bcode.values.repository.mainbranch.name%2C%2Bcode.values.repository.mainbranch.target.hash
Hence you can use it.
Hope it helps.
Cheers,
Gonchik Tsymzhitov
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Gonchik Tsymzhitov,
I had already seen the networks requests in my browser's developer tools. But on seeing it, I noticed that is uses the /internal path.
api.bitbucket.org/internal/search
It seems that is some internal API which they have not made public. So is it safe to use or illegal to use?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.