GitHub repository enrichment

$0.005 per callUSDC via x402POST /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. Send POST /api/github-repo with the required fields owner and repo and pay $0.005 per call over x402 or MPP (there is no free tier). It returns a JSON object with fullName, description, stars, forks, watchers and 13 more.

Keyless (shared per-IP rate limit; the server optionally uses a GITHUB_TOKEN env var for a higher ceiling). Unknown repos return 404.

Category: Live public dataTags: data github repository oss enrichment dev stars

Try in playground →

Parameters

NameTypeRequiredDescription
ownerstringyesRepository owner (user or org).
repostringyesRepository name.

Example request

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

Without payment this returns HTTP 402 Payment Required with the exact price for github-repo; any x402 v2 or MPP client pays it and retries.

Example response

{
  "fullName": "expressjs/express",
  "description": "Fast, unopinionated, minimalist web framework for node.",
  "stars": 69000,
  "forks": 25000,
  "watchers": 1700,
  "openIssues": 230,
  "license": "MIT",
  "topics": [
    "express",
    "javascript",
    "nodejs",
    "server"
  ],
  "language": "JavaScript",
  "languages": [
    {
      "language": "JavaScript",
      "bytes": 1000000,
      "percent": 99.9
    }
  ],
  "pushedAt": "2026-07-12T20:11:04Z",
  "createdAt": "2009-06-26T18:56:01Z",
  "defaultBranch": "master",
  "archived": false,
  "fork": false,
  "homepage": "https://expressjs.com",
  "url": "https://github.com/expressjs/express",
  "source": "api.github.com"
}
FieldTypeAlways presentIn the example
fullNamestringyesexpressjs/express
descriptionstringyesFast, unopinionated, minimalist web framework for node.
starsnumberyes69000
forksnumberyes25000
watchersnumberyes1700
openIssuesnumberyes230
licensestringyesMIT
topicsarray of stringyes4 items in the example
languagestringyesJavaScript
languagesarray of objectsyes1 item in the example
pushedAtstringyes2026-07-12T20:11:04Z
createdAtstringyes2009-06-26T18:56:01Z
defaultBranchstringyesmaster
archivedbooleanyesfalse
forkbooleanyesfalse
homepagestringyeshttps://expressjs.com
urlstringyeshttps://github.com/expressjs/express
sourcestringyesapi.github.com

From an MCP client

catalog.call {
  "slug": "github-repo",
  "params": {
    "owner": "expressjs",
    "repo": "express"
  }
}

The hosted connector at https://agent402.tools/mcp needs a payment for github-repo; the stdio package pays it from a wallet or from an AGENT402_CREDITS_KEY issued earlier. Local install: npx -y agent402-mcp.

Errors and behavior

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();
client.setSpendControls?.({ maxAmountPerPayment: "$0.005" }); // refuse any quote above this tool's price
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": "expressjs",
    "repo": "express"
  }),
});

Related tools

Legal entity (LEI) lookup

$0.005 · POST /api/lei-lookup

Look up a legal entity in the official GLEIF registry.

Wikidata entity facts

$0.005 · POST /api/wikidata-entity

Company/person/organization facts from Wikidata.

A2A Agent Card validate

FREE w/ compute · or $0.002 · POST /api/a2a-card-validate

Validate an A2A (Agent2Agent protocol) Agent Card: required fields, skill shape, transport names, capability flags.

Amortization schedule

FREE w/ compute · or $0.001 · POST /api/amortization

Build the full per-period amortization schedule for a fully-amortizing loan.

Annuity present/future value

FREE w/ compute · or $0.001 · POST /api/annuity

Present and future value of a level annuity (equal periodic payments).

Barcode / QR decode

FREE w/ compute · or $0.001 · POST /api/barcode-decode

Decode a barcode or QR code from an image.