Skip to content
AnyMeta.
AnyMetaGitHubRepository

List repository root contents

Lists files and directories at the root of a public repository for a commit, branch, or tag.

GET/github/repos/{owner}/{repo}/contentsNo 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 commit, branch, or tag. Defaults to the default branch.

Headers2

Headers
NameTypeDescription
If-None-Matchstring

An ETag for conditional requests.

If-Modified-Sincestring

An HTTP date for conditional requests.

Responses

application/json
SchemaGithubContent[]
Array itemobject
Additional properties are allowed

The original GitHub response.