GitHub Repositories API
List a user's repos with sort/direction/type — opaque Link cursor (~0.4/repo).
List repositories from GitHub REST /users/{login}/repos. Pass sort=created|updated|pushed|full_name (default updated), direction=asc|desc, and type=owner|member|all — all echoed at the top level. Each row is the same camelCase repo card as github/repository: homepage, license, and licenseName are always present (null when unset / NOASSERTION). watchers and parent are detail-only — list payloads omit subscribers_count and parent; call github/repository for those. Opaque nextCursor from GitHub's Link header. ~0.4 credits/repo (default limit 30 → ~12). Pricing vs detail: single-repo lookup is flat 1 credit; this list is per-result for bulk. Trending is a separate HTML scrape at flat 2.
Request
- Base URL: https://api.captapi.com
- URL: https://api.captapi.com/v1/github/repositories
- Auth: one of:
- HTTP bearer
- API key in header X-API-Key
Query parameters
GitHub username or profile URL, e.g. torvalds.
created | updated | pushed | full_name (default updated). Not stars — GitHub's user-repos API has no stars sort. Echoed as data.sort.
asc or desc (default desc). Echoed as data.direction.
owner (default) | member | all — affiliation filter. Echoed as data.type.
Max items to return (default 30, max 100). Billed per result.
Opaque cursor from a previous nextCursor (GitHub Link page=). Not a bare page number.
Set true to serve from the 24h response cache (0 credits on hit). Default false — always fetch fresh.
Response
Success. The data object for this endpoint.
Changes
No recorded changes to this operation across all 3 revisions of this API.