AgentAPIGate
Back to Catalog
GET /v1/github/repo/readmePack: intel·MCP Tool: github_repo_readme

GitHub Repository README Markdown Reader

Fetch clean Markdown README content directly from public GitHub repositories via raw CDN without requiring any API token.

API Key Price:$0.0010 / call
x402 Base USDC:$0.0020 / call
Partner Credit:eligible
1. Parameters & Controls
GitHub organization or user owner (e.g. honojs, vercel)
GitHub repository name (e.g. hono, next.js)
Optional branch name (defaults to trying main then master)
Max characters to return (200-50000)
Get $0.25 Free Key →
curl -sG "https://api.agentapigate.ai/v1/github/repo/readme" \
  --data-urlencode "owner=honojs" \
  --data-urlencode "repo=hono" \
  --data-urlencode "format=md" \
  -H "Authorization: Bearer aag_live_YOUR_KEY" \
  -H "X-AAG-Max-Cost: 0.0100"
1-Click Agent IDE Install
Add to Cursor (1-Click OAuth)
-90% tokens
# GitHub Repository README Markdown Reader (`github.repo.readme`)
**owner**: honojs · **repo**: hono · **branch**: main · **char_length**: 3656 · **readme_markdown**: <div align="center">
  <a href="https://hono.dev">
    <img src="https://raw.githubusercontent.com/honojs/hono/main/docs/images/hono-title.png" width="500" height="auto" alt="Hono"/>
  </a>
</div>

<hr />

[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/honojs/hono/ci.yml?branch=main)](https://github.com/honojs/hono/actions)
[![GitHub](https://img.shields.io/github/license/honojs/hono)](https://github.com/honojs/hono/blob/main/LICENSE)
[![npm](https://img.shields.io/npm/v/hono)](https://www.npmjs.com/package/hono)
[![npm](https://img.shields.io/npm/dm/hono)](ht…

Endpoint Parameters, Cost & Token Economy Reference

Endpoint ID: github.repo.readme · Method: GET
ParameterTypeReqSample / DefaultDescription
ownerstringrequiredhonojsGitHub organization or user owner (e.g. honojs, vercel)
repostringrequiredhonoGitHub repository name (e.g. hono, next.js)
branchstringoptional—Optional branch name (defaults to trying main then master)
max_charsnumberoptional12000Max characters to return (200-50000)
formatenumoptionaljson | compact | mdResponse format; compact or md cuts LLM tokens.
dry_run0 | 1optional1Returns exact pre-flight price quote & validation at $0.00 cost.
Access Rail / MetricValuePolicy & SLA
API Key (PAYG)$0.0010 / call$0/mo · Balance never expires
Remote MCP Toolgithub_repo_readmeOAuth 2.1 Hub & /mcp/intel
x402 Base USDC$0.0020 / callZero-signup USDC enabled
P50 Latency74 ms$0 billed on empty or 4xx/5xx
Token Economy2238t → 225t (-90%)Partner credit: eligible

More github.repo Sibling Endpoints

Frequently Asked Questions

How do I call GitHub Repository README Markdown Reader (github.repo.readme) over REST and Remote MCP?

Send GET requests to https://api.agentapigate.ai/v1/github/repo/readme with an aag_live_* / aag_agent_* Bearer key, pay per call via x402 USDC, or call MCP tool github_repo_readme on https://mcp.agentapigate.ai/mcp.

What does github.repo.readme cost per call and are failed calls billed?

Each successful HTTP 200 response costs $0.001 USD from a non-expiring PAYG balance ($0/month minimum). Upstream errors, empty responses, and ?dry_run=1 pre-flight quotes always bill $0.00.

How does ?format=md or ?format=compact optimize AI agent token usage on github.repo.readme?

Passing ?format=md transforms the response into normalized Markdown (~225 tokens vs ~2238 raw tokens, saving 90% of LLM context budget) while preserving structured JSON via ?format=json.

Can I restrict an AI agent key to only intel endpoints with a daily USD cap?

Yes. Create a scoped aag_agent_* sub-key via POST /v1/keys with allowed_packs: ["intel"], optional allowed_endpoints: ["github.repo.readme"], read_only: true, and a hard daily_cap_usd enforced atomically in Redis.