Get all of a repository's labels
GET
/repos/{owner}/{repo}/labels
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”owner
required
string
Owner of the repo
repo
required
string
Name of the repo
Query Parameters
Section titled “Query Parameters”sort
string
Specifies the sorting method: mostissues, leastissues, or reversealphabetically.
page
integer
Page number of results to return (1-based)
limit
integer
Page size of results
Responses
Section titled “Responses”LabelList
Media typeapplication/json
Array<object>
Label a label to an issue or a pr
object
color
string
description
string
exclusive
boolean
id
integer format: int64
is_archived
boolean
name
string
url
string
Example
[ { "color": "00aabb", "exclusive": false, "is_archived": false }]Headers
Section titled “Headers”X-Total-Count
integer format: int64
The total number of labels
APINotFound is a not found error response
Media typeapplication/json
object
errors
Array<string>
message
string
url
string
Examplegenerated
{ "errors": [ "example" ], "message": "example", "url": "example"}