Skip to content
AnyMeta.
AnyMetaGitHubRepository

Get repository license

Returns the detected repository license and its Base64-encoded file content.

GET/github/repos/{owner}/{repo}/licenseNo authentication required
Upstream documentation

Path parameters2

Path parameters
NameTypeDescription
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

Query parameters
NameTypeDescription
refstring

A Git reference, such as refs/heads/main.

Headers2

Headers
NameTypeDescription
If-None-Matchstring

An ETag for conditional requests.

If-Modified-Sincestring

An HTTP date for conditional requests.

Responses

application/json
SchemaGithubContent & object

Must match all schemas

Schema 1object
Additional properties are allowed
Schema 2object
Additional properties are allowed

The original GitHub response.