# 2s.io GitHub Repository Lister

> 2s.io GitHub Repository Lister is a paid API for AI agents from 2s.io, paid per call via x402, $0.0025/call, status unknown (last checked 2026-09-14).

Lists repositories for a GitHub user or organization with metadata including stars, forks, language, topics, license, and timestamps, with sorting and pagination support.

## Facts

- Endpoint: GET https://2s.io/api/github/repos
- Price: $0.0025/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/2s-io-github-repository-lister-6091cf51
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_w0T_xeWlxunXJb04vH21C

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 2s-io-github-repository-lister-6091cf51
```

Example prompt: Can you list the repositories for the GitHub organization 'torvalds', sorted by most recently updated, showing 30 per page?

## When to prefer this

Use this endpoint when you need to enumerate a GitHub user's or organization's repositories without needing a GitHub API key. Prefer it over direct GitHub API calls when operating in a pay-per-call agent context with x402 micropayments and no OAuth setup. Ideal for read-only repo discovery, profiling developers or organizations, or gathering open source metadata at low cost.

## Known failure modes

- Unknown or misspelled GitHub owner returns empty list or 404-equivalent
- Invalid sort value causes schema validation failure
- Page number out of range returns empty results
- perPage exceeding 100 rejected by schema validation
- Rate limiting from upstream GitHub API may cause transient failures

## How this service works

List a user or organization's repositories (each with stars, forks, language, topics, license, timestamps). Sort by updated/created/pushed/full_name; filter type owner/member; paginate. Read-only; no caller key needed.

## Output

A paginated list of repositories belonging to the specified GitHub user or organization, each entry containing repository name, description, star count, fork count, primary programming language, topics, license info, and created/updated/pushed timestamps.

## 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",
    "queryParams"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "const": "GET"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "owner"
     ],
     "properties": {
      "page": {
       "type": "integer",
       "minimum": 1
      },
      "sort": {
       "enum": [
        "updated",
        "created",
        "pushed",
        "full_name"
       ],
       "type": "string"
      },
      "type": {
       "enum": [
        "owner",
        "member",
        "all"
       ],
       "type": "string"
      },
      "owner": {
       "type": "string",
       "maxLength": 100,
       "minLength": 1
      },
      "perPage": {
       "type": "integer",
       "maximum": 100,
       "minimum": 1
      }
     },
     "additionalProperties": false
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/2s-io-github-repository-lister-6091cf51/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 2s.io](https://www.zero.xyz/host/2s.io/llms.txt)
