---
title: "How to fetch content from a private bitbucket repository"
canonical: "https://support.appfire.com/space/MARKDOWN/72384927/How%20to%20fetch%20content%20from%20a%20private%20bitbucket%20repository"
format: markdown
---
> Macro (aura-html)

The following example demonstrates how to fetch a private Bitbucket repository. 

To fetch content from a private Bitbucket repository, perform the following:

1. [Create a private Bitbucket repository profile](https://appfire.atlassian.net/wiki/spaces/MARKDOWN/pages/72384927/How+to+fetch+content+from+a+private+bitbucket+repository#Create-a-private-Bitbucket-repository-profile)
2. [Add ](https://appfire.atlassian.net/wiki/spaces/MARKDOWN/pages/72384927/How+to+fetch+content+from+a+private+bitbucket+repository#Add-Markdown-from-a-URL-macro)*[Markdown from a URL](https://appfire.atlassian.net/wiki/spaces/MARKDOWN/pages/72384927/How+to+fetch+content+from+a+private+bitbucket+repository#Add-Markdown-from-a-URL-macro)*[ macro](https://appfire.atlassian.net/wiki/spaces/MARKDOWN/pages/72384927/How+to+fetch+content+from+a+private+bitbucket+repository#Add-Markdown-from-a-URL-macro)

### Create a private Bitbucket repository profile

For example, consider the values specified as per the following table:

| **Parameter** | **Values** |
| --- | --- |
| *Profile name* | BB-private-repo-rel-url |
| *Profile type* | URL |
| *URL* | [https://api.bitbucket.org/2.0/repositories](https://api.bitbucket.org/2.0/repositories) |
| *User* | bobswift-test |
| *Password* | App password (See how to create [app passwords](https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/))<br>> 📝 Following [this](https://community.atlassian.com/t5/Bitbucket-articles/Announcement-Bitbucket-Cloud-account-password-usage-for-Git-over/ba-p/1948231) update, the user account password when using basic authentication is no longer valid. |

![image](media://f86a1dbf-1dd7-4208-af06-f2d78dc13ce5)


### Add Markdown from a URL macro

Once you have created a profile, create or edit a page where you want to add the macro, and add the *Markdown from a URL* macro. As per our example, consider the specified as per the following table:

| **Parameter** | **Value** |
| --- | --- |
| *Profile* | BB-private-repo-rel-url |
| *URL to markdown file* | /bobswift-test/private_test_repo/src/master/markdown/headings.md |

![image](media://b25c3bd4-b5e3-45c2-80ff-b5dd5eae6ef3)

The content is automatically rendered from the specified URL.

## Additional links

- [App configuration](https://appfire.atlassian.net/wiki/x/PIRQB)
- [Add a GitHub profile](https://appfire.atlassian.net/wiki/spaces/MARKDOWN/pages/72385102)
- [Add a GitLab profile](https://appfire.atlassian.net/wiki/spaces/MARKDOWN/pages/72384732)
- [Create a profile with URL](https://appfire.atlassian.net/wiki/spaces/MARKDOWN/pages/72384893)