Zum Inhalt springen
GET /v1/repo

Repository detail

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/bitbucket-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

curl "https://api.oanor.com/bitbucket-api/v1/repo" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/bitbucket-api/v1/repo", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/bitbucket-api/v1/repo");
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/repo",
    headers={"x-oanor-key": "oanor_test_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "scm": "git",
        "name": "Atlassian Event",
        "size": 2849158,
        "slug": "atlassian-event",
        "type": "repository",
        "uuid": "{3d76c1e2-d4bb-4baf-a957-ad7ba71f88c2}",
        "links": {
            "html": {
                "href": "https://bitbucket.org/atlassian/atlassian-event"
            },
            "self": {
                "href": "https://api.bitbucket.org/2.0/repositories/atlassian/atlassian-event"
            },
            "tags": {
                "href": "https://api.bitbucket.org/2.0/repositories/atlassian/atlassian-event/refs/tags"
            },
            "clone": [
                {
                    "href": "https://bitbucket.org/atlassian/atlassian-event.git",
                    "name": "https"
                },
                {
                    "href": "[email protected]:atlassian/atlassian-event.git",
                    "name": "ssh"
                }
            ],
            "forks": {
                "href": "https://api.bitbucket.org/2.0/repositories/atlassian/atlassian-event/forks"
            },
            "hooks": {
                "href": "https://api.bitbucket.org/2.0/repositories/atlassian/atlassian-event/hooks"
            },
            "avatar": {
                "href": "https://bytebucket.org/ravatar/%7B3d76c1e2-d4bb-4baf-a957-ad7ba71f88c2%7D?ts=default"
            },
            "source": {
                "href": "https://api.bitbucket.org/2.0/repositories/atlassian/atlassian-event/src"
            },
            "commits": {
                "href": "https://api.bitbucket.org/2.0/repositories/atlassian/atlassian-event/commits"
            },
            "branches": {
                "href": "https://api.bitbucket.org/2.0/repositories/atlassian/atlassian-event/refs/branches"
            },
            "watchers": {
                "href": "https://api.bitbucket.org/2.0/repositories/atlassian/atlassian-event/watchers"
            },
            "downloads": {
                "href": "https://api.bitbucket.org/2.0/repositories/atlassian/atlassian-event/downloads"
            },
            "pullrequests": {
                "href": "https://api.bitbucket.org/2.0/repositories/atlassian/atlassian-event/pullrequests"
            }
        },
        "owner": {
            "type": "team",
            "uuid": "{02b941e3-cfaa-40f9-9a58-cec53e20bdc3}",
            "links": {
                "html": {
                    "href": "https://bitbucket.org/%7B02b941e3-cfaa-40f9-9a58-cec53e20bdc3%7D/"
                },
                "self": {
                    "href": "https://api.bitbucket.org/2.0/workspaces/%7B02b941e3-cfaa-40f9-9a58-cec53e20bdc3%7D"
                },
                "avatar": {
                    "href": "https://bitbucket.org/account/atlassian/avatar/"
                }
            },
            "username": "atlassian",
            "display_name": "Atlassian"
        },
        "parent": null,
        "project": {
            "k
…