{"openapi":"3.1.0","info":{"title":"GitHub Search (BYOK) API","version":"0.1.0","description":"GitHub Search (BYOK) lets an AI assistant read your own GitHub Search data through the GitHub Search API with a key you supply (GitHub personal access token (code search requires an authenticated key)). Read-only: 5 tools (search_code, search_commits, search_users, search_topics, search_labels). The BYOK key travels with each request, is used for that one call only and is never stored, logged or...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-github-search.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-github-search/docs"},"termsOfService":"https://connectorbay.com/byok-github-search/terms"},"servers":[{"url":"https://byok-github-search.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-github-search/docs"},"security":[{"upstreamKey":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"Optional. A Pro API key raises rate limits; no credentials are required."},"upstreamKey":{"type":"apiKey","in":"header","name":"X-Upstream-Key","description":"Your own key for the service this connector wraps (bring your own key). Used for that one call only; never stored, logged or cached."}},"schemas":{"Error":{"type":"object","properties":{"ok":{"const":false},"error":{"type":"object"}}}}},"paths":{"/v1/tools/search_code":{"post":{"operationId":"search_code","summary":"Search file contents across GitHub with qualifiers such as repo:, org:, language:, path: and filename:; returns file nam","description":"Search file contents across GitHub with qualifiers such as repo:, org:, language:, path: and filename:; returns file name, path and repository. Use for \"Find files in octocat/Hello-World that mention 'deprecated'\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"q":{"description":"Code search query with at least one keyword, for example 'deprecated repo:octocat/Hello-World language:python'.","maxLength":256,"title":"Q","type":"string"},"per_page":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":30,"description":"How many results to return (1 to 100, default 30).","title":"Per Page"},"page":{"anyOf":[{"maximum":10000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1 (search returns at most the first 1000 results).","title":"Page"}},"required":["q"],"title":"search_codeArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/search_commits":{"post":{"operationId":"search_commits","summary":"Search commits by message, author, committer, repo or date qualifiers; returns SHA, message, author name, date and repos","description":"Search commits by message, author, committer, repo or date qualifiers; returns SHA, message, author name, date and repository. Use for \"Find commits that mention 'fix typo' in octocat/Hello-World\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"q":{"description":"Commit search query, for example 'fix typo repo:octocat/Hello-World author-date:>2026-01-01'.","maxLength":256,"title":"Q","type":"string"},"sort":{"anyOf":[{"enum":["author-date","committer-date"],"type":"string"},{"type":"null"}],"default":null,"description":"Order by author-date or committer-date (default best match).","title":"Sort"},"order":{"anyOf":[{"enum":["asc","desc"],"type":"string"},{"type":"null"}],"default":"desc","description":"Sort direction: desc (default) or asc. Only used together with sort.","title":"Order"},"per_page":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":30,"description":"How many results to return (1 to 100, default 30).","title":"Per Page"},"page":{"anyOf":[{"maximum":10000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1 (search returns at most the first 1000 results).","title":"Page"}},"required":["q"],"title":"search_commitsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/search_users":{"post":{"operationId":"search_users","summary":"Search GitHub users and organizations by name, login, location, language or follower counts (qualifiers such as type:org","description":"Search GitHub users and organizations by name, login, location, language or follower counts (qualifiers such as type:org, followers:>100). Use for \"Find GitHub users in Pune with more than 100 followers who write Python\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"q":{"description":"User search query, for example 'location:pune language:python followers:>100'.","maxLength":256,"title":"Q","type":"string"},"sort":{"anyOf":[{"enum":["followers","repositories","joined"],"type":"string"},{"type":"null"}],"default":null,"description":"Order by followers, repositories or joined (default best match).","title":"Sort"},"order":{"anyOf":[{"enum":["asc","desc"],"type":"string"},{"type":"null"}],"default":"desc","description":"Sort direction: desc (default) or asc. Only used together with sort.","title":"Order"},"per_page":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":30,"description":"How many results to return (1 to 100, default 30).","title":"Per Page"},"page":{"anyOf":[{"maximum":10000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1 (search returns at most the first 1000 results).","title":"Page"}},"required":["q"],"title":"search_usersArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/search_topics":{"post":{"operationId":"search_topics","summary":"Search GitHub topics (repository tags) by keyword; returns the topic name, short description, whether it is featured or ","description":"Search GitHub topics (repository tags) by keyword; returns the topic name, short description, whether it is featured or curated and how many repositories use it. Use for \"What GitHub topics exist about machine learning\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"q":{"description":"Topic search keywords, for example 'machine learning' or 'is:featured'.","maxLength":256,"title":"Q","type":"string"},"per_page":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":30,"description":"How many results to return (1 to 100, default 30).","title":"Per Page"},"page":{"anyOf":[{"maximum":10000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1 (search returns at most the first 1000 results).","title":"Page"}},"required":["q"],"title":"search_topicsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/search_labels":{"post":{"operationId":"search_labels","summary":"Search the labels of one repository by keyword in the name or description; the repository is given by its numeric ID. Us","description":"Search the labels of one repository by keyword in the name or description; the repository is given by its numeric ID. Use for \"Which labels in repository 1296269 relate to bugs\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"repository_id":{"description":"Numeric ID of the repository (the id field of a repository answer).","minimum":1,"title":"Repository Id","type":"integer"},"q":{"description":"Keywords to look for in label names and descriptions (qualifiers are not accepted here).","maxLength":256,"title":"Q","type":"string"},"sort":{"anyOf":[{"enum":["created","updated"],"type":"string"},{"type":"null"}],"default":null,"description":"Order by created or updated (default best match).","title":"Sort"},"order":{"anyOf":[{"enum":["asc","desc"],"type":"string"},{"type":"null"}],"default":"desc","description":"Sort direction: desc (default) or asc. Only used together with sort.","title":"Order"},"per_page":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":30,"description":"How many results to return (1 to 100, default 30).","title":"Per Page"},"page":{"anyOf":[{"maximum":10000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1 (search returns at most the first 1000 results).","title":"Page"}},"required":["repository_id","q"],"title":"search_labelsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}}}}