# AnyAPI GitHub Trending Repositories

> AnyAPI GitHub Trending Repositories is a paid API for AI agents from api.getanyapi.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Fetches the current list of trending repositories on GitHub, including repo names, descriptions, stars, and contributors

## Facts

- Endpoint: POST https://api.getanyapi.com/v1/run/github.trending_repositories
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/anyapi-github-trending-repositories-325827e2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_cTSyiwwNoqfF2k435k5DX

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability anyapi-github-trending-repositories-325827e2 -d '<json body>'
```

Example prompt: What are the trending GitHub repositories this week, especially any written in Python or TypeScript?

## When to prefer this

Use this endpoint when you need to programmatically discover what GitHub projects are currently trending without maintaining a GitHub scraper yourself. Ideal for developer newsletters, open-source discovery tools, or AI agents monitoring the software ecosystem. Prefer this over GitHub's own API (which has no trending endpoint) or manual browsing.

## Known failure modes

- GitHub trending page unavailable or changed structure — returns error or empty list
- Invalid language or time range filter — may return empty results or unfiltered results
- Rate limiting or scraping block — returns 4xx or 5xx error
- Malformed request body — returns validation error

## How this service works

1,200+ scraping and data APIs behind one key. Pay per request in real dollars. No subscriptions, nothing monthly, nothing to cancel.

## Output

A JSON array of currently trending GitHub repositories including repo name, owner, description, primary programming language, number of stars gained during the period, total stars, forks, and a list of top contributors.

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/anyapi-github-trending-repositories-325827e2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.getanyapi.com](https://www.zero.xyz/host/api.getanyapi.com/llms.txt)
