cURL
curl --request POST \ --url https://apigcp.trynia.ai/v2/github/search \ --header 'Content-Type: application/json' \ --data ' { "query": "useEffect cleanup destroy", "repository": "facebook/react", "per_page": 30, "page": 1 } '
{ "total_count": 123, "items": [ { "path": "<string>", "name": "<string>", "text_matches": [ "<string>" ] } ] }
Uses GitHub’s Code Search API to find code matches. Rate limited to 10 requests/minute. Works with public repos (no auth needed) and private repos (via user’s GitHub App installation).
Code search query
"useEffect cleanup destroy"
Repository in owner/repo format
"facebook/react"
1 <= x <= 100
x >= 1
Search results
Show child attributes
Was this page helpful?