> ## Documentation Index
> Fetch the complete documentation index at: https://docs.r28.ai/charter/llms.txt
> Use this file to discover all available pages before exploring further.

# search_repositories

> Search repositories with qualifiers, e.g. 'topic:cli language:go stars:>500'. Rate limited to 30 requests per minute.

<div className="tool-route"><span className="tool-row-method" data-method="GET">GET</span><code>{"https://api.github.com/search/repositories"}</code></div>

```python github_search_repositories.py theme={null}
from charter.packs import github

result = await github.search_repositories.ainvoke({"q": ...})
```

<Note>
  Requires `repo`, `read:user`. Pages by number: `page` with `per_page`.
</Note>

## Query parameters

<div className="reference-table">
  | Field                                                     | Type                                                                  | Description                                                                                                                                                                                                |
  | --------------------------------------------------------- | --------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | `perPage`                                                 | `integer`                                                             | The number of results per page (max 100). Defaults to 30. <span className="field-constraints">≥ 1; ≤ 100; defaults to `30`</span>                                                                          |
  | `page`                                                    | `integer`                                                             | The page number of the results to fetch. Defaults to 1. <span className="field-constraints">≥ 1; defaults to `1`</span>                                                                                    |
  | `order`                                                   | [SortDirection](/charter/charter/packs/github/issues/objects#sortdirection)   | Determines whether the first search result returned is the highest number of matches (`desc`) or lowest (`asc`). Ignored unless `sort` is provided. GitHub uses `desc` when this is absent.                |
  | `q` <span className="required" title="required">\*</span> | `string`                                                              | The query containing one or more search keywords and qualifiers, e.g. `tetris language:assembly stars:&gt;100`. Qualifiers include `language:`, `stars:`, `forks:`, `topic:`, `org:`, `user:`, `license:`. |
  | `sort`                                                    | [RepoSearchSort](/charter/charter/packs/github/search/objects#reposearchsort) | Sorts the results by number of stars, forks, help-wanted issues, or how recently the items were updated. Default: best match.                                                                              |
</div>
