Skip to main content
POST
/
api
/
bitbucket
/
commits
/bitbucket/commits
curl --request POST \
  --url https://api.anysite.io/api/bitbucket/commits \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "commit": "<string>",
  "timeout": 300
}
'
[
  {
    "hash": "<string>",
    "@type": "BitbucketCommit",
    "text": "",
    "created_at": "",
    "author_raw": "",
    "author": {
      "@type": "BitbucketAccount",
      "uuid": "",
      "display_name": "",
      "nickname": "<string>",
      "account_id": "<string>",
      "account_type": "",
      "account_status": "<string>",
      "is_staff": false,
      "location": "<string>",
      "created_at": "<string>",
      "image": "<string>",
      "web_url": ""
    },
    "parents": [],
    "repository_alias": "",
    "web_url": ""
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
commit
string
required

Commit as a Bitbucket commit URL, 'workspace/repo@hash', or 'workspace/repo/hash'. The hash may be a full or short commit hash, a branch name, or a tag.

Minimum string length: 1
Examples:

"https://bitbucket.org/atlassian/aui/commits/94f54d9b83d34156dd1849e0a75fb0bc8b171218"

"atlassian/aui@94f54d9"

timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500

Response

Successful Response

hash
string
required
@type
string
default:BitbucketCommit
text
string
default:""
created_at
string
default:""
author_raw
string
default:""
author
object | null
parents
string[]
repository_alias
string
default:""
web_url
string
default:""