Search

Search for specific items on GitHub.

Operations

MethodEndpointDescription
GET/search/codeSearch code
GET/search/commitsSearch commits
GET/search/issuesSearch issues and pull requests
GET/search/labelsSearch labels
GET/search/repositoriesSearch repositories
GET/search/topicsSearch topics
GET/search/usersSearch users

Example

Search code, with the TypeScript SDK:

ts
import { GitHubV3REST } from "github";

const client = new GitHubV3REST({
  baseUrl: "https://api.github.com",
});

const result = await client.search.code({
  q: "q",
});
console.log(result);
Nine more languages

The same call exists in every SDK. See SDKs for the other nine.