# GitHub Trending Repositories Lookup

> GitHub Trending Repositories Lookup is a paid API for AI agents from x402helper.xyz, paid per call via x402, $0.006/call, status unknown (last checked 2026-11-07).

Returns a ranked list of trending GitHub repositories filtered by language, topic, creation date, and sort order.

## Facts

- Endpoint: GET https://x402helper.xyz/89e509/dev/trending?utm_source=zero.xyz
- Price: $0.006/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-07
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/github-trending-repositories-lookup-114ee685
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ALJAimN9Us9qnfPRCFguq

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-lookup-114ee685
```

Example prompt: Can you show me the top 10 trending GitHub repos written in Rust, sorted by stars?

## When to prefer this

Choose this endpoint when you need a quick, filtered snapshot of trending GitHub repositories by language, topic, or recency without setting up GitHub API credentials. Useful for agents that need to discover popular open-source projects on demand with micropayment-based access and no OAuth setup.

## Known failure modes

- Invalid language or topic filter returns empty result set
- limit exceeding 20 returns a validation error
- Malformed created_after date format causes a 400 error
- Payment failure (USDC) blocks the request before reaching the GitHub data layer
- x402helper.xyz service downtime returns a 5xx error

## How this service works

X402 micropayments server — AI agents pay USDC for OFAC screening, rates, and billing verification.

## Output

Returns a JSON object with a list of trending GitHub repositories including metadata such as name, description, stars, forks, language, topics, and creation date. Filtered and sorted according to query parameters.

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {},
  "success": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/github-trending-repositories-lookup-114ee685/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402helper.xyz](https://www.zero.xyz/host/x402helper.xyz/llms.txt)
