Code
Search repository code
Search for text patterns in a repository's source code using the underlying provider's code search API (GitHub or GitLab). Returns matching file paths, line numbers, and preview snippets. Supports GitHub and GitLab repositories only (Bitbucket is not supported). Note: the ref parameter is supported only for GitLab -- GitHub always searches the default branch. Use pathPrefix to narrow results to a specific directory.
post/api/v2/code/search
Request
- Base URLhttps://zeropath.com
- AuthAPI key in header X-ZeroPath-API-Token-Id and API key in header X-ZeroPath-API-Token-Secret
Request body
Response
Search results
Changes
No recorded changes to this operation across all 1 revision of this API.