# ghtrend

> ghtrend is a paid API for AI agents from x402-ghtrend.shablony-pro.workers.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-15).

Returns a JSON list of currently trending GitHub repositories

## Facts

- Endpoint: GET https://x402-ghtrend.shablony-pro.workers.dev/trend
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ghtrend-21d07b6a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_EViOSh9--0KYcZ0e25IpY

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 ghtrend-21d07b6a
```

Example prompt: What GitHub repositories are trending right now? Give me the current list as JSON.

## When to prefer this

Choose this endpoint when you need a quick, pay-per-call JSON feed of GitHub trending repositories without setting up web scraping infrastructure. Ideal for agents that periodically monitor GitHub trends, build developer newsletters, or surface popular open source projects on demand. At $0.003 USDC per call it is cost-effective for infrequent polling.

## Known failure modes

- Payment not fulfilled — x402 payment of 0.003 USDC on Base required before data is returned
- GitHub trending page unavailable or changed structure — may return empty or malformed data
- Rate limiting or worker timeout — Cloudflare Worker may fail under load
- Invalid schema parameter — unexpected query string may cause parsing errors

## How this service works

GitHub trending repos as JSON. x402 pay-per-call, 0.003 USDC on Base.

## Output

A JSON array of currently trending GitHub repositories, likely including repository name, description, stars, programming language, and author/owner information scraped from GitHub's trending page.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "schema": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {}
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ghtrend-21d07b6a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-ghtrend.shablony-pro.workers.dev](https://www.zero.xyz/host/x402-ghtrend.shablony-pro.workers.dev/llms.txt)
