# GitHub Trending Repositories Feed

> GitHub Trending Repositories Feed is a paid API for AI agents from x402-agent-store.rileycraig14.workers.dev, paid per call via x402, $0.09/call, status unknown (last checked 2026-09-13).

Returns the top trending GitHub repositories filtered by time period and programming language, paid per call in USDC via x402.

## Facts

- Endpoint: GET https://x402-agent-store.rileycraig14.workers.dev/github/trending
- Price: $0.09/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/github-trending-repositories-feed-aedbcc01
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DOfaR28bFlCoMM5vItaNO

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-feed-aedbcc01
```

Example prompt: What are the top 15 trending TypeScript repos on GitHub this week?

## When to prefer this

Use this endpoint when an AI agent needs to discover what repositories are currently trending on GitHub without requiring a GitHub API key or signup. Ideal for developer-facing agents, coding assistants, or open source discovery workflows. Prefer over GitHub's native API when you want frictionless micropayment-based access with no authentication setup.

## Known failure modes

- Payment failure if USDC balance is insufficient or x402 handshake fails
- Invalid language string returns empty or unfiltered results
- Invalid 'since' value (not day/week/month) may default or error
- top parameter outside 1-30 range may be clamped or rejected
- GitHub scraping source may be temporarily stale or unavailable

## How this service works

Top trending GitHub repositories by stars over the last day/week/month, optionally filtered by language. For research, developer-intel, and market-scanning agents. Live from the GitHub Search API.

## Output

A JSON object with a count field and a repos array, where each repo entry includes the repository name (owner/repo format), full GitHub URL, star count, and programming language. Returns up to 30 results depending on the requested top parameter.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "top": {
       "type": "number",
       "description": "1-30, default 10"
      },
      "since": {
       "type": "string",
       "description": "day|week|month, default week"
      },
      "language": {
       "type": "string",
       "description": "Filter by language, e.g. typescript"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "count": {
       "type": "number"
      },
      "repos": {
       "type": "array"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 10,
  "repos": [
   {
    "url": "https://github.com/owner/repo",
    "name": "owner/repo",
    "stars": 1234,
    "language": "TypeScript"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/github-trending-repositories-feed-aedbcc01/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-agent-store.rileycraig14.workers.dev](https://www.zero.xyz/host/x402-agent-store.rileycraig14.workers.dev/llms.txt)
