Topic page
A GitHub topic (description, logo, aliases, related topics) and its repositories, most starred first by default, with every repository field. 50 a page, up to 1,000; pass next_page back as page.
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 |
|---|---|---|
topicrequired | string | Topic name, or a github.com/topics/<name> link. Example: machine-learning |
sort | stars | best-match | forks | updated | help-wanted-issues | Sort of the repositories (default stars). |
order | desc | asc | Sort direction. |
language | string | Only repositories in this language. Example: Python |
page | integer | Page number. |
Every endpoint also takes fresh, raw, fields (see lean responses and caching).
Example
curl "https://api.api.sh/github/v1/topic?topic=machine-learning" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/github/v1/topic",
params={"topic": "machine-learning"},
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/topic");
url.searchParams.set("topic", "machine-learning");
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)
{"topic": "machine-learning","info": {"name": "machine-learning","display_name": "Machine learning","short_description": "Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.","description": "<p>Machine learning is the practice of teaching a computer to learn. The concept uses pattern recognition, as well as other forms of predict…","created_by": null,"released": null,"created_at": "2017-01-18T04:41:59Z","updated_at": "2026-11-02T13:56:04Z","featured": false,"curated": true,"logo_url": null,"url": "https://github.com/topics/machine-learning","aliases": [],"related": []},"applied_filters": {"sort": "stars","order": "desc","language": null},"total_repositories": 263746,"page": 1,"next_page": 2,"count": 50,"repositories": [{"id": 45717250,"name": "tensorflow","full_name": "tensorflow/tensorflow","owner": "tensorflow","url": "https://github.com/tensorflow/tensorflow","description": "An Open Source Machine Learning Framework for Everyone","homepage": "https://tensorflow.org","language": "C++","topics": ["deep-learning","deep-neural-networks","… 6 more"],"license": "Apache-2.0","stars": 201285,"forks": 78197,"watchers": 201285,"open_issues": 3489,"size_kb": 1419541,"default_branch": "master","fork": false,"archived": false,"is_template": false,"visibility": "public","created_at": "2015-11-07T01:19:20Z","updated_at": "2026-11-03T11:56:47Z","pushed_at": "2026-11-03T12:07:58Z","node_id": "MDEwOlJlcG9zaXRvcnk0NTcxNzI1MA==","private": false,"mirror_url": null,"disabled": false,"license_name": "Apache License 2.0","license_key": "apache-2.0","owner_id": 15658638,"owner_type": "Organization","owner_avatar": "https://avatars.githubusercontent.com/u/15658638?v=4","owner_url": "https://github.com/tensorflow","stargazers": 201285,"watchers_count": 201285,"subscribers": null,"network_count": null,"has_issues": true,"has_projects": true,"has_wiki": false,"…": "11 more fields"},{"id": 574523116,"name": "prompts.chat","full_name": "f/prompts.chat","owner": "f","url": "https://github.com/f/prompts.chat","description": "f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organizat…","homepage": "https://prompts.chat","language": "MDX","topics": ["ai","artificial-intelligence","… 16 more"],"license": "NOASSERTION","stars": 175677,"forks": 22418,"watchers": 175677,"open_issues": 80,"size_kb": 785574,"default_branch": "main","fork": false,"archived": false,"is_template": false,"visibility": "public","created_at": "2022-12-05T13:54:13Z","updated_at": "2026-11-03T12:05:32Z","pushed_at": "2026-11-03T08:32:35Z","node_id": "R_kgDOIj6G7A","private": false,"mirror_url": null,"disabled": false,"license_name": "Other","license_key": "other","owner_id": 196477,"owner_type": "User","owner_avatar": "https://avatars.githubusercontent.com/u/196477?v=4","owner_url": "https://github.com/f","stargazers": 175677,"watchers_count": 175677,"subscribers": null,"network_count": null,"has_issues": true,"has_projects": true,"has_wiki": true,"…": "11 more fields"},"… 48 more"],"cached": false,"credits_used": 1}