GitHub user repositories by username — stars, language
scrapecreators.x.v1-github-user-repositoriesRetrieves a user's public repositories with repo metadata like description, language, stars, forks, topics, license, visibility, default branch, and timestamps.
- Price
- $0.00188/callAt provider cost
- Success rate
- —No success-rate data yetNo success-rate data yet
- Latency p50
- ——
- Last verified
- —Not verified yet
GEThttps://toolswitch.dev/v1/tools/scrapecreators.x.v1-github-user-repositories?handle=torvaldsPreview- Uses platform quota
- Synchronous response
- Reads public data
Parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| Query parameters | ||||
url | string | Optional | GitHub user URL, e.g. https://github.com/kentcdodds. | https://github.com/kentcdodds |
sort | string | Optional | Sort by created, updated, pushed, or full_name. Defaults to updated. | updated |
type | string | Optional | Repository type. Defaults to owner. GitHub also supports all and member. | owner |
cursor | number | Optional | Cursor from the previous response. Defaults to 1. | 1 |
handle | string | Optional | GitHub username/handle of the user you want the repositories for | torvalds |
direction | string | Optional | Sort direction: ascending or descending. | desc |
- Query parameters
urlstringOptionalGitHub user URL, e.g. https://github.com/kentcdodds.
Example:
https://github.com/kentcdoddssortstringOptionalSort by created, updated, pushed, or full_name. Defaults to updated.
Example:
updatedtypestringOptionalRepository type. Defaults to owner. GitHub also supports all and member.
Example:
ownercursornumberOptionalCursor from the previous response. Defaults to 1.
Example:
1handlestringOptionalGitHub username/handle of the user you want the repositories for
Example:
torvaldsdirectionstringOptionalSort direction: ascending or descending.
Example:
desc
Code samples
Replace $TOOLSWITCH_KEY with the key you created in the console.
curl -X GET 'https://toolswitch.dev/v1/tools/scrapecreators.x.v1-github-user-repositories?handle=torvalds' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/scrapecreators.x.v1-github-user-repositories?handle=torvalds",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/scrapecreators.x.v1-github-user-repositories?handle=torvalds", {
method: "GET",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());This gateway API is in preview; its URL and authentication may change. The example parameters are sample data. Calls are billed at $0.00188/call, including the service fee.