# GitHub Code Search

> GitHub Code Search is a paid API for AI agents from x402-toolbox.shablony-pro.workers.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-02).

Searches GitHub repositories for code matching a query, returning relevant code snippets and file references.

## Facts

- Endpoint: GET https://x402-toolbox.shablony-pro.workers.dev/dev/github-code-search?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/github-code-search-212e12d5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__Apy1CW5gdoMD75uPvyyU

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-code-search-212e12d5
```

Example prompt: Search GitHub code for examples of how developers implement JWT authentication in Node.js — I want to see real-world code snippets.

## When to prefer this

Choose this endpoint when an AI agent needs to find real-world code examples or implementations on GitHub without requiring a GitHub account or API key — payment via x402/USDC is the only credential needed. Ideal for agents that need to discover open source patterns, library usage, or code snippets on demand at low per-call cost ($0.003 USDC).

## Known failure modes

- Invalid or malformed schema parameter returns an error
- Rate limiting or quota exhaustion on the underlying GitHub API
- Payment failure via x402 protocol resulting in 402 response
- Empty result set when no matching code is found on GitHub
- Network timeout from the Cloudflare Workers backend

## How this service works

309 deterministic pay-per-call tools for AI agents over x402 (USDC, Base). No signup, no API key: the payment is the identity.

## Output

Returns a JSON response indicating success and containing GitHub code search results including matching code snippets, file paths, repository names, and relevant metadata for each match.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "paid": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/github-code-search-212e12d5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-toolbox.shablony-pro.workers.dev](https://www.zero.xyz/host/x402-toolbox.shablony-pro.workers.dev/llms.txt)
