curl --request POST \
--url https://apigcp.trynia.ai/v2/github/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "<string>",
"repository": "<string>",
"per_page": 30,
"page": 1
}
'{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Search code in a GitHub repository using GitHub’s Code Search API.
Rate limited to 10 requests/minute by GitHub. Requires authentication for private repos (via user’s GitHub App installation).
curl --request POST \
--url https://apigcp.trynia.ai/v2/github/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "<string>",
"repository": "<string>",
"per_page": 30,
"page": 1
}
'{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}API key must be provided in the Authorization header
Successful Response
Was this page helpful?