Search public GitHub repositories
github_search_repositoriesSearch public GitHub repositories. Read-only: returns public data and changes nothing. Costs 1 credit per request.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fork | Yes | Whether to include forks: "exclude" (default), "include" (`fork:true`), or "only" (`fork:only`). | exclude |
| size | No | Filter by repository size in KB. Provide any of gt / gte / lt / lte; combine a lower and upper bound for a range. | |
| sort | Yes | Sort field. Defaults to relevance ("best-match"). | best-match |
| count | Yes | Number of results to return (1–10). Defaults to 10. | |
| forks | No | Filter by fork count. Provide any of gt / gte / lt / lte; combine a lower and upper bound for a range. | |
| order | Yes | Sort direction. Defaults to "desc". | desc |
| query | No | Free-text search terms, matched against the default fields for this search type, e.g. "web framework". | |
| repos | No | Limit to these "owner/name" repositories. Maps to `repo:`. | |
| stars | No | Filter by star count. Provide any of gt / gte / lt / lte; combine a lower and upper bound for a range. | |
| cursor | No | The previous response's `nextCursor`, to fetch the next page. Omit it for the first page. | |
| owners | No | Limit to these owners (users or orgs). Maps to `user:`. | |
| pushed | No | Filter by date of last push. Provide any of gt / gte / lt / lte as YYYY-MM-DD dates; combine a lower and upper bound for a range. | |
| topics | No | Require each of these topics. Maps to `topic:`. | |
| created | No | Filter by creation date. Provide any of gt / gte / lt / lte as YYYY-MM-DD dates; combine a lower and upper bound for a range. | |
| license | No | SPDX license key, e.g. "mit". Maps to `license:`. | |
| archived | No | Filter by archived state. Maps to `archived:`. | |
| language | No | Primary language, e.g. "TypeScript". Maps to `language:`. | |
| visibility | No | Repository visibility. Maps to `is:public` / `is:private`. |