GitHub trending API: trending repositories and developers as JSON

The official GitHub REST API does not offer a trending endpoint, so these two endpoints read the public Trending pages for you and return JSON. You get ranked repositories with URLs, descriptions, language and star and fork counts, or ranked developers with their popular repository. Filter by programming language and by time range with the since parameter. There is no HTML parsing or scraper to maintain on your side, and each successful call is billed on its own.

Buy credits

Use cases

Endpoints and cost

EndpointWhat it returnsCredits/callUSD/call (Freelance plan)
/v1/github/trending_repositoriesTrending Repositories1$0.0017
/v1/github/trending_developersTrending Developers1$0.0017

Endpoint details

/v1/github/trending_repositories

Trending Repositories 1,000 calls = 1,000 credits = $1.67 on the Freelance plan.

ParameterTypeRequiredDescription
languagestringnoOptional coding language, e.g. javascript, python, or go.
sincestringnoTrending range: daily, weekly, or monthly. Defaults to daily.
spoken_language_codestringnoOptional spoken language code filter, e.g. en.

Sample response (trimmed):

{
 "since": "daily",
 "language": null,
 "spoken_language_code": null,
 "repositories": [
  {
   "rank": 1,
   "owner": "anthropics",
   "repo": "claude-plugins-official",
   "full_name": "anthropics/claude-plugins-official",
   "url": "https://github.com/anthropics/claude-plugins-official",
   "description": "Official, Anthropic-managed directory of high quality Claude Code Plugins.",
   "language": "Python",
   "language_color": "#3572A5",
   "stars_count": 22064,
   "forks_count": 2627,
   "stars_today": 891,
   "stars_today_text": "891 stars today",
   "built_by": [
    {
     "username": "bryan-anthropic",
     "avatar_url": "https://avatars.githubusercontent.com/u/238056179?s=40&v=4"
    }
   ]
  }
 ]
}

/v1/github/trending_developers

Trending Developers 1,000 calls = 1,000 credits = $1.67 on the Freelance plan.

ParameterTypeRequiredDescription
languagestringnoOptional trending coding language, e.g. javascript, python, or go.
sincestringnoTrending range: daily, weekly, or monthly. Defaults to daily.

Example: curl

curl -H "X-Scapi-Key: $SCAPI_KEY" "https://api.scrapall.bipsport.com/scapi/v1/github/trending_repositories"

Example: Python

import os, requests
r = requests.get("https://api.scrapall.bipsport.com/scapi/v1/github/trending_repositories",
    headers={"X-Scapi-Key": os.environ["SCAPI_KEY"]})
print(r.json())

FAQ

Does the official GitHub API have a trending endpoint?

No. GitHub exposes Trending only as a web page. These endpoints read that public page and return the ranked results as structured JSON, so you do not have to parse HTML yourself.

Which fields come back for repositories?

Ranked repositories with public URLs, descriptions, language, star and fork counts and the other fields documented in the endpoint reference.

Can I filter by programming language or time range?

Yes. Both endpoints accept language and since. The repositories endpoint also accepts spoken_language_code to filter by the spoken language of the repository.

What does the developers endpoint return?

Ranked trending developers with username, name, public profile URL, avatar and the popular repository shown on the Trending page. It accepts the same language and since filters as the repositories endpoint.

How often should I call it?

GitHub Trending changes during the day, so many users call it once per day or once per hour per language. Each successful call is billed separately, so you control the cost with your schedule.

How do I pay and get my API key?

Open the Buy page, pick the Freelance plan and pay in USDT on TRC20 or ERC20. The key is shown once, right after the payment is confirmed on-chain.

How many credits does one call use?

The cost table on this page lists credits per call for each endpoint. The Freelance plan is $45 for 27,000 credits per 30 days.

Get an API key and credits

Full reference: all github endpoints.