# GitHub API on SandBase

> GitHub data API endpoints available through one SandBase API key.

Source: https://www.sandbase.ai/apis/github

- Endpoints: 16
- Call: `POST https://api.sandbase.ai/v1/api/{vendor}/{endpoint}` with `Authorization: Bearer $SANDBASE_API_KEY` and the parameters as a JSON body
- Billing: pay per call from one SandBase balance; no provider account or subscription needed

## Guides

- [Best GitHub API in 2026: Pricing Compared](https://blog.sandbase.ai/best-github-api-2026/)

## Endpoints

- [GitHub Issue and PR Search](https://www.sandbase.ai/apis/github/search-issues.md): From $0.0024 per call
  Search issues and pull requests across GitHub with GitHub's own search syntax (repo:, is:pr, is:issue, author:, label:, opened:...), with each result's author, state, labels, counts and body. Use it t...
- [GitHub Issue Comments](https://www.sandbase.ai/apis/github/issue-comments.md): From $0.0012 per call
  List the comments on a GitHub issue or pull request by its URL, oldest first, with each commenter's login, their relationship to the repository, reactions and the comment text.
- [GitHub Repository](https://www.sandbase.ai/apis/github/repository.md): From $0.0012 per call
  Fetch a GitHub repository's metadata by URL (stars, forks, language, topics, license, and timestamps).
- [GitHub Repository Contributors](https://www.sandbase.ai/apis/github/repository-contributors.md): From $0.0012 per call
  List the people who have committed to a GitHub repository by repository URL, ordered by number of commits, with each contributor's login, profile URL and commit count. Look each one up with github.use...
- [GitHub Repository Forks](https://www.sandbase.ai/apis/github/repository-forks.md): From $0.0012 per call
  List the forks of a GitHub repository by repository URL, with each fork's owner, description, stars, language and last push. Sort by newest, oldest or most starred.
- [GitHub Repository Issues](https://www.sandbase.ai/apis/github/repository-issues.md): From $0.0012 per call
  List a GitHub repository's issues and pull requests by repository URL (GitHub lists pull requests as issues), with each one's author, state, labels, counts and body. Filter by state, sort and last-act...
- [GitHub Repository README](https://www.sandbase.ai/apis/github/repository-readme.md): From $0.0012 per call
  Get a GitHub repository's README by repository URL, as the Markdown text the maintainers wrote, with its file name, path and size. Use it to learn what a project does, which models and tools it uses, ...
- [GitHub Trending Developers](https://www.sandbase.ai/apis/github/trending-developers.md): From $0.0012 per call
  List trending GitHub developers (rank, username, name, avatar, and their most popular repository), optionally filtered by programming language and time range.
- [GitHub Trending Repositories](https://www.sandbase.ai/apis/github/trending-repositories.md): From $0.0012 per call
  List GitHub Trending repositories (rank, stars, stars gained today, language, and description), filterable by language and time window.
- [GitHub User](https://www.sandbase.ai/apis/github/user.md): From $0.0012 per call
  Fetch a GitHub user's public profile by handle (name, bio, company, location, followers, and repo counts).
- [GitHub User Activity](https://www.sandbase.ai/apis/github/user-activity.md): From $0.0012 per call
  List a GitHub user's public contribution activity by handle (grouped monthly summaries of commits, pull requests, and issues with repository links) for a given year.
- [GitHub User Contributions](https://www.sandbase.ai/apis/github/user-contributions.md): From $0.0012 per call
  Fetch a GitHub user's contribution graph for a year (total contributions plus per-day counts and heatmap intensity).
- [GitHub User Followers](https://www.sandbase.ai/apis/github/user-followers.md): From $0.0012 per call
  List a GitHub user's followers by handle (each follower's login, type, avatar, and profile URL) with pagination.
- [GitHub User Following](https://www.sandbase.ai/apis/github/user-following.md): From $0.0012 per call
  List the GitHub users a given user follows by handle (each account's login, type, avatar, and profile URL) with pagination.
- [GitHub User Pull Requests](https://www.sandbase.ai/apis/github/user-pull-requests.md): From $0.0012 per call
  List a GitHub user's public pull requests by handle (title, repository, state, creation date, and URL) with optional date filtering and pagination.
- [GitHub User Repositories](https://www.sandbase.ai/apis/github/user-repositories.md): From $0.0012 per call
  List a GitHub user's public repositories (name, description, language, stars, and forks) with sorting and cursor pagination.

## Use it through SandBase

- Base URL: `https://api.sandbase.ai/v1`, with `Authorization: Bearer $SANDBASE_API_KEY`.
- Language models use the OpenAI-compatible `POST /v1/chat/completions`; media models use `POST /v1/run`; data APIs use `POST /v1/api/{vendor}/{endpoint}`.
- AI agents can connect through the SandBase MCP server or CLI: https://www.sandbase.ai/skill.md
- Every model and API page has a Markdown twin at the same URL plus `.md`. Full index: https://www.sandbase.ai/llms.txt
