Search
Search for specific items on GitHub.
Operations
| Method | Endpoint | Description |
|---|---|---|
GET | /search/code | Search code |
GET | /search/commits | Search commits |
GET | /search/issues | Search issues and pull requests |
GET | /search/labels | Search labels |
GET | /search/repositories | Search repositories |
GET | /search/topics | Search topics |
GET | /search/users | Search 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.