github_search_code
Search GitHub code by keyword and qualifiers such as language, repo, path, or filename to locate files and usage examples. Returns up to 1,000 results with paging; default branches only.
Instructions
Search code across GitHub. Only default branches are indexed and only files under 384 KB. The query needs a real search term, not just qualifiers. This endpoint allows ten requests per minute and returns at most 1,000 results.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | Yes | The search query. Combine a term with qualifiers: 'retry in:file language:python repo:owner/name'. Useful qualifiers are in:file, in:path, language:, repo:, org:, user:, path:, filename:, extension:, size:. | |
| page | No | The page number of the results to fetch. Defaults to 1. | |
| perPage | No | The number of results per page (max 100). Defaults to 30. |