APIs / GitHub / Repository Compare Commits

GitHub: Repository Compare Commits

Repository Compare Commits from GitHub as JSON. 1 credit per successful call.

GET /v1/github/repository-compare-commits

Parameters

Send parameters in the query string.

ParameterTypeRequiredAllowed values
ownerstringRequiredUp to 39 characters
repostringRequiredUp to 100 characters
basestringRequiredUp to 255 characters
headstringRequiredUp to 255 characters

Example request

GitHub
GET/v1/github/repository-compare-commits?owner=laravel&repo=framework&base=12.x&head=13.x
{
  "search_parameters": {
    "engine": "github_compare_commits",
    "owner": "laravel",
    "repo": "framework",
    "base": "12.x",
    "head": "13.x"
  },
  "repository": "laravel/framework",
  "range": "12.x...13.x",
  "commits": [
    {
      "oid": "6f0c2d066b2af3cb486b247406e3dc535d24af5f",
      "abbreviatedOid": "6f0c2d0",
      "messageHeadline": "update `bin/split.sh`",
      "committedDate": "2025-02-19T14:15:17+08:00",
      "url": "/laravel/framework/commit/6f0c2d066b2af3cb486b247406e3dc535d24af5f",
      "author": {
        "displayName": "Mior Muhammad Zaki",
        "login": "crynobone",
        "avatarUrl": "https://avatars.githubusercontent.com/u/172966?s=40&v=4"
      }
    },
    {
      "oid": "ad719b5793e6b83eaa6a516a0a644fdd949c6569",
      "abbreviatedOid": "ad719b5",
      "messageHeadline": "Revert \"[12.x] Query builder PDO fetch modes (#54443)\" (#54709)",
      "committedDate": "2025-02-19T10:00:17-06:00",
      "url": "/laravel/framework/commit/ad719b5793e6b83eaa6a516a0a644fdd949c6569",
      "author": {
        "displayName": "Taylor Otwell",
        "login": "taylorotwell",
        "avatarUrl": "https://avatars.githubusercontent.com/u/463230?s=40&v=4"
      }
    },
    {
      "oid": "c5de81cf7e9aa80e3a4061858d43de39338d5cdc",
      "abbreviatedOid": "c5de81c",
      "messageHeadline": "Update facade docblocks",
      "committedDate": "2025-02-19T16:01:04Z",
      "url": "/laravel/framework/commit/c5de81cf7e9aa80e3a4061858d43de39338d5cdc",
      "author": {
        "displayName": "taylorotwell",
        "login": "taylorotwell",
        "avatarUrl": "https://avatars.githubusercontent.com/u/463230?s=40&v=4"
      }
    }
  ],
  "commit_count": 50
}
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
rangestring
commitsobject[]
commit_countinteger