# GitHub Trending Repositories Scraper (x402)

> GitHub Trending Repositories Scraper (x402) is a paid API for AI agents from x402.186-241-26-229.sslip.io, paid per call via x402, $0.025/call, status unknown (last checked 2026-10-02).

Fetches structured data from GitHub's trending repositories page, with optional filtering by language, topic, time range, and AI/ML focus.

## Facts

- Endpoint: POST https://x402.186-241-26-229.sslip.io/v1/github?utm_source=zero.xyz
- Price: $0.025/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/github-trending-repositories-scraper-x402-24fb993c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_c3n_3AqTUfxoF7u_DEWYc

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 github-trending-repositories-scraper-x402-24fb993c -d '<json body>'
```

Example prompt: What are today's trending GitHub repositories in Python — give me up to 20 results, and only show AI or machine learning projects?

## When to prefer this

Use this endpoint when you need structured, ranked trending repository data from GitHub without building your own scraper. It is ideal for monitoring developer trends, discovering popular open-source projects by language or topic, or feeding AI/ML project pipelines. Prefer this over generic web scrapers when you need clean, typed output (rank, stars, owner, language) directly from GitHub's trending page, and over GitHub's own API when you want trending data specifically (GitHub API does not expose trending natively).

## Known failure modes

- Invalid language slug returns empty results or error
- GitHub rate limiting may reduce metadata quality without a token
- Topic filtering requires repository API access (githubToken recommended)
- Empty trending page (e.g. obscure language) returns count:0 and no charge
- Network or scraping failure returns error; no charge applied

## How this service works

Pay-per-call structured web data. Failed or empty runs are not charged.

## Output

Returns a JSON object with a count field and an items array. Each item includes the repository's rank, name, owner, full name, URL, star count, primary programming language, and description. The product field confirms the data source as 'github'.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "since": {
   "enum": [
    "daily",
    "weekly",
    "monthly"
   ],
   "type": "string",
   "default": "daily",
   "description": "Choose today's, this week's, or this month's trending repositories."
  },
  "aiOnly": {
   "type": "boolean",
   "default": false,
   "description": "Keep repositories whose public topics or descriptions indicate machine learning or related work."
  },
  "language": {
   "type": "string",
   "default": "",
   "description": "Trending programming language slug, such as python or rust. Empty selects all languages. Used when languages is empty."
  },
  "maxRepos": {
   "type": "integer",
   "default": 0,
   "minimum": 0,
   "description": "Maximum output rows across all selected language pages. Zero returns every visible row."
  },
  "languages": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "default": [],
   "description": "Optional list of language slugs to collect several trending pages in one run. Each page keeps its own rank."
  },
  "githubToken": {
   "type": "string",
   "description": "Optional private token for more repository metadata and README requests. The value is never included in output."
  },
  "filterTopics": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "default": [],
   "description": "Keep repositories matching at least one listed public repository topic. An empty list disables this filter. Repository API access is needed for topic filtering."
  },
  "includeReadme": {
   "type": "boolean",
   "default": false,
   "description": "Fetch the repository README markdown when publicly available. Adds one request per repository."
  },
  "spokenLanguageCode": {
   "type": "string",
   "default": "",
   "description": "Optional spoken language code, such as en or zh, for the trending page."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 1,
  "items": [
   {
    "url": null,
    "name": null,
    "rank": null,
    "owner": null,
    "stars": null,
    "fullName": null,
    "language": null,
    "description": null
   }
  ],
  "product": "github"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/github-trending-repositories-scraper-x402-24fb993c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.186-241-26-229.sslip.io](https://www.zero.xyz/host/x402.186-241-26-229.sslip.io/llms.txt)
