GITHUB API

Repository

Retrieve repository from GitHub with a single API request.

GET/api/data/v1/github/repository
1credit base cost

Request parameters

Up to 1 credit

GitHub repository URL

Try in the console

Live requests use your prepaid balance. Cached responses cost zero where supported.

curl --request GET \
  --url 'https://fetchgoblin.com/api/data/v1/github/repository?url=https%3A%2F%2Fgithub.com%2Ftorvalds%2Flinux' \
  --header 'x-api-key: YOUR_FETCHGOBLIN_API_KEY'

Response

Example
{
  "success": true,
  "repository": {
    "id": 2325298,
    "node_id": "MDEwOlJlcG9zaXRvcnkyMzI1Mjk4",
    "name": "linux",
    "full_name": "torvalds/linux",
    "owner": {
      "id": 1024025,
      "login": "torvalds",
      "avatar_url": "https://avatars.githubusercontent.com/u/1024025?v=4",
      "url": "https://github.com/torvalds",
      "type": "User"
    },
    "private": false,
    "url": "https://github.com/torvalds/linux",
    "description": "Linux kernel source tree",
    "fork": false,
    "homepage": "",
    "language": "C",
    "forks_count": 62423,
    "stars_count": 233979,
    "watchers_count": 233979,
    "size": 6298741,
    "default_branch": "master",
    "open_issues_count": 3,
    "topics": [],
    "license": {
      "key": "other",
      "name": "Other",
      "spdx_id": "NOASSERTION"
    },
    "archived": false,
    "disabled": false,
    "visibility": "public",
    "pushed_at": "2026-05-21T16:23:10Z",
    "created_at": "2011-09-04T22:48:12Z",
    "updated_at": "2026-05-21T19:31:40Z"
  },
  "credits_charged": 1,
  "credits_remaining": 1000,
  "request_id": "00000000-0000-4000-8000-000000000000"
}
Example data from the API specification. Run a request to retrieve current data.

Response shape

This schema describes the documented data shape. Some platform fields may be absent or null. The response also includes your FetchGoblin request ID and current credit balance.

View JSON Schema +
{
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean"
    },
    "repository": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "node_id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "full_name": {
          "type": "string"
        },
        "owner": {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer"
            },
            "login": {
              "type": "string"
            },
            "avatar_url": {
              "type": "string"
            },
            "url": {
              "type": "string"
            },
            "type": {
              "type": "string"
            }
          }
        },
        "private": {
          "type": "boolean"
        },
        "url": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "fork": {
          "type": "boolean"
        },
        "homepage": {
          "type": "string"
        },
        "language": {
          "type": "string"
        },
        "forks_count": {
          "type": "integer"
        },
        "stars_count": {
          "type": "integer"
        },
        "watchers_count": {
          "type": "integer"
        },
        "size": {
          "type": "integer"
        },
        "default_branch": {
          "type": "string"
        },
        "open_issues_count": {
          "type": "integer"
        },
        "topics": {
          "type": "array"
        },
        "license": {
          "type": "object",
          "properties": {
            "key": {
              "type": "string"
            },
            "name": {
              "type": "string"
            },
            "spdx_id": {
              "type": "string"
            }
          }
        },
        "archived": {
          "type": "boolean"
        },
        "disabled": {
          "type": "boolean"
        },
        "visibility": {
          "type": "string"
        },
        "pushed_at": {
          "type": "string"
        },
        "created_at": {
          "type": "string"
        },
        "updated_at": {
          "type": "string"
        }
      }
    },
    "credits_charged": {
      "type": "integer",
      "minimum": 0,
      "description": "FetchGoblin credits charged for this request."
    },
    "credits_remaining": {
      "type": "integer",
      "description": "Your FetchGoblin credit balance after this request."
    },
    "request_id": {
      "type": "string",
      "format": "uuid",
      "description": "FetchGoblin request identifier."
    }
  }
}
GitHub Repository API | FetchGoblin