GitHub logo

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

OperationPrice
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

MethodEndpointDescription
GET/userAuthenticated user info
GET/user/reposList your repositories
GET/repos/{owner}/{repo}Repository details
GET/repos/{owner}/{repo}/issuesList issues
POST/repos/{owner}/{repo}/issuesCreate issue
GET/repos/{owner}/{repo}/pullsList PRs
GET/search/repositoriesSearch repos
GET/search/codeSearch code

📖 Full API reference: GitHub REST API Docs

Technical Specs

SpecValue
AuthOAuth 2.0 (user-level)
ProxyNango (auto token refresh)
ExecutionSync
Rate limitInherits GitHub's per-user limits

Try GitHub

Test this model in the Sandbase Playground with your own prompts.

Open in Playground