# GitHub Trending Repositories

> GitHub Trending Repositories is a paid API for AI agents from api.socialfetch.dev, paid per call via x402, $0.014/call, status unknown (last checked 2026-09-14).

Returns a list of trending GitHub repositories filtered by programming language and time window (daily, weekly, or monthly).

## Facts

- Endpoint: GET https://api.socialfetch.dev/v1/github/trending/repositories
- Price: $0.014/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/github-trending-repositories-17601fa7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Qdl_4zvIikGvssRWgN74d

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-17601fa7
```

Example prompt: What are the trending GitHub repositories in Python this week? Show me the weekly ones so I can see what's gaining momentum.

## When to prefer this

Use this endpoint when you need to discover what GitHub repositories are currently gaining popularity within a specific programming language or timeframe. Prefer this over manual GitHub browsing when automating developer trend monitoring, curating newsletters, or surfacing hot projects for a given tech stack.

## Known failure modes

- Invalid language filter returns empty results or error
- Invalid 'since' value outside enum causes validation error
- Rate limiting or upstream GitHub scraping failure returns 5xx
- No trending repos available for obscure language returns empty list

## How this service works

List trending GitHub repositories for a language and time window.

## Output

A list of trending GitHub repositories for the specified language and time window, including repository names, descriptions, star counts, fork counts, and other metadata indicating their trending status.

## 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": {
      "since": {
       "enum": [
        "daily",
        "weekly",
        "monthly"
       ],
       "type": "string",
       "description": "Trending time window. Default: `daily`."
      },
      "language": {
       "type": "string",
       "minLength": 1,
       "description": "Optional coding language filter."
      },
      "spokenLanguageCode": {
       "type": "string",
       "minLength": 1,
       "description": "Optional spoken language code filter."
      }
     }
    }
   },
   "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-17601fa7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.socialfetch.dev](https://www.zero.xyz/host/api.socialfetch.dev/llms.txt)
