# SiteCheck GitHub Issues & PRs Search

> SiteCheck GitHub Issues & PRs Search is a paid API for AI agents from api.sitecheck-api.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-29).

Search and list issues or pull requests for a GitHub repository, with optional keyword filtering and state/type controls

## Facts

- Endpoint: GET https://api.sitecheck-api.workers.dev/api/github/issues?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sitecheck-github-issues-prs-search-8e61f4cd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-3x7EgzeqeOb-y3CQER7-

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 sitecheck-github-issues-prs-search-8e61f4cd
```

Example prompt: Can you search for open issues in the facebook/react GitHub repo that mention 'hooks', and show me the latest 10?

## When to prefer this

Use this endpoint when you need to search or browse GitHub issues and pull requests programmatically without managing GitHub API authentication yourself. It is ideal for AI agents that need to surface bug reports, feature requests, or PR status for a given repo on demand. Prefer this over direct GitHub API calls when operating in a pay-per-call agent context that already handles auth and payment via x402.

## Known failure modes

- Missing 'repo' parameter returns a validation error
- Invalid or non-existent repository returns an empty result or GitHub API error
- Rate limits from underlying GitHub API may cause failures under heavy use
- Very broad queries with no 'q' filter may return noisy or irrelevant results
- Limit values outside 1-30 range may be rejected or clamped

## How this service works

Issues or pull requests of a GitHub repository, searched by words and state (open, closed or all), newest updated first: number, title, state, labels, author, comments, dates and link. Needs the GITHUB_TOKEN secret; without it the call answers 503 and is not charged.

## Output

A JSON object containing the repository name, a list of matching issues or PRs (each with title, link, state, author, labels, number, created/updated timestamps, and comment count), the query parameters used, total result count, the GitHub API source URL, and a timestamp of when the check was performed.

## 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": [
      "repo"
     ],
     "properties": {
      "q": {
       "type": "string",
       "description": "Words to search for (optional)"
      },
      "repo": {
       "type": "string",
       "description": "owner/name or a github.com URL"
      },
      "type": {
       "type": "string",
       "description": "issue (default) or pr"
      },
      "limit": {
       "type": "string",
       "description": "1 to 30 (default 10)"
      },
      "state": {
       "type": "string",
       "description": "open (default), closed or all"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "repo": "octocat/Hello-World",
  "items": [
   {
    "link": "https://github.com/octocat/Hello-World/issues/1347",
    "state": "closed",
    "title": "Example closed issue",
    "author": "octocat",
    "labels": [
     "bug"
    ],
    "number": 1347,
    "created": "2026-09-02T10:00:00Z",
    "updated": "2026-09-05T08:30:00Z",
    "comments": 2
   }
  ],
  "query": {
   "q": null,
   "type": "issue",
   "state": "closed"
  },
  "total": 3,
  "source": "https://api.github.com/search/issues",
  "checkedAt": "2026-10-14T07:05:00.000Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/sitecheck-github-issues-prs-search-8e61f4cd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.sitecheck-api.workers.dev](https://www.zero.xyz/host/api.sitecheck-api.workers.dev/llms.txt)
