# OSS Radar API: free JSON for trending GitHub repos

GitHub has no official trending API. OSS Radar publishes its hourly leaderboard of fast-rising open-source AI and developer-tool repos (450 tracked) as free JSON: no key, no sign-up, open CORS. HTML version: https://ossradar.net/developers

Data as of 2026-11-26T09:38:04.066Z (UTC).

## Endpoints

- `GET https://ossradar.net/api/v1/trending`: the top 100 tracked repos ranked by stars gained in the last 24 hours, with 7-day gains, stars, forks, language, category and topics.
- `GET https://ossradar.net/api/v1/repo/{owner}/{name}`: one tracked repo, e.g. https://ossradar.net/api/v1/repo/Belobug/VIctory-Belobug-AMD: stars, 24h and 7-day gains, rank today and this week, daily star history, top Hacker News story, alternatives and badge URL. 404 if not tracked.
- OpenAPI 3.1 spec: https://ossradar.net/api/v1/openapi.json (load it as an agent tool or custom GPT action). API catalog (RFC 9727): https://ossradar.net/.well-known/api-catalog

## Quick start

```bash
curl -s https://ossradar.net/api/v1/trending | jq '.repos[:10][] | {rank, fullName, starsGained24h}'
```

```python
import requests

data = requests.get("https://ossradar.net/api/v1/trending", timeout=10).json()
for r in data["repos"][:10]:
    print(r["rank"], r["fullName"], f'+{r["starsGained24h"]} stars in 24h')
```

```javascript
const res = await fetch("https://ossradar.net/api/v1/trending");
const { generatedAt, repos } = await res.json();
console.log(generatedAt, repos.slice(0, 10).map((r) => `${r.fullName} +${r.starsGained24h}`));
```

## /api/v1/trending fields

| Field | Type | Meaning |
|---|---|---|
| `generatedAt` | string (ISO 8601, UTC) | When the data was collected from GitHub. Cite it with any number. |
| `count` | integer | Number of repos in repos (up to 100). |
| `repos[].rank` | integer | 1 = most stars gained in the last 24 hours. |
| `repos[].fullName` | string | owner/name as on GitHub. |
| `repos[].url` | string | GitHub URL. |
| `repos[].ossradarUrl / markdownUrl` | string | The repo's OSS Radar page and its Markdown twin. |
| `repos[].description` | string | null | GitHub description. |
| `repos[].language / category / topics` | string | null, string, string[] | Main language, OSS Radar category and GitHub topics. |
| `repos[].stars / forks` | integer | Current totals. |
| `repos[].starsGained24h / starsGained7d` | integer | Stars gained in the last 24 hours and 7 days. |
| `repos[].estimated` | boolean | true when gains are estimated (brand-new repos without enough snapshots yet). |
| `repos[].createdAt / pushedAt` | string (ISO 8601) | Repo creation and last push time. |

## /api/v1/repo/{owner}/{name} fields

Same identity, stars, gains and dates as above, plus:

| Field | Type | Meaning |
|---|---|---|
| `repo.summary` | string | null | Plain-English one-liner of what the project is. |
| `repo.stars / forks / starsGained24h / starsGained7d` | integer | Current totals and gains. |
| `repo.rankToday / rankThisWeek` | integer | Rank by 24h and 7-day star gain among trackedRepos. |
| `repo.starHistory` | array | Daily star counts (date, stars) since tracking began. |
| `repo.hackerNews` | object | null | Story count and top Hacker News story (title, points, comments, url). |
| `repo.alternatives / alternativesUrl` | string[], string | null | Similar tracked repos and their alternatives page. |
| `repo.license / homepage / language / category / topics` | string | null | Repo metadata. |
| `repo.badgeUrl` | string | Live README badge SVG for the repo. |

## Example response (trimmed, current data)

```json
{
  "source": "https://ossradar.net",
  "generatedAt": "2026-11-26T09:38:04.066Z",
  "rankedBy": "stars gained in the last 24 hours",
  "count": 100,
  "repos": [
    {
      "rank": 1,
      "fullName": "Belobug/VIctory-Belobug-AMD",
      "url": "https://github.com/Belobug/VIctory-Belobug-AMD",
      "ossradarUrl": "https://ossradar.net/repo/Belobug/VIctory-Belobug-AMD",
      "language": "Rust",
      "category": "Other",
      "stars": 1708,
      "starsGained24h": 1708,
      "starsGained7d": 1708,
      "estimated": false
    }
  ]
}
```

## Terms and limits

- Free, no API key, no sign-up. Please link back to https://ossradar.net where you show the data.
- Data refreshes about once an hour (responses are cached for up to 10 minutes); polling more often than every 10 minutes gains nothing.
- CORS is open (Access-Control-Allow-Origin: *), so browser apps can call it directly.
- Only tracked repos are covered: a curated set of fast-rising open-source AI and developer-tool repos, not all of GitHub. /api/v1/repo/{owner}/{name} answers 404 for repos OSS Radar doesn't track.
- Rankings come from GitHub star counts only; sponsorships never change them.

## No-code alternatives

- RSS: https://ossradar.net/rss.xml (hourly top repos), https://ossradar.net/daily/rss.xml (one entry per day)
- Markdown for LLMs: https://ossradar.net/llms.txt, https://ossradar.net/llms-full.txt, any page with .md appended (e.g. https://ossradar.net/repo/Belobug/VIctory-Belobug-AMD.md)
- README badge for maintainers: https://ossradar.net/badge.md

Questions or a field you need: hello@ossradar.net
