GitHub API
GitHub User repositories API
List a GitHub user's public repositories (name, description, language, stars, and forks) with sorting and cursor pagination.
POST/v1/run/github.user_repositories
Requests
-
30d
Try it
Make your first request
Sample response
Free runs return only the first 3 results. Fund a key to get the full response.
{
"data": {
"hasMore": true,
"nextCursor": "example",
"repos": [
{
"archived": false,
"avatarUrl": "https://example.com/image.jpg",
"description": "A short example description of this item.",
"fork": true,
"forks": 42,
"fullName": "Alex Rivera",
"language": "en",
"name": "Example title",
"pushedAt": "example",
"stars": 5,
"updatedAt": "2024-01-15T09:30:00Z",
"url": "https://example.com/page"
}
]
},
"found": true
}Response interface
interface GithubUserRepositoriesResponse {
data: {
hasMore: boolean;
nextCursor: string | null;
repos: {
archived: boolean;
avatarUrl?: string;
description: string;
fork: boolean;
forks: number;
fullName: string;
language: string;
name: string;
pushedAt: string;
stars: number;
updatedAt: string;
url: string;
}[];
} | null;
found: boolean;
}Full parameter and response reference - every field, type, and example for this endpoint.
Reference
Request, response, and price
Last verified 2026-09-16 · uptime and latency measured over 30dPOST /v1/run/github.user_repositories
curl -X POST https://api.getanyapi.com/v1/run/github.user_repositories \
-H "Authorization: Bearer $ANYAPI_KEY" \
-H "Content-Type: application/json" \
-d '{"handle":"torvalds"}'| Field | Type | Example value |
|---|---|---|
| Request body | ||
| handle | string | "torvalds"GitHub username. |
| cursor | string | Opaque pagination cursor from a previous response's nextCursor. Omit for the first page; pass it back to fetch the next page. |
| direction | enum | Sort direction, ascending or descending, paired with sort. |
| sort | enum | Repository ordering. |
| type | enum | Which repositories to include: owner (default), all, or member. |
| Response | ||
| data | object | |
| data.hasMore | boolean | |
| data.nextCursor | string | Opaque cursor for the next page of repositories, or null when this lane has no more. Pass it back as cursor to continue. |
| data.repos | object[] | Populated whenever the provider has data for the entity. |
| data.repos[].archived | boolean | |
| data.repos[].avatarUrl | string | URL of the repository owner's avatar image. |
| data.repos[].description | string | |
| data.repos[].fork | boolean | |
| data.repos[].forks | integer | |
| data.repos[].fullName | string | Populated whenever the provider has data for the entity. |
| data.repos[].language | string | |
| data.repos[].name | string | Populated whenever the provider has data for the entity. |
| data.repos[].pushedAt | string | |
| data.repos[].stars | integer | |
| data.repos[].updatedAt | string | |
| data.repos[].url | string | Populated whenever the provider has data for the entity. |
| found | boolean | |
| Price | ||
| Price per request | USD | $0.0012 |
| Price /1k req | USD | $1.20 |
FAQ
About the GitHub User repositories API
The AnyAPI GitHub User repositories API returns GitHub user repositories data as normalized JSON from one POST call to /v1/run/github.user_repositories. List a GitHub user's public repositories (name, description, language, stars, and forks) with sorting and cursor pagination. AnyAPI returns one normalized schema whichever source serves it. It costs from $1.20 per 1,000 requests, in US dollars with no subscription and no monthly minimum.
It costs from $1.20 per 1,000 requests, in US dollars with no subscription and no monthly minimum. You fund one USD wallet, each call draws it down, and a failed request costs $0.
List a GitHub user's public repositories (name, description, language, stars, and forks) with sorting and cursor pagination. The response is normalized JSON with the same envelope every AnyAPI endpoint returns, so parsing a second endpoint is a change of URL and nothing else.
More to call