HTTP/1.1 402 PAYMENT REQUIRED agent402.base.eth · BASE · SOLANA · POLYGON · ARBITRUM · MONAD · STELLAR · ALGORAND · ROBINHOOD · USDC · USDG
Agent402 / tools / github-repo

GitHub repository enrichment

$0.005 per call · USDC via x402 · POST /api/github-repo

Enrich a public GitHub repository: stars, forks, watchers, open issues, license, topics, primary language plus the full language byte mix with percentages, created/last-push timestamps, default branch, archived/fork flags, and homepage. Keyless (shared per-IP rate limit; the server optionally uses a GITHUB_TOKEN env var for a higher ceiling). Unknown repos return 404.

Input

FieldTypeDescription
owner *stringRepository owner (user or org).
repo *stringRepository name.

Example output

{
  "fullName": "MikeyPetrillo/Agent402",
  "description": "Open-source x402 + MCP tool server",
  "stars": 12,
  "forks": 3,
  "watchers": 12,
  "openIssues": 4,
  "license": "MIT",
  "topics": [
    "x402",
    "mcp"
  ],
  "language": "JavaScript",
  "languages": [
    {
      "language": "JavaScript",
      "bytes": 1000000,
      "percent": 98.2
    }
  ],
  "pushedAt": "2026-07-12T20:11:04Z",
  "createdAt": "2026-05-28T01:02:03Z",
  "defaultBranch": "main",
  "archived": false,
  "fork": false,
  "homepage": "https://agent402.tools",
  "url": "https://github.com/MikeyPetrillo/Agent402",
  "source": "api.github.com"
}

Try it — see the 402 challenge (free)

curl -i -X POST https://agent402.tools/api/github-repo \
  -H "Content-Type: application/json" \
  -d '{"owner":"MikeyPetrillo","repo":"Agent402"}'

The response is HTTP 402 Payment Required with exact payment requirements. Any x402 v2 client pays automatically and retries:

Paid call (JavaScript agent)

import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client();
registerExactEvmScheme(client, { signer: privateKeyToAccount(KEY) });
const payFetch = wrapFetchWithPayment(fetch, client);

const res = await payFetch("https://agent402.tools/api/github-repo", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "owner": "MikeyPetrillo",
    "repo": "Agent402"
  }),
});
Wallet-only. This tool reaches the network/browser/storage, so it is paid in USDC via x402 (no proof-of-work tier).

Related tools

US gov dataset search

$0.003 · GET /api/gov-data

Search 300,000+ US government datasets on catalog.data.gov (CKAN): titles, publishing org, formats, and direct resource …

US weather alerts

$0.003 · GET /api/weather-alerts

Active National Weather Service alerts for a US state as clean JSON: event, severity, headline, affected areas, onset/ex…

Recent earthquakes (USGS)

$0.003 · GET /api/earthquakes

Real-time USGS earthquake feed: magnitude, place, time, depth, coordinates. Live government data, no key. ?minMag=4.5&pe…