Search repositories
search_repositoriesSearch public GitHub repositories by keywords, topics, language, stars, activity dates, or license to find repos matching specific criteria.
Instructions
Search public GitHub repositories (GET /search/repositories) by any combination of keywords, topics, language, stars, activity dates and license. Matching: 'query' keywords match the repo name, description and topics (not the README unless you add in:readme). 'topics' is stricter: each listed topic must be an exact tag on the repo, and all of them must be present (AND). If you are unsure of exact topic names, call search_topics first. Archived repos are excluded unless include_archived is true; forks are excluded by GitHub by default. Each result includes: full_name (owner/repo), stars, forks, open issues + PRs (GitHub counts both together), primary language, license (SPDX id), last push date, ARCHIVED/fork flags, description, topics and URL. The response also shows the exact GitHub query used and the total match count. Other GitHub repo attributes can be filtered by adding qualifiers to 'query' (see its description), e.g. forks, size, owner, template status, help-wanted issue count.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | Sort order. Defaults to 'stars' when no free-text query is given, otherwise 'best-match'. | |
| limit | No | Number of results to return (1-100, default 10) | |
| order | No | desc | |
| query | No | Keywords matched against name, description and topics. You can also append raw GitHub qualifiers: in:name | in:description | in:topics | in:readme (where keywords must appear), user:NAME or org:NAME (owner), forks:>=N, size:>=N (KB), topics:>=N (number of topics), followers:>=N, good-first-issues:>=N, help-wanted-issues:>=N, template:true, fork:true or fork:only (include forks), mirror:false, created:/pushed: with date ranges like 2025-01-01..2025-06-30. Example: 'payment gateway org:stripe forks:>=50'. | |
| offset | No | Number of results to skip, for paging (default 0) | |
| topics | No | Repos must have ALL of these topics, e.g. ['java','spring-boot'] | |
| license | No | License key, e.g. 'mit', 'apache-2.0', 'gpl-3.0' | |
| language | No | Primary language, e.g. 'Java', 'TypeScript', 'Go' | |
| min_stars | No | Minimum star count | |
| pushed_after | No | Only repos with a push on or after this date (YYYY-MM-DD). Good proxy for 'still maintained'. | |
| created_after | No | Only repos created on or after this date (YYYY-MM-DD) | |
| include_archived | No | Include archived (read-only) repositories |