GitHub user stars
GET https://api.api.sh/github/v1/user/starred
Repositories the user starred, with when. Every response includes credits_used: the credits this call cost.
Part of the GitHub API: 44 endpoints with prices, use cases and example responses.
Parameters
| name | type | description |
|---|---|---|
handlerequired | string | GitHub login (username or a github.com URL work too). Example: torvalds |
sort | created | updated | created or updated. |
direction | asc | desc | asc or desc. |
page | string | Page number (100 per page); next_page is null on the last page. Example: 1 |
Every endpoint also takes fresh, raw, fields (see lean responses and caching).
Example
curl "https://api.api.sh/github/v1/user/starred?handle=torvalds" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/github/v1/user/starred",
params={"handle": "torvalds"},
headers={"x-api-key": os.environ["APISH_KEY"]},
timeout=120,
)
res.raise_for_status()
data = res.json() const url = new URL("https://api.api.sh/github/v1/user/starred");
url.searchParams.set("handle", "torvalds");
const res = await fetch(url, { headers: { "x-api-key": process.env.APISH_KEY } });
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const data = await res.json(); Response
A JSON object with the fields described above, plus raw (the source's own data), cached, fetched_at and credits_used. Errors return {"success": false, "error": "…"} with the HTTP status (see errors). A lookup that ran but found nothing (404) costs the price above; refused calls and errors on our side are free (what's charged).
Example response (real call, trimmed: lists cut to 2 items, long text shortened, raw left out)
{"handle": "torvalds","sort": "created","direction": "desc","page": 1,"next_page": null,"count": 2,"starred": [{"id": 2325298,"name": "linux","full_name": "torvalds/linux","owner": "torvalds","url": "https://github.com/torvalds/linux","description": "Linux kernel source tree","homepage": null,"language": "C","topics": [],"license": "NOASSERTION","stars": 254313,"forks": 67013,"watchers": 254313,"open_issues": 3,"size_kb": 6446172,"default_branch": "master","fork": false,"archived": false,"is_template": false,"visibility": "public","created_at": "2011-09-04T22:48:12Z","updated_at": "2026-11-04T06:02:52Z","pushed_at": "2026-11-03T16:50:49Z","node_id": "MDEwOlJlcG9zaXRvcnkyMzI1Mjk4","private": false,"mirror_url": null,"disabled": false,"license_name": "Other","license_key": "other","owner_id": 1024025,"owner_type": "User","owner_avatar": "https://avatars.githubusercontent.com/u/1024025?v=4","owner_url": "https://github.com/torvalds","stargazers": 254313,"watchers_count": 254313,"subscribers": null,"network_count": null,"has_issues": false,"has_projects": true,"has_wiki": false,"…": "12 more fields"},{"id": 2319498,"name": "subsurface","full_name": "subsurface/subsurface","owner": "subsurface","url": "https://github.com/subsurface/subsurface","description": "This is the official upstream of the Subsurface divelog program","homepage": "https://subsurface-divelog.org","language": "C++","topics": [],"license": "GPL-2.0","stars": 3219,"forks": 620,"watchers": 3219,"open_issues": 226,"size_kb": 173016,"default_branch": "master","fork": false,"archived": false,"is_template": false,"visibility": "public","created_at": "2011-09-03T15:27:51Z","updated_at": "2026-11-04T05:57:22Z","pushed_at": "2026-11-04T05:57:16Z","node_id": "MDEwOlJlcG9zaXRvcnkyMzE5NDk4","private": false,"mirror_url": null,"disabled": false,"license_name": "GNU General Public License v2.0","license_key": "gpl-2.0","owner_id": 3876063,"owner_type": "Organization","owner_avatar": "https://avatars.githubusercontent.com/u/3876063?v=4","owner_url": "https://github.com/subsurface","stargazers": 3219,"watchers_count": 3219,"subscribers": null,"network_count": null,"has_issues": true,"has_projects": false,"has_wiki": true,"…": "12 more fields"}],"cached": false,"credits_used": 1} The fastest way to see the full response is the playground: it runs this endpoint with your account and shows the exact JSON.