Search + K

Command Palette

Search for a command to run...

Sign In

Get a label

GET /repos/{owner}/{repo}/labels/{name}
Copy endpoint
https://api.github.com

Gets a label using the given name.

Parameters

path Path Parameters

Name Type
owner required

The account owner of the repository. The name is not case sensitive.

string
repo required

The name of the repository without the .git extension. The name is not case sensitive.

string
name required
string

Responses

200 application/json

Response

interface Label {
id: number;
node_id: string;
url: string;
name: string;
description: string | null;
color: string;
default: boolean;
}

Client Errors

404 application/json

Resource not found

interface BasicError {
message?: string;
documentation_url?: string;
url?: string;
status?: string;
}