{"uid":"cap_XwINvPxuEH8F9wJa6NRNK","slug":"aayat-ai-github-repository-code-search-2574f7c8","name":"Aayat AI GitHub Repository Code Search","description":"Search inside one public GitHub repository: every line where a word or code snippet appears, with file, line number and a link. Reads up to 120 likely source files per call (skips vendored, built and lock files) and says how many it covered; may lag GitHub by up to 12 hours; narrow big repos with path=src/ or ext=ts. Pass ?owner=honojs&repo=hono&q=getCookie. Then read a file with /repo/file.","url":"https://aayatai.com/repo/search?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":["owner","repo","q"],"properties":{"q":{"type":"string","maxLength":200,"minLength":2,"description":"Text to find (exact text, not a pattern), e.g. getCookie."},"ext":{"type":"string","maxLength":60,"description":"Only these file extensions, comma-separated, e.g. ts,tsx."},"ref":{"type":"string","default":"main","maxLength":100,"description":"Branch, tag or commit (default main; master is tried if main doesn't exist)."},"path":{"type":"string","maxLength":300,"description":"Only files under this folder, e.g. src/."},"repo":{"type":"string","maxLength":100,"description":"Repository name, e.g. hono."},"limit":{"type":"integer","default":30,"maximum":100,"minimum":1,"description":"Most matching lines to return."},"owner":{"type":"string","maxLength":39,"description":"GitHub user or organisation, e.g. honojs."},"detail":{"enum":["full","brief"],"type":"string","default":"full","description":"brief = key fields only (same price)"},"case_sensitive":{"type":"boolean","default":false,"description":"Match upper/lower case exactly."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_NszdU3Fo9ydOZTGpx_QOX","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Search for any word or code snippet across all source files in a public GitHub repository, returning matching lines with file paths, line numbers, and direct links.","exampleAgentPrompt":"Search the honojs/hono GitHub repo for every line that uses getCookie — show me the file paths, line numbers, and links, and only look inside the src/ folder with .ts files.","exampleUseCases":[{"title":"Locate middleware usage in a framework","prompt":"Search the expressjs/express repo on the main branch for every line that references 'bodyParser' — filter to .js files only and show me file paths and line numbers."},{"title":"Audit security-sensitive function calls","prompt":"Can you search the supabase/supabase repo for every place 'eval(' appears in source files under the packages/ folder? I want to audit for unsafe eval usage."},{"title":"Find config key across open source project","prompt":"Look through the vercel/next.js GitHub repo for all lines containing 'NEXTAUTH_SECRET' — limit to 50 results and only search .ts and .tsx files."}],"resultDescription":"Returns a list of matching lines (up to the specified limit), each with the file path, line number, the matched line content, and a direct GitHub link. Also includes a summary of how many files were scanned and whether coverage was partial (up to 120 source files per call). Vendored, built, and lock files are excluded from the scan.","failureModes":["Repository not found or is private — returns an error with no results","Query string too short (under 2 characters) — rejected by schema validation","Branch/ref does not exist — falls back to 'master' if 'main' not found, otherwise errors","Repo too large — only up to 120 files scanned, coverage may be incomplete","Index lag — results may be up to 12 hours behind the latest GitHub commit","No matches found — returns empty results with files-scanned count","Invalid owner or repo name format — returns validation error"],"whenToPreferThis":"Use this endpoint when you need to search inside a specific public GitHub repository for exact text matches across source files, and you know the owner and repo name. It is faster and cheaper than cloning the repo and running grep locally. Prefer it over general web search when you need line-level precision with file paths and links. Best suited for code auditing, dependency tracing, and API usage discovery within a single known repo. Not suited for fuzzy/regex search, private repos, or cross-repository searches.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T06:43:24.330Z","isFirstParty":false,"canonicalSlug":"aayat-ai-github-repository-code-search-2574f7c8"}