Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to get information about specific branch Edited

Hello, I'm using Bitbucket api thru HttpRequest. I want to get information about specific branch.

/rest/api/1.0/projects/project_name/repos/repo_name/branches/  - work fine

rest/api/1.0/projects/project_name/repos/repo_name/branches/default - works fine

but how ask about specific branch?




rest/api/1.0/projects/project_name/repos/repo_name/branches/refs/heads/develop -don't work 

Is it possible? 

1 answer

1 accepted

0 votes
Answer accepted

Hi @aksimoN you can check the documentation page for the Bitbucket REST API:

The rest endpoint you should check is referenced as:


 You can use either the "base" or "filterText" params depending on the use case you have.

Maciej Adamczak
Atlassian Developer

I still don't get it:


GET /rest/api/1.0/projects/Project_name/repos/Repo_name/branches?develop

 I get:

"size": 2,
"limit": 25,
"isLastPage": true,
"values": [
"id": "refs/heads/develop",
"displayId": "develop",
"type": "BRANCH",
"latestCommit": "8454018d5221826cc4d034197b84b6e83802e4d5",
"latestChangeset": "8454018d5221826cc4d034197b84b6e83802e4d5",
"isDefault": true
"id": "refs/heads/master",
"displayId": "master",
"type": "BRANCH",
"latestCommit": "d481152fd1c55fb7a049a25044ff5c532bdf231e",
"latestChangeset": "d481152fd1c55fb7a049a25044ff5c532bdf231e",
"isDefault": false
"start": 0

 still return 2 branches

you need to construct the URL to provide pairs of param names and values, e.g.:




First one still gets me both branches but


Second one working fine. I think I get it now 

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket Pipelines

Bitbucket Pipelines Runners is now in open beta

We are excited to announce the open beta program for self-hosted runners. Bitbucket Pipelines Runners is available to everyone. Please try it and let us know your feedback. If you have any issue...

855 views 16 11
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you