GitHub user search
GET https://api.api.sh/github/v1/search/users
Search users and organizations, with qualifiers as params. 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 |
|---|---|---|
q | string | Search text (optional when a qualifier is given). Example: react |
type | user | org | user or org. |
location | string | Location qualifier. |
language | string | Language of their repositories. |
followers | string | Followers, e.g. >1000. |
repos | string | Repository count, e.g. >10. |
created | string | Join date, e.g. <2015-01-01. |
in_ | string | login, name, email. |
sort | followers | repositories | joined | followers, repositories, joined. |
order | asc | desc | desc or asc. |
page | string | Page number (100 per page, 10 pages max). Example: 1 |
Every endpoint also takes fresh, raw, fields (see lean responses and caching).
Example
curl "https://api.api.sh/github/v1/search/users?q=react&page=1" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/github/v1/search/users",
params={"q": "react", "page": "1"},
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/search/users");
url.searchParams.set("q", "react");
url.searchParams.set("page", "1");
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)
{"query": "react","sort": "best-match","order": "desc","total": 283186,"incomplete_results": false,"page": 1,"next_page": 2,"count": 100,"users": [{"login": "react","id": 102812,"type": "Organization","avatar": "https://avatars.githubusercontent.com/u/102812?v=4","url": "https://github.com/react","node_id": "MDEyOk9yZ2FuaXphdGlvbjEwMjgxMg==","site_admin": false,"user_view_type": "public","score": 1},{"login": "reactjs","id": 6412038,"type": "Organization","avatar": "https://avatars.githubusercontent.com/u/6412038?v=4","url": "https://github.com/reactjs","node_id": "MDEyOk9yZ2FuaXphdGlvbjY0MTIwMzg=","site_admin": false,"user_view_type": "public","score": 1},"… 98 more"],"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.