---
title: "Search repositories"
method: GET
path: "/repos/search"
tags: ["Repositories"]
---

# Search repositories

`GET /repos/search`

## Query parameters

- `q` string, required
- `uid` integer
- `limit` integer
- `page` integer

## Response `200`

Success

- object
  - `data` Repository[]
    - `id` integer
    - `owner` User
      - `id` integer
      - `username` string
      - `login` string — Alias of username for GitHub API compatibility
      - `full_name` string
      - `email` string, email
      - `avatar_url` string
    - `name` string
    - `full_name` string
    - `description` string
    - `private` boolean
    - `fork` boolean
    - `parent` Repository — recursive
    - `empty` boolean
    - `mirror` boolean
    - `size` integer
    - `html_url` string
    - `ssh_url` string
    - `clone_url` string
    - `website` string
    - `stars_count` integer
    - `forks_count` integer
    - `watchers_count` integer
    - `open_issues_count` integer
    - `default_branch` string
    - `created_at` string, date-time
    - `updated_at` string, date-time
    - `permissions` object
      - `admin` boolean
      - `push` boolean
      - `pull` boolean
  - `ok` boolean

---

[API](https://skmtc.net/gogs/apis/gogs-api.md) · [All operations](https://skmtc.net/gogs/apis/gogs-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gogs/gogs-api/revisions/87e2da32266c/schema)
