Repositories

Search repository source

Searches files at HEAD, a public branch or tag, or an exact commit OID and returns at most 1,000 matches with up to 10 context lines. Public repositories allow anonymous reads; supplied credentials are validated and may expand access to private resources.

get/api/repos/{owner}/{repo}/search

Request

  • Base URL
    https://git.cafe
  • Auth
    • none
    • or API key in cookie gc-session
    • or HTTP bearer
    • or HTTP basic
    • or HTTP token
    • or OAuth 2
      Authorization code: /api/oauth/authorize
      Token URL: /api/oauth/token scopes: repo:contents:read

Path parameters

ownerstring required
repostring required

Query parameters

refstring
oidstring
pathstring
patternstring required
boolean
OR
string
boolean
OR
string
maxMatchesinteger
contextLinesinteger

Response

Response for status 200

refstring required
commitstring required
truncatedboolean required

Changes

No recorded changes to this operation across all 1 revision of this API.