# AgentUtility GitHub README Fetcher

> AgentUtility GitHub README Fetcher is a paid API for AI agents from x402.agentutility.ai, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-13).

Fetches the raw markdown README content from a GitHub repository by repo slug

## Facts

- Endpoint: POST https://x402.agentutility.ai/github-readme
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentutility-github-readme-fetcher-ca8ac8d8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_cdcMuV3kC5AisDXWoj_zC

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 agentutility-github-readme-fetcher-ca8ac8d8 -d '<json body>'
```

Example prompt: Can you pull the raw README markdown from the vercel/next.js GitHub repo so I can summarize what the project does?

## When to prefer this

Use this endpoint when you need the raw markdown content of a GitHub repository's README programmatically, especially in agent workflows that require summarizing, analyzing, or displaying open source project documentation. Prefer this over scraping GitHub directly since it is a paid, reliable, MCP-callable endpoint settled in USDC via x402 with structured JSON output including byte and character counts.

## Known failure modes

- Repository not found or does not exist — likely a 404-equivalent error
- Repository has no README file — empty or null raw_markdown returned
- Invalid repo slug format (missing owner prefix) — malformed request error
- Rate limiting or upstream GitHub API failure — service unavailable response
- Private repository without access — authorization error

## How this service works

Paid x402 endpoints organized into product clusters. USDC-settled on Base. MCP-callable. ERC-8004 identity registry agentId 47167.

## Output

A JSON object containing the repository slug, source ('github'), byte size of the README, character count, and the full raw markdown text of the README file.

## Request schema (JSON Schema)

```json
{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "type": "string",
     "enum": [
      "POST"
     ]
    },
    "bodyType": {
     "type": "string",
     "enum": [
      "json",
      "form-data",
      "text"
     ]
    },
    "body": {
     "properties": {
      "repo": {
       "type": "string",
       "description": "Repository in 'owner/name' form (e.g. 'vercel/next.js')."
      }
     },
     "required": [
      "repo"
     ]
    }
   },
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "repo": {
       "type": "string"
      },
      "raw_markdown": {
       "type": "string"
      },
      "byte_size": {
       "type": "integer"
      },
      "char_count": {
       "type": "integer"
      },
      "source": {
       "type": "string"
      }
     }
    }
   },
   "required": [
    "type"
   ]
  }
 },
 "required": [
  "input"
 ]
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "repo": "vercel/next.js",
  "source": "github",
  "byte_size": 18342,
  "char_count": 18000,
  "raw_markdown": "# Next.js\n\nThe React Framework for the Web…"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentutility-github-readme-fetcher-ca8ac8d8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.agentutility.ai](https://www.zero.xyz/host/x402.agentutility.ai/llms.txt)
