GitHub

Fetch GitHub repo metadata, files, PRs, issues, or discussions

Fetch GitHub data from a single ref (a github.com URL or owner/repo shorthand): repo metadata + README, files, tree, commits, branches, releases, PRs, issues, discussions, or topic repo listings - inferred from the ref.

post/api/v1/github/get

Request

  • Base URL: https://glim.sh
  • URL: https://glim.sh/api/v1/github/get
  • Auth: one of:
    • none
    • API key in header x-api-key
    • HTTP bearer
    • API key in query parameter apiKey

Request body

refstring required

GitHub URL or 'owner/repo' shorthand. A repo URL or owner/repo returns metadata + README; /pull/N -> PR (with comments + changed files), /issues/N -> issue, /discussions/N -> discussion (with threaded replies), /blob/<ref>/<path> -> file (raw.githubusercontent.com URLs work too), /tree/<ref>[/<path>] -> file tree (optionally scoped to a subdirectory), /commit/<sha> -> one commit with diff, /commits[/<ref>/<path>] -> history (optionally for one file), /branches, /releases (or /releases/tag/<tag> | /releases/latest -> one release), /topics/<name> -> top repos with that topic (by stars).

pageinteger

Page number for paginated results

per_pageinteger

Results per page

Response

GitHub data

dataunknown required
kindstring required

Resource kind resolved from the ref

truncatedboolean

Whether the payload was clipped

total_countnumber

Total matching repos (topic refs only)

noticestring

How the ref was resolved (e.g. the repository was renamed)

path_missingboolean

Tree refs only: the path is absent from this tree, as opposed to an empty tree

Changes

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