{"uid":"cap_Y3hiIqFNs7j5-0GNfd0mn","slug":"api-x402node-dev-c0de88d0","name":"GitHub Code Search via x402node","description":"Search GitHub code across public repositories. Returns matched files with repo, path, snippet, language, and stars. Use ?q=YOUR_QUERY plus optional and language=python and limit=10. Built for AI coding agents looking for real-world implementations and similar code patterns.","url":"https://api.x402node.dev/search/github/code","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["q"],"properties":{"q":{"type":"string","description":"Search query (required)"},"limit":{"type":"string","description":"Max results (optional)"},"language":{"type":"string","description":"Language (optional)"}}}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_gta8T-5fxrLhUa6yOjEGe","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Searches GitHub public repositories for code matching a query, returning matched files with repo info, path, snippet, language, and star count.","exampleAgentPrompt":"Search GitHub for real-world Python implementations of JWT token validation — show me up to 10 matched files with their repo name, file path, and a code snippet.","exampleUseCases":null,"resultDescription":"Returns a list of matched files from public GitHub repositories, each containing the repository name, file path, code snippet, programming language, and the repository's star count.","failureModes":["Empty query returns an error or no results","Language filter typo returns no results or unfiltered results","Rate limiting or upstream GitHub API errors cause 5xx responses","Payment not received causes 402 response blocking access","Very broad query may return low-relevance results up to the limit"],"whenToPreferThis":"Use this endpoint when an AI coding agent needs real-world code examples or implementation patterns from public GitHub repositories, especially when looking for how specific libraries, algorithms, or APIs are used in practice. Prefer this over generic web search when you specifically want runnable code snippets with repository context and language filtering.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T13:04:37.810Z","isFirstParty":false}