/v1/repo
Repository detail
Pruébalo en vivo
10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.
Funciona. Consigue una clave API y úsala en tu proyecto.
Obtener una clave APIFragmentos de código
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_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"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
…