GitHub
GitHub Search API
Search GitHub across repositories, users, issues, code or commits, with GitHub's own query syntax and sorting. Costs 1 credit per request.
POST/api/v1/github/search
Authorizations
AuthorizationstringheaderrequiredBearer authentication header of the form Bearer <token>, where <token> is your Scavio API key (e.g. Bearer sk_live_your_key).
Body
application/jsonquerystringrequiredFree-text GitHub search query. GitHub's qualifier syntax works: language:python, stars:>1000, org:facebook.
Example: machine learning
typeenum<string>default:repositoriesrepositories, users, issues, code or commits.
sortstringGitHub sort field, e.g. stars, forks, updated, reactions.
orderenum<string>asc or desc.
per_pageintegerItems per page, 1-100.
pageintegerPage number, 1-based.
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
result = client.github.search("machine learning", type="repositories", sort="stars")
print(result)Response
"total_count": 1235785,
"incomplete_results": false,
"page": 1,
"per_page": 30,
"has_next": true
},
"response_time": 1370
}