{"uid":"cap_k3Uz9SyTseJjHsJzuqqrA","slug":"agentrxi-github-code-search-d4952d7e","name":"AgentRXI GitHub Code Search","description":"Search code across all public GitHub repositories: find real usage examples of a function, API or config key, with file paths, links and the matching code fragments. Filter by language, repo, org or filename.","url":"https://agentrxi.com/v1/github/code?utm_source=zero.xyz","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":"Code to find"},"org":{"type":"string"},"repo":{"type":"string","description":"owner/name"},"limit":{"type":"integer"},"filename":{"type":"string"},"language":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.004","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","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.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_0feVejky1ezs5P0oQbC7B","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Search public GitHub repositories for real code usage examples matching a query, with file paths, links, and matching code fragments, filterable by language, repo, org, or filename.","exampleAgentPrompt":"Search GitHub for real code examples of how developers use the `boto3 s3.upload_file()` function in Python — show me up to 10 results with file paths and links.","exampleUseCases":[{"title":"Find real API usage examples","prompt":"Can you search public GitHub repos for examples of how people actually use the Stripe `stripe.PaymentIntent.create()` method in Python? Show me the code snippets and file paths."},{"title":"Discover config key patterns in the wild","prompt":"Find me real examples of the `DATABASE_URL` environment variable being used in JavaScript projects on GitHub — I want to see how developers typically configure it."},{"title":"Debug unfamiliar library method","prompt":"Search GitHub for examples of `pandas.DataFrame.groupby().agg()` in Jupyter notebooks — filter by language Python and show up to 15 results so I can see common usage patterns."}],"resultDescription":"Returns a list of code search results from public GitHub repositories, each containing the matching code fragment, the file path within the repository, a link to the file on GitHub, the repository name, and contextual lines around the match. Results can be filtered by programming language, specific repository, organization, or filename.","failureModes":["No results found for an overly specific or rare query","Rate limiting from GitHub's underlying search API causing empty results","Query too broad returning noisy or irrelevant snippets","Invalid repository format (must be owner/name) causing parameter error","Language filter not matching GitHub's accepted language names"],"whenToPreferThis":"Choose this endpoint when you need real-world, production code examples from public GitHub repositories — not documentation or tutorials. Ideal for discovering how developers actually use a function, API, library, or config key in practice, with the ability to scope results to a specific language, organization, or repository. Prefer this over web search when you want structured results with file paths and direct GitHub links rather than prose explanations.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-15T06:39:02.376Z","isFirstParty":false,"canonicalSlug":"agentrxi-github-code-search-d4952d7e"}