Get a repository README
Returns the original GitHub README response. JSON content remains Base64-encoded; raw and HTML media types are also supported.
GET
/github/repos/{owner}/{repo}/readmeNo 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 commit, branch, or tag. Defaults to the repository default branch. |
Headers3
| Name | Type | Description |
|---|---|---|
Accept | string | Use application/vnd.github+json for metadata, application/vnd.github.raw+json for raw text, or application/vnd.github.html+json for HTML. Default: |
If-None-Match | string | An ETag for conditional requests. |
If-Modified-Since | string | An HTTP date for conditional requests. |
Responses
Schemaobject
Additional properties are allowed
typestring
encodingstring
sizeinteger
namestring
pathstring
contentstring
shastring
urlstring
Format: uri
html_urlstring
Format: uri
download_urlstring | nullNullable
Format: uri
The original README response in the requested media type.