GitHub
GitHub Repo Issues API
A repository's issues with title, body, state, labels, author, comment count and timestamps. Pull requests are filtered out by default. Costs 1 credit per request.
POST/api/v1/github/repo/issues
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/jsonurlstringrequiredA github.com/<owner>/<repo> URL or a bare <owner>/<repo>.
Example: facebook/react
typeenum<string>default:issueissue (default, PRs filtered out), pr, or all.
stateenum<string>default:openopen, closed or all.
labelsstringComma-separated label names.
sortenum<string>created, updated or comments.
directionenum<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.repo_issues("facebook/react", state="open", per_page=50)
print(result)Response
"page": 1,
"per_page": 30,
"has_next": true
},
"response_time": 2559
}