GitHub Licenses Get For Repo
1 credits/call
ae_github_licenses_get_for_repo
View the open-source license used by a GitHub repository, including raw text or rendered HTML.
1 credits/call
Pricing
1 credits/call
| Condition | Charge |
|---|---|
| Each call | 1 credits/call |
Parameters
Optional parameters use the platform defaults when omitted.
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
ref | string | No | The Git reference for the results you want to list. The `ref` for a branch can be formatted either as `refs/heads/<branch name>` or simply `<branch name>`. To reference a pull request use `refs/pull/<number>/merge`. | — |
repo | string | Yes | The name of the repository without the `.git` extension. The name is not case sensitive. | — |
owner | string | Yes | The account owner of the repository. The name is not case sensitive. | — |
Invocation example
Copy the request and explore its response example.
POST
/agent-api/v1/tool/executeX-Api-KeyRequest coderequest.sh
curl --request POST \
--url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_github_licenses_get_for_repo' \
--header "X-Api-Key: $AGENTEARTH_API_KEY" \
--header 'Content-Type: application/json' \
--data-raw '{
"params": {
"owner": "njvisionpower",
"repo": "Safety-Helmet-Wearing-Dataset"
}
}'Response exampleresponse.json
{
"_links": {
"git": "https://api.github.com/repos/njvisionpower/Safety-Helmet-Wearing-Dataset/git/blobs/61da94bb7a1f6f6d2a684127386f80bb6548676a",
"html": "https://github.com/njvisionpower/Safety-Helmet-Wearing-Dataset/blob/master/LICENSE",
"self": "https://api.github.com/repos/njvisionpower/Safety-Helmet-Wearing-Dataset/contents/LICENSE?ref=master"
},
"content": "TUlUIExpY2Vuc2UKCkNvcHlyaWdodCAoYykgMjAxOSBuanZpc2lvbnBvd2Vy\nCgpQZXJtaXNzaW9uIGlzIGhlcmVieSBncmFudGVkLCBmcmVlIG9mIGNoYXJn\nZSwgdG8gYW55IHBlcnNvbiBvYnRhaW5pbmcgYSBjb3B5Cm9mIHRoaXMgc29m\ndHdhcmUgYW5kIGFzc29jaWF0ZWQgZG9jdW1lbnRhdGlvbiBmaWxlcyAodGhl\nICJTb2Z0d2Fy",
"download_url": "https://raw.githubusercontent.com/njvisionpower/Safety-Helmet-Wearing-Dataset/master/LICENSE",
"name": "LICENSE",
"type": "file",
"url": "https://api.github.com/repos/njvisionpower/Safety-Helmet-Wearing-Dataset/contents/LICENSE?ref=master"
}This example shows part of the response. Copied content is valid JSON.

