GitHub
SandBaseapi
Published June 20, 2026
About
Access the full GitHub REST API through OAuth. Manage repositories, issues, pull requests, users, organizations, and more — powered by Nango Connector Gateway.
Documentation
GitHub Connector
Access the full GitHub REST API through OAuth. Manage repositories, issues, pull requests, users, organizations, and more.
Pricing
| Operation | Price |
|---|---|
| Successful API call (2xx) | $0.001 |
| Failed call (4xx/5xx) | Free |
Quick Test (curl)
# Get authenticated user
curl -X POST https://api.sandbase.ai/v1/run \
-H "Authorization: Bearer sk-your-key" \
-H "Content-Type: application/json" \
-d '{"model":"github","endpoint":"/user","method":"GET"}'
# List your repos (paginated)
curl -X POST https://api.sandbase.ai/v1/run \
-H "Authorization: Bearer sk-your-key" \
-H "Content-Type: application/json" \
-d '{"model":"github","endpoint":"/user/repos","method":"GET","params":{"per_page":5,"sort":"updated"}}'
# Get a specific repo
curl -X POST https://api.sandbase.ai/v1/run \
-H "Authorization: Bearer sk-your-key" \
-H "Content-Type: application/json" \
-d '{"model":"github","endpoint":"/repos/octocat/Hello-World","method":"GET"}'
# Create an issue
curl -X POST https://api.sandbase.ai/v1/run \
-H "Authorization: Bearer sk-your-key" \
-H "Content-Type: application/json" \
-d '{"model":"github","endpoint":"/repos/owner/repo/issues","method":"POST","body":{"title":"Bug report","body":"Description here"}}'
# Search repositories
curl -X POST https://api.sandbase.ai/v1/run \
-H "Authorization: Bearer sk-your-key" \
-H "Content-Type: application/json" \
-d '{"model":"github","endpoint":"/search/repositories","method":"GET","params":{"q":"language:go stars:>1000"}}'
Request Format
POST /v1/run
{
"model": "github",
"endpoint": "/user/repos", // GitHub API path
"method": "GET", // GET/POST/PUT/PATCH/DELETE
"params": {"per_page": 30}, // URL query params (optional)
"headers": {}, // Extra headers (optional)
"body": {}, // Request body for POST/PUT/PATCH (optional)
"retries": 0 // Retry on 5xx/timeout (optional, 0-5)
}
Common Endpoints
| Method | Endpoint | Description |
|---|---|---|
| GET | /user | Authenticated user info |
| GET | /user/repos | List your repositories |
| GET | /repos/{owner}/{repo} | Repository details |
| GET | /repos/{owner}/{repo}/issues | List issues |
| POST | /repos/{owner}/{repo}/issues | Create issue |
| GET | /repos/{owner}/{repo}/pulls | List PRs |
| GET | /search/repositories | Search repos |
| GET | /search/code | Search code |
📖 Full API reference: GitHub REST API Docs
Technical Specs
| Spec | Value |
|---|---|
| Auth | OAuth 2.0 (user-level) |
| Proxy | Nango (auto token refresh) |
| Execution | Sync |
| Rate limit | Inherits GitHub's per-user limits |
Try GitHub
Test this model in the Sandbase Playground with your own prompts.
Open in Playground