v2-api
github-search

Read a file from a GitHub repository with optional line range.

post/github/read

Request

  • The document declares no server URL.
  • Auth
    none declared

Request body

repositorystring required

Repository in owner/repo format

pathstring required

File path within the repository

refstring

Branch, tag, or commit SHA

start_lineinteger nullable

1-based start line

end_lineinteger nullable

1-based end line (inclusive)

Response

Successful Response

unknown required

Changes