# GitHub Search API (Cerawal)

> GitHub Search API (Cerawal) is a paid API for AI agents from cerawal.vercel.app, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-15).

Searches GitHub repositories, code, issues, and users via a natural language or structured query, returning matched results as structured data.

## Facts

- Endpoint: POST https://cerawal.vercel.app/api/github
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/github-search-api-cerawal-25729671
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2LOoloZX4_l-j2M834UKH

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-search-api-cerawal-25729671 -d '<json body>'
```

Example prompt: Search GitHub for the most popular Python web scraping libraries — query something like 'python web scraping stars:>1000'.

## When to prefer this

Use this endpoint when an agent needs to search GitHub programmatically without managing OAuth credentials or subscriptions — ideal for one-off searches paid per-request in USDC via x402. Prefer over direct GitHub API integration when avoiding key management is a priority.

## Known failure modes

- Missing required 'query' field returns an error
- Malformed or overly complex search query may return no results or a GitHub API error
- Rate limiting or upstream GitHub API unavailability may cause failures
- Payment not completed via x402 results in 402 Payment Required response

## How this service works

Web scraping and search for AI agents. No auth, no subscriptions. Pay per request in USDC via x402.

## Output

Returns a JSON object with a success boolean and a data object containing GitHub search results — typically a list of matched repositories, code files, issues, or users depending on the query.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "query"
 ],
 "properties": {
  "query": {
   "type": "string",
   "description": "GitHub search query"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "data": {
   "type": "object"
  },
  "success": {
   "type": "boolean"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/github-search-api-cerawal-25729671/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from cerawal.vercel.app](https://www.zero.xyz/host/cerawal.vercel.app/llms.txt)
