---
title: "Search public GitHub repositories"
method: GET
path: "/github/search/repositories"
tags: ["GitHub"]
---

# Search public GitHub repositories

`GET /github/search/repositories`

## Request

- Base URL: `https://api.crawlora.net/api/v1`
- URL: `https://api.crawlora.net/api/v1/github/search/repositories`
- Auth: API key in header `x-api-key`

Searches public GitHub repositories with the required GitHub search query `q`. Order with `sort` (`stars`, `forks`, `help-wanted-issues` or `updated`) and `order`, and page with `page` and `per_page` (max 100). The response has `total_count` and items with full name, owner, description, language, stars, forks, topics and license.

## Query parameters

- `q` string, required
- `sort` 'stars' | 'forks' | 'help-wanted-issues' | 'updated'
- `order` 'asc' | 'desc'
- `page` integer
- `per_page` integer

## Headers

- `x-api-key` string, required

## Response `200`

Wrapped repository search result

- AppResponse: The Response struct is used for wrapping the API response with a code, message, and data.
  - `code` integer: Code is the HTTP status code or a custom code used to indicate the result of the request @example 200
  - `data` unknown
  - `msg` unknown

## Other responses

- `400`: Missing or invalid parameters
- `503`: Upstream error or rate limit

---

[API](https://skmtc.dev/crawlora/apis/crawlora-api.md) · [All operations](https://skmtc.dev/crawlora/apis/crawlora-api/llms.txt) · [OpenAPI document](https://skmtc.dev/crawlora/apis/crawlora-api/revisions/afac9b012a27?raw)
