Get repository license
Returns the detected repository license and its Base64-encoded file content.
GET
/github/repos/{owner}/{repo}/licenseNo authentication requiredPath parameters2
| Name | Type | Description |
|---|---|---|
owner* | string | The repository owner login. The value is case-insensitive. |
repo* | string | The repository name without the .git suffix. The value is case-insensitive. |
Query parameters1
| Name | Type | Description |
|---|---|---|
ref | string | A Git reference, such as refs/heads/main. |
Headers2
| Name | Type | Description |
|---|---|---|
If-None-Match | string | An ETag for conditional requests. |
If-Modified-Since | string | An HTTP date for conditional requests. |
Responses
application/jsonSchemaGithubContent & object
Must match all schemas
Schema 1object
Additional properties are allowed
Schema 2object
Additional properties are allowed
The original GitHub response.