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

# Search Repos

`GET /v1/github/repos/search`

## Request

- Base URL: `https://api.tryardent.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.tryardent.com/v1/github/repos/search`
- Auth: none declared

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.dev/tryardent/apis/tryardent-api.md) - [All operations](https://skmtc.dev/tryardent/apis/tryardent-api/llms.txt) - [OpenAPI document](https://skmtc.dev/tryardent/apis/tryardent-api/revisions/a0512915b997?raw)
