Search GitHub repositories via x402 micropayment — stars, forks, language, topics, and license info.
What it does
The Scout GitHub endpoint (`/scout/github`) lets you search GitHub repositories by keyword, topic, or description through a single GET request, paid per-call at $0.005 USDC on Base via the x402 protocol. Results include repository name, stars, forks, primary language, topics, and license information. The endpoint supports GitHub search qualifiers (e.g. `topic:mcp`, `language:python`), sorting by stars, forks, updated, or best-match, and pagination up to 50 results per request.
This endpoint is part of the broader Scout Multi-source Intelligence API, which covers 19+ platforms including Hacker News, npm, PyPI, arXiv, Semantic Scholar, X/Twitter, Product Hunt, and more. A companion endpoint at `/scout/github/repo` provides detailed information about a specific repository including contributors and releases. The full Scout suite also offers aggregated multi-source reports and AI-synthesized deep research.
Payment is handled via x402: unauthenticated requests receive a 402 challenge with USDC payment details on Base. Alternative access methods include a broker API key (via discovery.hugen.tokyo), an MCP transport, or the `x402-pay` Python SDK.
Capabilities
Use cases
- —Finding open-source repositories by keyword or topic for competitive analysis
- —Discovering trending repos by stars or recent activity in a specific language
- —Agents autonomously searching GitHub for libraries matching a technical requirement
- —Building dashboards that aggregate GitHub repo metadata across topics
- —Feeding repository data into multi-source intelligence reports
Fit
Best for
- —AI agents that need programmatic GitHub search without managing API keys or rate limits
- —Developers who want pay-per-call GitHub search with no subscription
- —Multi-source research pipelines that include code repository discovery
Not for
- —Searching private repositories (only public GitHub repos are covered)
- —Retrieving full file contents or commit history from repositories
- —High-volume bulk scraping where per-call costs would accumulate significantly
Quick start
# Using the x402-pay Python SDK
pip install x402-pay
import x402_pay
response = x402_pay.get('https://scout.hugen.tokyo/scout/github?q=x402&sort=stars&per_page=5')
print(response.json())Example
Request
{
"url": "https://scout.hugen.tokyo/scout/github?q=x402&sort=stars&per_page=5&language=typescript",
"method": "GET"
}Response
{
"count": 1,
"query": "AI agent framework",
"source": "github",
"results": [
{
"name": "langchain",
"stars": 95000,
"language": "Python",
"full_name": "langchain-ai/langchain"
}
]
}Endpoint
Quality
Full OpenAPI schema with clear parameter definitions and a live 402 challenge confirming the endpoint works. The sample response in the challenge provides a concrete output shape. Docked slightly because there are no formal response schemas, no dedicated docs page, and the example response is minimal (from the 402 challenge only).
Warnings
- —No formal response schema defined in the OpenAPI spec — response structure is inferred from the 402 challenge sample
- —No dedicated documentation page found (/docs, /api, /pricing all return 404)
- —The 402 challenge advertises $0.01 but the OpenAPI spec says $0.005 — actual price may vary
Citations
- —The endpoint searches GitHub repositories by keyword, topic, or description and returns stars, forks, language, topics, and license infohttps://scout.hugen.tokyo
- —Supports GitHub search qualifiers like topic:mcp, language:python; sort by stars, forks, updated, best-match; up to 50 results per pagehttps://scout.hugen.tokyo
- —Payment required is $0.005 per call according to OpenAPI spechttps://scout.hugen.tokyo
- —Scout covers 19+ platforms including Reddit, Hacker News, GitHub, Stack Overflow, arXiv, npm, PyPI, X/Twitter, YouTube, Product Hunt, and morehttps://scout.hugen.tokyo
- —Alternative access via broker API key, MCP transport, or x402-pay Python SDKhttps://scout.hugen.tokyo
- —402 challenge sample shows results with name, full_name, stars, language fieldshttps://scout.hugen.tokyo/scout/github