repositories

Grep repository (deprecated)

Changed on

Deprecated: use GET /api/v1/search/grep instead. Searches file contents in a repository using git grep.

get/repositories/{id}/grep

Request

  • Base URL
    /api/v1 (relative, and the document was published on a file host, not at the API’s origin)
  • URL
    /api/v1/repositories/{id}/grep
  • Auth
    API key in header X-API-KEY

Path parameters

idinteger required

Repository ID

Query parameters

patternstring required

Search pattern

globstring

Glob pattern to filter files

limitinteger

Maximum results (default 50, max 200)

Response

OK

Changes