How to get GitHub repositories
GET request to /v1/github/repositories with your input. You get clean JSON back in seconds for 12 credits per call — no OAuth, scraping or platform SDKs. Bulk-list GitHub content with full metadata for each item.How to get GitHub repositories (step by step)
- 1
Get a free API key
Create a free Captapi account (100 credits, no card) and generate an API key from the dashboard.
- 2
Call the GitHub Repositories API
Send an authenticated GET request to /v1/github/repositories with your input. No OAuth, no scraping setup.
- 3
Read the JSON response
Parse the clean JSON response. Results are cached for 24 hours, so repeat calls are free.
Code example
curl "https://api.captapi.com/v1/github/repositories?username=vercel" \
-H "Authorization: Bearer capt_live_..."What the response looks like
{
"success": true,
"cached": false,
"creditsUsed": 12,
"data": {
"username": "torvalds",
"totalReturned": 5,
"repositories": [
{
"platform": "github",
"type": "repository",
"name": "linux",
"fullName": "torvalds/linux",
"url": "https://github.com/torvalds/linux",
"description": "Linux kernel source tree",
"owner": "torvalds",
"ownerUrl": "https://github.com/torvalds",
"language": "C",
"stars": 238305,
"forks": 63076,
"watchers": 238305,
"openIssues": 3,
"defaultBranch": "master",
"homepage": null,
"license": "NOASSERTION",
"topics": [],
"isFork": null,
"isArchived": null,
"ownerAvatar": "https://avatars.githubusercontent.com/u/1024025?v=4",
"pushedAt": "2026-07-04T04:59:43Z",
"createdAt": "2011-09-04T22:48:12Z",
"updatedAt": "2026-07-04T10:15:42Z"
},
{
"platform": "github",
"type": "repository",
"name": "GuitarPedal",
"fullName": "torvalds/GuitarPedal",
"url": "https://github.com/torvalds/GuitarPedal",
"description": "Linus learns analog circuits",
"owner": "torvalds",
"ownerUrl": "https://github.com/torvalds",
"language": "C",
"stars": 2064,
"forks": 83,
"watchers": 2064,
"openIssues": 4,
"defaultBranch": "main",
"homepage": null,
"license": "GPL-2.0",
"topics": [],
"isFork": null,
"isArchived": null,
"ownerAvatar": "https://avatars.githubusercontent.com/u/1024025?v=4",
"pushedAt": "2026-06-27T04:04:58Z",
"createdAt": "2025-09-17T01:01:29Z",
"updatedAt": "2026-07-04T08:56:34Z"
},
{
"platform": "github",
"type": "repository",
"name": "AudioNoise",
"fullName": "torvalds/AudioNoise",
"url": "https://github.com/torvalds/AudioNoise",
"description": "Random digital audio effects",
"owner": "torvalds",
"ownerUrl": "https://github.com/torvalds",
"language": "C",
"stars": 4413,
"forks": 206,
"watchers": 4413,
"openIssues": 34,
"defaultBranch": "main",
"homepage": null,
"license": "GPL-2.0",
"topics": [],
"isFork": null,
"isArchived": null,
"ownerAvatar": "https://avatars.githubusercontent.com/u/1024025?v=4",
"pushedAt": "2026-05-08T17:20:22Z",
"createdAt": "2026-01-09T02:33:29Z",
"updatedAt": "2026-07-04T07:49:58Z"
},
{
"platform": "github",
"type": "repository",
"name": "uemacs",
"fullName": "torvalds/uemacs",
"url": "https://github.com/torvalds/uemacs",
"description": "Random version of microemacs with my private modificatons",
"owner": "torvalds",
"ownerUrl": "https://github.com/torvalds",
"language": "C",
"stars": 2071,
"forks": 312,
"watchers": 2071,
"openIssues": 16,
"defaultBranch": "master",
"homepage": null,
"license": null,
"topics": [],
"isFork": null,
"isArchived": null,
"ownerAvatar": "https://avatars.githubusercontent.com/u/1024025?v=4",
"pushedAt": "2026-02-25T19:15:47Z",
"createdAt": "2018-01-17T22:32:21Z",
"updatedAt": "2026-07-04T02:22:43Z"
},
{
"platform": "github",
"type": "repository",
"name": "pesconvert",
"fullName": "torvalds/pesconvert",
"url": "https://github.com/torvalds/pesconvert",
"description": "Brother PES file converter",
"owner": "torvalds",
"ownerUrl": "https://github.com/torvalds",
"language": "C",
"stars": 567,
"forks": 74,
"watchers": 567,
"openIssues": 6,
"defaultBranch": "master",
"homepage": null,
"license": null,
"topics": [],
"isFork": null,
"isArchived": null,
"ownerAvatar": "https://avatars.githubusercontent.com/u/1024025?v=4",
"pushedAt": "2022-12-22T10:46:37Z",
"createdAt": "2017-12-04T21:58:56Z",
"updatedAt": "2026-07-03T19:22:22Z"
}
]
}
}Request parameters
| Name | Type | Required | Description |
|---|---|---|---|
| username | string | Yes | GitHub username or profile URL. |
| limit | integer | No | Max items to return (default 30, max 100). Billed per result. |
Frequently asked questions
What does the GitHub Repositories API do?
The GitHub Repositories API lets you list items in bulk with metadata from a public GitHub video using one GET request to /v1/github/repositories. It returns clean JSON — no OAuth or scraping setup required.
How many credits does the GitHub Repositories API cost?
Each successful call costs 12 credits. Responses are cached for 24 hours, and cached results cost 0 credits. Failed or empty results are never charged.
Do I need a GitHub API key or OAuth?
No. A single Captapi key works across every platform Captapi supports — YouTube, TikTok, Instagram, Facebook, Twitter/X, Reddit, Threads, Bluesky, Pinterest, LinkedIn, and Rumble. We handle proxies, rate limits, retries, and authentication for you.
Is the GitHub Repositories API suitable for production use?
Yes. It is a stable REST endpoint with predictable JSON, automatic retries, and a shared 24-hour cache. Use it for RAG pipelines, analytics, monitoring, and content automation.
Ready to get GitHub repositories?
Start free with 100 credits — no credit card required.
Get your free API key