APIs / GitHub / Repository Files At Ref

GitHub: Repository Files At Ref

Repository Files At Ref from GitHub as JSON. 1 credit per successful call.

GET /v1/github/repository-files-at-ref

Parameters

Send parameters in the query string.

ParameterTypeRequiredAllowed values
ownerstringRequiredUp to 39 characters
repostringRequiredUp to 100 characters
refstringRequiredUp to 255 characters

Example request

GitHub
GET/v1/github/repository-files-at-ref?owner=laravel&repo=framework&ref=13.x
{
  "search_parameters": {
    "engine": "github_repository_files_at_ref",
    "owner": "laravel",
    "repo": "framework",
    "ref": "13.x"
  },
  "repository": "laravel/framework",
  "ref": "13.x",
  "files": [
    {
      "name": "README.md",
      "path": "README.md",
      "ref_name": "13.x",
      "file_type": "readme",
      "rich_text": "<article class=\"markdown-body entry-content container-lg\" itemprop=\"text\"><p align=\"center\" dir=\"auto\"><a href=\"https://laravel.com\" rel=\"nofollow\"><img src=\"https://raw.githubusercontent.com/laravel/art/master/logo-lockup/5%20SVG/2%20CMYK/…"
    },
    {
      "name": "CODE_OF_CONDUCT.md",
      "path": ".github/CODE_OF_CONDUCT.md",
      "ref_name": "13.x",
      "file_type": "code_of_conduct",
      "rich_text": "<article class=\"markdown-body entry-content container-lg\" itemprop=\"text\"><div class=\"markdown-heading\" dir=\"auto\"><h1 class=\"heading-element\" dir=\"auto\">Code of Conduct</h1><a id=\"user-content-code-of-conduct\" class=\"anchor\" aria-label=\"Pe…"
    },
    {
      "name": "CONTRIBUTING.md",
      "path": ".github/CONTRIBUTING.md",
      "ref_name": "13.x",
      "file_type": "contributing",
      "rich_text": "<article class=\"markdown-body entry-content container-lg\" itemprop=\"text\"><div class=\"markdown-heading\" dir=\"auto\"><h1 class=\"heading-element\" dir=\"auto\">Laravel Contribution Guide</h1><a id=\"user-content-laravel-contribution-guide\" class=\"…"
    }
  ],
  "file_count": 5
}
200 OKJSONX-Credits-Used: 1
Recorded 12 Nov 2026 and shortened.

Run this endpoint in the playground with your own parameters. 1 credit per successful call; failed calls are free.

Response fields

The response has these 5 fields, read from a recorded call. The recording leaves out fields that were empty, so a live call can return more.

FieldType
search_parametersobject
repositorystring
refstring
filesobject[]
file_countinteger