{"uid":"cap_m9dmBdblyEpYqe_33KYwu","slug":"glim-sh-github-search-8f1bc43a","name":"glim.sh GitHub Search","description":"Search GitHub repositories, conversations, and discussions","url":"https://glim.sh/api/v1/github/search","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"kind":{"enum":["repos","conversations","code","discussions"],"type":"string","description":"What to search: 'repos', 'conversations' (issues+PRs), 'discussions' (GitHub Discussions - a separate index from issues/PRs), or 'code' (literal/regex/symbol search across 2.8M+ public GitHub repos). Optional - inferred from the query: is:answered/category: implies discussions, is:/label:/author: implies conversations, path:/symbol:/content://regex/ implies code, stars:/topic:/in:readme implies repos, otherwise repos. type:code / type:repos / type:discussions in the query also works. A conversations search that matches nothing is retried as discussions, so an answer that lives in Discussions is not silently missed."},"page":{"type":"integer","default":1,"maximum":10,"minimum":1,"description":"Page number"},"repo":{"type":"string","description":"Scope to one repository. Accepts 'owner/name', a github.com URL, or a partial 'owner/' (code). Works with any kind; setting it with kind=repos routes the search to conversations, since repo-name search can't scope to one repo. Equivalent to a repo: qualifier in the query (if both are given they must match)."},"query":{"type":"string","maxLength":1000,"minLength":1,"description":"Search query in full GitHub search syntax: qualifiers (repo:owner/name, org:/user:, language:, path: with globs, symbol:, content:, is:, stars:>N, label:, sort:stars), boolean AND/OR/NOT with parentheses, \"exact strings\", and /regex/. kind=repos: minimal distinctive keywords - the project/library name (GOOD: 'rtk', 'react query'; BAD: 'rtk rust token killer' - every extra word must ALL match and buries the real repo; filter with qualifiers, not prose). kind=code: ONE literal code pattern as it appears in files ('useState('), an \"exact string\", a /regex/, or symbol:name for definitions; narrow with repo:/language:/path:, not extra words. kind=conversations: keywords plus filters (is:issue, label:bug). kind=discussions: keywords plus repo:/org:/author:/is:answered/category: - a separate GitHub index from issues/PRs, so a thread that lives in Discussions is invisible to kind=conversations (and vice versa). category: matches the repo's own category name (Ideas, Q&A) and needs a repo: scope; sort: does not apply. Caution: sort: REPLACES relevance ranking (sort:reactions = most-popular thread mentioning the words anywhere, incl. comments) - omit sort: for best-match. Not supported in code search: license:, enterprise:, is:vendored, is:generated."},"per_page":{"type":"integer","default":20,"maximum":30,"minimum":1,"description":"Results per page"}}},"responseSchema":{"type":"json","example":{"results":[{"full_name":"x402-foundation/x402"}],"has_more":true,"total_count":42}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":1,"rating":{"score":"0.92","successRate":"1.00","reviews":1,"stars":"4.7","state":"rated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_MH88d_ujvdHI62hTHkHBo","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Search GitHub repositories or conversations using GitHub search syntax and get paginated live results","exampleAgentPrompt":"Search GitHub for repos about 'x402 payment protocol' — give me the top 10 results from page 1 of the repos kind.","exampleUseCases":null,"resultDescription":"A JSON object containing a list of matching GitHub repositories or conversations (each with full_name and other metadata), a total_count of matches, and a has_more boolean for pagination.","failureModes":["Invalid 'kind' value (not 'repos' or 'conversations') returns a 400 error","Query string using unsupported GitHub syntax may return empty results","per_page exceeding 30 is out of range and may be clamped or rejected","Payment not included or insufficient funds returns a 402 Payment Required","Rate limits on the underlying GitHub API may cause temporary 503 responses","Empty query returns unpredictable or broad results"],"whenToPreferThis":"Use this endpoint when you need live, real-time GitHub search results without managing your own GitHub API keys or OAuth setup. Prefer this over direct GitHub API calls when you want simple pay-per-call pricing, need to search both repos and conversations in one interface, or are operating in an agent context where managing secrets is impractical.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":1,"lastUsedAt":"2026-08-07T15:25:03.031Z","lastSuccessfullyRanAt":"2026-08-07T15:25:03.031Z","lastHealthCheckAt":"2026-09-13T12:54:18.901Z","isFirstParty":false}