cURL
curl --request POST \ --url https://apigcp.trynia.ai/v2/github/search \ --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).
Code search query
Repository in owner/repo format
Results per page
1 <= x <= 100
Page number
x >= 1
Successful Response
Was this page helpful?