# Tokenguard GitHub Repository Intelligence Endpoint

> Tokenguard GitHub Repository Intelligence Endpoint is a paid API for AI agents from eltociear-tokenguard.hf.space, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-14).

Fetches GitHub repository metadata including stars, forks, language, and latest release for a given repo via the tokenguard crypto/DeFi API platform.

## Facts

- Endpoint: POST https://eltociear-tokenguard.hf.space/dev/github
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tokenguard-github-repository-intelligence-endpoint-dc327d55
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_UHaa2T_5J8qUUwzmlVrl3

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 tokenguard-github-repository-intelligence-endpoint-dc327d55 -d '<json body>'
```

Example prompt: Can you pull up the GitHub stats for coinbase/x402 — I want to know the star count, fork count, main language, and what the latest release tag is?

## When to prefer this

Use this endpoint when you need quick structured GitHub repository metadata (stars, forks, language, latest release) for a crypto or DeFi open-source project, especially within an agentic workflow already using the tokenguard API platform for on-chain and market data, avoiding the need for a separate GitHub API integration.

## Known failure modes

- Invalid or non-existent repository path returns an error or empty result
- Repository is private and not accessible
- Rate limiting or upstream GitHub API unavailability
- Malformed repo slug format causes a 400-level error
- x402 micropayment failure prevents the call from being processed

## How this service works

Public GitHub facts: repo stats with latest release, a user/org profile, or a star-ranked repo search

## Output

Returns a JSON object with the repository identifier, number of forks, number of stars, primary programming language, and the latest release tag (e.g. v2.1.0).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "repo": {
   "type": "string",
   "description": "owner/name"
  },
  "user": {
   "type": "string",
   "description": "User or org login (alternative)"
  },
  "limit": {
   "type": "integer",
   "description": "1-30 search results (default 10)"
  },
  "query": {
   "type": "string",
   "description": "Repo search terms (alternative)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "repo": "coinbase/x402",
  "forks": 210,
  "stars": 1420,
  "language": "TypeScript",
  "latest_release": {
   "tag": "v2.1.0"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tokenguard-github-repository-intelligence-endpoint-dc327d55/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from eltociear-tokenguard.hf.space](https://www.zero.xyz/host/eltociear-tokenguard.hf.space/llms.txt)
