{"uid":"cap_EPGG0SlLrvVHU8hmrkwyh","slug":"citiview-github-code-search-1492f579","name":"Citiview 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://agents.citiviewgroup.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_l9UW1BYpc0VXxS8psGZdS","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 code across all public GitHub repositories and return matching file paths, links, and code fragments, filterable by language, repo, org, or filename.","exampleAgentPrompt":"Search public GitHub repos for real usage examples of the `useEffect` hook in JavaScript files — show me file paths, links, and the matching code fragments, limit to 10 results.","exampleUseCases":[{"title":"Find API usage examples in the wild","prompt":"Search all public GitHub repos for examples of how `fetch` is used with `Authorization` headers in JavaScript — show me the file paths and code snippets, limit to 15 results."},{"title":"Discover config key patterns across open source","prompt":"Find examples of the `DATABASE_URL` environment variable being set in `.env` files across public GitHub repositories — filter by filename `.env.example` and give me links to the matching files."},{"title":"Locate language-specific function implementations","prompt":"Search GitHub for public Python repos that use the `asyncio.gather` function — show me real code fragments and file paths, limit results to 10."}],"resultDescription":"Returns a list of matching code results from public GitHub repositories, each including the file path, a link to the file on GitHub, and the matching code fragment(s) that satisfy the query. Results can be filtered by programming language, specific repository (owner/name), organization, or filename.","failureModes":["Empty results if query is too specific or obscure and no public repos match","Rate limiting or errors if GitHub's underlying search API is unavailable","Invalid repo format (must be owner/name) causes query failure","Very broad queries may return noisy or irrelevant results","Query parameter `q` is required — missing it returns an error"],"whenToPreferThis":"Use this endpoint when you need to find real-world usage examples of a function, API method, configuration key, or code pattern across public GitHub repositories, especially when you want to filter by language, organization, or specific filename. Prefer this over web search when you need actual code fragments with direct file links rather than documentation or blog posts.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-14T06:48:35.756Z","isFirstParty":false,"canonicalSlug":"citiview-github-code-search-1492f579"}