Ir al contenido
GET /v1/workspace/repos

Workspace repositories

Pruébalo en vivo

10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.

Encabezados personalizados (opcional)
api.oanor.com/bitbucket-api

Funciona. Consigue una clave API y úsala en tu proyecto.

Obtener una clave API

Fragmentos de código

curl "https://api.oanor.com/bitbucket-api/v1/workspace/repos" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/bitbucket-api/v1/workspace/repos", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/bitbucket-api/v1/workspace/repos");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/bitbucket-api/v1/workspace/repos",
    headers={"x-oanor-key": "oanor_test_..."}
)

Respuesta de ejemplo

Una respuesta real de este endpoint, capturada en la última comprobación de estado.

{
    "data": {
        "next": "https://api.bitbucket.org/2.0/repositories/atlassian?sort=-updated_on&pagelen=30&page=2",
        "page": 1,
        "size": 408,
        "values": [
            {
                "scm": "git",
                "name": "atlassian-connect-spring-boot",
                "size": 9008523,
                "slug": "atlassian-connect-spring-boot",
                "type": "repository",
                "uuid": "{4b29f711-fe1c-43aa-bc77-5db7a7430fed}",
                "links": {
                    "html": {
                        "href": "https://bitbucket.org/atlassian/atlassian-connect-spring-boot"
                    },
                    "self": {
                        "href": "https://api.bitbucket.org/2.0/repositories/atlassian/atlassian-connect-spring-boot"
                    },
                    "tags": {
                        "href": "https://api.bitbucket.org/2.0/repositories/atlassian/atlassian-connect-spring-boot/refs/tags"
                    },
                    "clone": [
                        {
                            "href": "https://bitbucket.org/atlassian/atlassian-connect-spring-boot.git",
                            "name": "https"
                        },
                        {
                            "href": "[email protected]:atlassian/atlassian-connect-spring-boot.git",
                            "name": "ssh"
                        }
                    ],
                    "forks": {
                        "href": "https://api.bitbucket.org/2.0/repositories/atlassian/atlassian-connect-spring-boot/forks"
                    },
                    "hooks": {
                        "href": "https://api.bitbucket.org/2.0/repositories/atlassian/atlassian-connect-spring-boot/hooks"
                    },
                    "avatar": {
                        "href": "https://bytebucket.org/ravatar/%7B4b29f711-fe1c-43aa-bc77-5db7a7430fed%7D?ts=1129854"
                    },
                    "source": {
                        "href": "https://api.bitbucket.org/2.0/repositories/atlassian/atlassian-connect-spring-boot/src"
                    },
                    "commits": {
                        "href": "https://api.bitbucket.org/2.0/repositories/atlassian/atlassian-connect-spring-boot/commits"
                    },
                    "branches": {
                        "href": "https://api.bitbucket.org/2.0/repositories/atlassian/atlassian-connect-spring-boot/refs/branches"
                    },
                    "watchers": {
                        "href": "https://api.bitbucket.org/2.0/repositories/atlassian/atlassian-connect-spring-boot/watchers"
                    },
                    "downloads": {
                        "href": "https://api.bitbucket.org/2.0/repositories/atlassian/atlassian-connect-spring-boot/downloads"
                    },
                    "pullrequests": {
                        "href": "https://api.bitbucket.org/2.0/rep
…