# Search Repositories

> Windows | Cross-platform

## Project compatibility

Windows | Cross-platform

## Overview

| Description | API Method | API Path |
| --- | --- | --- |
| The Search Repositories activity queries GitHub repositories using the standard search syntax with keywords and qualifiers such as owner, language, and topic. | GET | /search/repositories |

## Input

| Parameter | Description | Data Type |
| --- | --- | --- |
| Query | Search expression containing one or more keywords and qualifiers (for example, `org:my-org topic:devops`).  The REST API supports the same qualifiers as the web interface for GitHub. To learn more about the format of the query, see [Constructing a search query](https://docs.github.com/en/rest/search#constructing-a-search-query). See [Searching issues and pull requests](https://docs.github.com/en/search-github/searching-on-github/searching-issues-and-pull-requests) for a detailed list of qualifiers. | string |
| Sort | Optional sort field: `stars`, `forks`, `help-wanted-issues`, or `updated`. | string |
| Order | Optional sort direction, either `DESC` for highest‑match first or `ASC` for lowest‑match first. | string |
| Max records | Maximum number of repositories to return in a single page of results. | int32 |

## Output

| Parameter | Description | Data Type |
| --- | --- | --- |
| Search repositories | Search result payload containing the matched repositories. | Array |

:::note
* In API workflows, a single
response object is returned as the output. Any required fields can be extracted directly from this object.
* In RPA workflows, some output
parameters may differ, but the necessary values can still be retrieved from the response object even if they are not explicitly exposed.
:::
