# 2s.io GitHub Pull Requests List

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

Lists pull requests for a GitHub repository with metadata including state, author, draft/merged status, and branch info — filterable and paginated.

## Facts

- Endpoint: GET https://2s.io/api/github/pulls
- Price: $0.0025/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/2s-io-github-pull-requests-list-678bb9cb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_euziBlr37dGy44Al678jp

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-pull-requests-list-678bb9cb
```

Example prompt: Show me all open pull requests for the facebook/react repo on GitHub — give me the first 50, including who authored each one, which branch they're targeting, and whether any are drafts.

## When to prefer this

Use this endpoint when an agent needs to enumerate pull requests from a GitHub repository without requiring authentication credentials. Ideal for read-only CI dashboards, PR monitoring, code review tracking, or any workflow that needs to inspect PR metadata without write access. Prefer over direct GitHub API calls when paying per-call via x402 micropayments is acceptable and no API key management is desired.

## Known failure modes

- Missing 'owner' or 'repo' parameter returns a validation error
- Invalid state enum value (not open/closed/all) returns a schema error
- Non-existent repository or owner returns a 404 or empty list
- page or perPage out of allowed range returns a validation error
- Rate limits or upstream GitHub API errors may return 5xx responses

## How this service works

List pull requests for a repository: number, title, state, author, draft flag, merged status + time, head/base branch, and created time. Filter by state (open/closed/all); paginate. Read-only; no caller key needed.

## Output

A paginated list of pull requests for the specified repository, each containing: PR number, title, state (open/closed), author login, draft flag, merged boolean, merge timestamp if applicable, head branch name, base branch name, and creation timestamp.

## 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",
      "repo"
     ],
     "properties": {
      "page": {
       "type": "integer",
       "minimum": 1
      },
      "repo": {
       "type": "string",
       "maxLength": 120,
       "minLength": 1
      },
      "owner": {
       "type": "string",
       "maxLength": 100,
       "minLength": 1
      },
      "state": {
       "enum": [
        "open",
        "closed",
        "all"
       ],
       "type": "string"
      },
      "perPage": {
       "type": "integer",
       "maximum": 100,
       "minimum": 1
      }
     },
     "additionalProperties": false
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/2s-io-github-pull-requests-list-678bb9cb/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)
