---
title: "Search Repos"
method: GET
path: "/v1/github/repos/search"
tags: ["v1-github"]
---

# Search Repos

`GET /v1/github/repos/search`

Search GitHub repositories.

Works without GitHub connection (public repos only, lower rate limit).
If user has GitHub connected, uses their token for higher rate limit
and to include their private repos in results.

Query params:
    q: Search query (required)
    per_page: Number of results (default 10, max 100)

## Query parameters

- `q` string, required
- `per_page` integer

## Response `200`

Successful Response

- GitHubRepoSearchResponse — Response for GET /v1/github/repos/search.
  - `repos` object[], required
  - `count` integer, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/tryardent/apis/fastapi.md) · [All operations](https://skmtc.net/tryardent/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tryardent/fastapi/revisions/71b66f68e19c/schema)
