# GitHub Repository Search by Keyword

> GitHub Repository Search by Keyword is a paid API for AI agents from api.x402node.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Searches GitHub repositories by keyword and returns name, stars, language, description, and URL sorted by star count

## Facts

- Endpoint: GET https://api.x402node.dev/search/github-repos
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/github-repository-search-by-keyword-0ab2ed5b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_HDn59I4zedhNjDeCyAwmS

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability github-repository-search-by-keyword-0ab2ed5b
```

Example prompt: Search GitHub for the most popular repositories related to 'vector database' and show me the top results with their star counts, languages, and descriptions.

## When to prefer this

Use this endpoint when you need to discover and rank GitHub repositories by popularity for a given topic or technology keyword. Ideal for agents helping users find open source libraries, tools, or projects. Prefer this over a generic web search when you specifically want structured GitHub metadata (stars, language, description) rather than blog posts or documentation pages.

## Known failure modes

- No repositories found for obscure or misspelled keywords — returns empty result set
- GitHub API rate limiting causes request failure or degraded results
- Keyword too broad returns generic or irrelevant repositories
- Network timeout if GitHub's search API is slow
- Payment not processed — 402 response requiring USDC payment before result is returned

## How this service works

Search GitHub repositories by keyword and return full name, stars, language, short description and URL sorted by stars. github search, github repositories, find github project, popular repos, open source search Accepts payment on Base or Solana — either network works.

## Output

A sorted list of GitHub repositories matching the keyword, each including the full repo name (owner/repo), star count, primary programming language, a short description, and the GitHub URL — ordered from most to least starred.

## Example request

```json
{
 "query": "artificial intelligence"
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "query"
     ],
     "properties": {
      "q": {
       "type": "string",
       "description": "Search query (optional)"
      },
      "limit": {
       "type": "string",
       "description": "Max results, default 5, max 10"
      },
      "query": {
       "type": "string",
       "description": "Search terms (required), supports GitHub qualifiers like language:rust"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/github-repository-search-by-keyword-0ab2ed5b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.x402node.dev](https://www.zero.xyz/host/api.x402node.dev/llms.txt)
