[BitBucket] Does BitBucket have a public code search API?

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?

2 answers

1 accepted

This widget could not be displayed.

Hi @Ishtiaque Zafar,

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

This widget could not be displayed.
Gonchik Tsymzhitov Community Champion Nov 15, 2017

Hi! 

I have not found in documentation, but you can use method 

using develop mode. 3.PNG

 

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

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?

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Aug 10, 2018 in Bitbucket

What is your #1 piece of advice to new users getting started using Bitbucket?

Hello Community! My name is Claire Maynard, and I’m a Product Marketing Manager on the Bitbucket team. I’m interested in hearing what advice or tips you have for new users getting started on ...

263 views 14 2
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you