# OnchainExpat x402 GitHub Repo Info API

> OnchainExpat x402 GitHub Repo Info API is a paid API for AI agents from x402.onchainexpat.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Fetches detailed information about a GitHub repository via a pay-per-request x402 protocol endpoint

## Facts

- Endpoint: POST https://x402.onchainexpat.com/api/x402-tools/github/repo
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/onchainexpat-x402-github-repo-info-api-2f42a8f0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_EDQj3dHMfl_4PLPlz0-UG

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 onchainexpat-x402-github-repo-info-api-2f42a8f0 -d '<json body>'
```

Example prompt: Can you pull up the GitHub repo details for coinbase/cdp-sdk — things like the description, star count, main language, and license?

## When to prefer this

Use this endpoint when you need on-demand GitHub repository metadata without managing GitHub API keys or rate limits, and you are operating in an x402 micropayment-enabled agent environment where pay-per-request at $0.01 USDC is acceptable.

## Known failure modes

- Repository not found — returns error if owner/repo name is invalid or repo is private
- Payment failure — x402 payment not accepted or insufficient USDC balance
- Rate limiting — too many requests in a short period
- Malformed request — missing required owner or repo fields
- GitHub API unavailable — upstream outage causes failure

## How this service works

Pay-per-request AI, crypto, proxy, and utility APIs using x402 protocol

## Output

Returns a JSON object containing GitHub repository metadata such as name, owner, description, star count, fork count, primary language, license, topics, and contributor information for the specified repository.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "repo"
 ],
 "properties": {
  "repo": {
   "type": "string",
   "description": "Repository in 'owner/repo' format. Alias: 'repository'. E.g. 'coinbase/x402'"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string"
  },
  "name": {
   "type": "string"
  },
  "forks": {
   "type": "integer"
  },
  "owner": {
   "type": "string"
  },
  "stars": {
   "type": "integer"
  },
  "cached": {
   "type": "boolean"
  },
  "topics": {
   "type": "array"
  },
  "language": {
   "type": "string"
  },
  "description": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/onchainexpat-x402-github-repo-info-api-2f42a8f0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.onchainexpat.com](https://www.zero.xyz/host/x402.onchainexpat.com/llms.txt)
