# x402 GitHub Search API

> x402 GitHub Search API is a paid API for AI agents from workspace-x402-paywall.onrender.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-11).

Search GitHub repositories, code, users, or issues using GitHub search syntax, paid per-call via USDC micropayment

## Facts

- Endpoint: GET https://workspace-x402-paywall.onrender.com/search/github?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-github-search-api-fd207c5e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8a1FdXCLJcKPGM_tb76KN

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 x402-github-search-api-fd207c5e
```

Example prompt: Search GitHub for repositories about 'vector databases' written in Python — show me the top 10 results sorted by stars, searching by repositories type.

## When to prefer this

Choose this endpoint when you need programmatic GitHub search with per-call micropayment billing (no GitHub API key required), especially suitable for AI agents that make occasional searches without a persistent GitHub OAuth token. Prefer over direct GitHub API when you want frictionless USDC-based payment via x402 on Base or Solana mainnet rather than managing API credentials.

## Known failure modes

- Missing required 'q' parameter returns an error response
- Invalid 'type' enum value is rejected
- Payment not provided or insufficient USDC causes 402 Payment Required response
- GitHub API rate limit exceeded on backend returns an error
- Overly broad query may return irrelevant or truncated results
- per_page values outside 1-20 range may be clamped or rejected

## How this service works

66 pay-per-call APIs: AI text/image generation ($0.01), Polymarket odds, crypto prices, DeFi yields, FX rates, weather, IP/geo, FBI wanted, SEC tickers, clinical trials, 250M academic papers, Stack Overflow, meme-coin launchpads (pump.fun, Clanker, Four.meme, SunPump), tokenized stocks, Solana top 100, and 40+ more. $0.005/call standard. USDC on Base and Solana via x402.

## Output

A JSON object containing GitHub search results matching the query, including repository metadata (name, description, stars, language, URL), code snippets, user profiles, or issue details depending on the search type requested.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-github-search-api-fd207c5e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from workspace-x402-paywall.onrender.com](https://www.zero.xyz/host/workspace-x402-paywall.onrender.com/llms.txt)
