GitHub repository (with languages and latest release)
GET https://api.api.sh/github/v1/repository
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 |
|---|---|---|
urlrequired | string | Repository URL or owner/name. Example: https://github.com/facebook/react |
Every endpoint also takes fresh, raw, fields (see lean responses and caching).
Example
curl "https://api.api.sh/github/v1/repository?url=https%3A%2F%2Fsiteproxy.ruqli.workers.dev%3A443%2Fhttps%2Fgithub.com%2Ffacebook%2Freact" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/github/v1/repository",
params={"url": "https://github.com/facebook/react"},
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/repository");
url.searchParams.set("url", "https://github.com/facebook/react");
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)
{"id": 10270250,"name": "react","full_name": "react/react","owner": "react","url": "https://github.com/react/react","description": "The library for web and native user interfaces.","homepage": "https://react.dev","language": "JavaScript","topics": ["declarative","frontend","… 4 more"],"license": "MIT","stars": 251904,"forks": 51629,"watchers": 6603,"open_issues": 1504,"size_kb": 1137401,"default_branch": "main","fork": false,"archived": false,"is_template": false,"visibility": "public","created_at": "2013-05-24T16:15:54Z","updated_at": "2026-11-04T05:51:45Z","pushed_at": "2026-10-31T13:53:11Z","node_id": "MDEwOlJlcG9zaXRvcnkxMDI3MDI1MA==","private": false,"mirror_url": null,"disabled": false,"license_name": "MIT License","license_key": "mit","owner_id": 102812,"owner_type": "Organization","owner_avatar": "https://avatars.githubusercontent.com/u/102812?v=4","owner_url": "https://github.com/react","stargazers": 251904,"watchers_count": 251904,"subscribers": 6603,"network_count": 51629,"has_issues": true,"has_projects": false,"has_wiki": false,"…": "21 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.