# GitHub Trending Repositories Search

> GitHub Trending Repositories Search is a paid API for AI agents from payai.agentstools.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Returns top GitHub repositories filtered by language and/or topic, ranked by stars, forks, or recency, with metadata including name, description, stars, and URL

## Facts

- Endpoint: GET https://payai.agentstools.dev/dev/trending
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/github-trending-repositories-search-0652565e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_kBBwSuKy7mn4LxCqH_VCt

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-search-0652565e
```

Example prompt: Can you show me the top 10 most-starred Rust repositories on GitHub tagged with 'wasm', created after 2023-01-01?

## When to prefer this

Use this endpoint when you need a quick, ranked snapshot of the most popular or recently active GitHub repositories for a given language or topic, especially when you want structured metadata (stars, forks, URL) without scraping GitHub directly. Prefer this over raw GitHub API calls when cost, simplicity, and pre-filtered results are priorities.

## Known failure modes

- Invalid language or topic filter returns empty results
- Invalid date format for created_after causes a validation error
- Limit exceeds cap of 20 returns an error or is clamped
- GitHub API rate limits or outages result in failed responses
- Unrecognized sort enum value causes a bad request error

## How this service works

Top GitHub repositories by language and/or topic (optionally newer than a date), ranked by stars/forks/recently-updated: name, full_name, stars, language, description, url, pushed_at. From the official GitHub Search API.

## Output

A ranked list of up to 20 GitHub repositories, each including the repo name, full_name, star count, programming language, description, GitHub URL, and last pushed date — sourced from the official GitHub Search API.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "sort": {
       "enum": [
        "stars",
        "forks",
        "updated"
       ],
       "type": "string",
       "description": "Ranking (default stars)"
      },
      "limit": {
       "type": "integer",
       "maximum": 20,
       "minimum": 1,
       "description": "Max repos to return (default 10, cap 20)"
      },
      "topic": {
       "type": "string",
       "description": "GitHub topic filter (e.g. wasm)"
      },
      "language": {
       "type": "string",
       "description": "Programming language filter (e.g. rust)"
      },
      "created_after": {
       "type": "string",
       "description": "Only repos created after this date (YYYY-MM-DD)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/github-trending-repositories-search-0652565e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from payai.agentstools.dev](https://www.zero.xyz/host/payai.agentstools.dev/llms.txt)
