GitHub repository enrichment
POST /api/github-repoEnrich 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
| Field | Type | Description |
|---|---|---|
owner * | string | Repository owner (user or org). |
repo * | string | Repository 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"
}),
});
Related tools
US gov dataset search
GET /api/gov-dataSearch 300,000+ US government datasets on catalog.data.gov (CKAN): titles, publishing org, formats, and direct resource …
US weather alerts
GET /api/weather-alertsActive National Weather Service alerts for a US state as clean JSON: event, severity, headline, affected areas, onset/ex…
Recent earthquakes (USGS)
GET /api/earthquakesReal-time USGS earthquake feed: magnitude, place, time, depth, coordinates. Live government data, no key. ?minMag=4.5&pe…