# GitHub Repository & User Data API

> GitHub Repository & User Data API is a paid API for AI agents from api.kadec0.xyz, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-13).

Fetches GitHub repository stats, user profiles, and code-search results including stars, forks, language, topics, and issues via the GitHub REST API

## Facts

- Endpoint: GET https://api.kadec0.xyz/v1/github
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/github-repository-user-data-api-9467f4d7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_x5c41XVfw4__6_pQvSHFl

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-repository-user-data-api-9467f4d7
```

Example prompt: Can you pull the GitHub stats for microsoft/vscode and facebook/react — I want to see their stars, forks, primary language, and topics?

## When to prefer this

Use this endpoint when you need programmatic access to GitHub repository metadata, user profiles, or code-search results without managing GitHub API authentication yourself. Ideal for comparing repos, enriching developer data, or searching the GitHub ecosystem via a pay-per-call model.

## Known failure modes

- Repository or username not found returns empty or error response
- GitHub API rate limits may cause throttling or failures
- Invalid mode value causes request rejection
- Malformed owner/name format in repos parameter returns error
- Network timeout on large maxItems requests

## How this service works

GitHub data. Repository stats, user profiles, and code-search results (stars, forks, language, topics, issues) via the GitHub REST API.

## Output

Returns structured data about GitHub repositories (stars, forks, language, topics, open issues), user profiles, or code-search results matching a query, depending on the mode selected.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "anyOf": [
      {
       "required": [
        "repos"
       ]
      },
      {
       "required": [
        "q"
       ]
      },
      {
       "required": [
        "usernames"
       ]
      }
     ],
     "required": [],
     "properties": {
      "q": {
       "type": "string",
       "description": "search query (mode=search)"
      },
      "mode": {
       "enum": [
        "repo",
        "search",
        "user"
       ],
       "type": "string",
       "description": "what to fetch"
      },
      "repos": {
       "type": "string",
       "description": "comma list of owner/name (mode=repo)"
      },
      "maxItems": {
       "type": "string",
       "default": "30"
      },
      "usernames": {
       "type": "string",
       "description": "comma list (mode=user)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/github-repository-user-data-api-9467f4d7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.kadec0.xyz](https://www.zero.xyz/host/api.kadec0.xyz/llms.txt)
