# GitHub Repository Search

> GitHub Repository Search 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-13, last successful call 2026-07-13).

Search GitHub repositories by query, language, sort criteria and return metadata including stars, forks, activity, license, and topics

## Facts

- Endpoint: GET https://api.x402node.dev/search/github/repo
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Last successful call: 2026-07-13
- Activations on Zero: 2
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-x402node-dev-e0c06297
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1KlXjA4A09FvZNwvR5zoC

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 api-x402node-dev-e0c06297
```

Example prompt: Search GitHub for the top 10 most starred Python machine learning repositories and give me their names, star counts, licenses, and main topics.

## When to prefer this

Use this endpoint when an agent needs to discover, rank, or explore GitHub repositories programmatically — especially when filtering by language, sorting by stars or recent activity, or gathering metadata like license and topics. Prefer this over scraping GitHub directly or using general web search when structured repository metadata is needed.

## Known failure modes

- Empty query returns error or empty results
- Invalid sort criteria returns bad request
- Rate limiting if too many requests are made in succession
- GitHub API unavailability causes upstream failure
- Very broad queries may return generic or irrelevant results
- Limit value out of accepted range returns error

## How this service works

Search GitHub repositories by query, language, sort criteria. Returns repos with stars, forks, recent activity, language, license, topics. Use ?q=YOUR_QUERY and sort=stars and limit=10. Accepts payment on Base or Solana — either network works.

## Output

Returns a list of GitHub repositories matching the query, each with repository name, star count, fork count, recent activity timestamp, primary programming language, license type, and topic tags.

## 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": [
      "q"
     ],
     "properties": {
      "q": {
       "type": "string",
       "description": "Search query (required)"
      },
      "sort": {
       "type": "string",
       "description": "Sort (optional)"
      },
      "limit": {
       "type": "string",
       "description": "Max results (optional)"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-x402node-dev-e0c06297/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)
