GITHUB API
Repositories
Retrieve repositories from GitHub with a single API request.
GET
/api/data/v1/github/user/repositories1credit base cost
Request parameters
Up to 1 creditGitHub username/handle of the user you want the repositories for
GitHub user URL, e.g. https://github.com/kentcdodds.
Repository type. Defaults to owner. GitHub also supports all and member.
Sort by created, updated, pushed, or full_name. Defaults to updated.
Sort direction: ascending or descending.
Cursor from the previous response. Defaults to 1.
Live requests use your prepaid balance. Cached responses cost zero where supported.
curl --request GET \
--url 'https://fetchgoblin.com/api/data/v1/github/user/repositories?handle=torvalds' \
--header 'x-api-key: YOUR_FETCHGOBLIN_API_KEY'Response
Example{
"success": true,
"repositories": [
{
"id": 320393623,
"node_id": "MDEwOlJlcG9zaXRvcnkzMjAzOTM2MjM=",
"name": "kentcdodds.com",
"full_name": "kentcdodds/kentcdodds.com",
"owner": {
"id": 1500684,
"login": "kentcdodds",
"avatar_url": "https://avatars.githubusercontent.com/u/1500684?v=4",
"url": "https://github.com/kentcdodds",
"type": "User"
},
"private": false,
"url": "https://github.com/kentcdodds/kentcdodds.com",
"description": "My personal website",
"fork": false,
"homepage": "https://kentcdodds.com",
"language": "MDX",
"forks_count": 654,
"stars_count": 2485,
"watchers_count": 2485,
"size": 53677,
"default_branch": "main",
"open_issues_count": 4,
"topics": [
"kentcdodds"
],
"license": {
"key": "other",
"name": "Other",
"spdx_id": "NOASSERTION"
},
"archived": false,
"disabled": false,
"visibility": "public",
"pushed_at": "2026-05-20T20:16:24Z",
"created_at": "2020-12-10T21:24:32Z",
"updated_at": "2026-05-21T16:43:37Z"
}
],
"cursor": 2,
"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"
},
"repositories": {
"type": "array",
"items": {
"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",
"items": {
"type": "string"
}
},
"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"
}
}
}
},
"cursor": {
"type": "integer"
},
"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."
}
}
}