# GitHub Search Issues (`github.search_issues`)

Search issues and pull requests across GitHub with GitHub's query syntax.

- **Route:** `POST /v1/run/github.search_issues`
- **Price:** $0.0024 per request ($2.40 per 1,000) · `cost_usd` on every response
- **Source:** GitHub REST API (`github`) · failover: no
- **Measured latency:** not enough calls measured yet
- **Heavy response:** no

## Input

| Field | Type | Required | Default | Notes |
|---|---|---|---|---|
| `query` | string | yes |  | GitHub search syntax, e.g. 'repo:x/y is:open label:bug' |
| `sort` | string | no | "best" |  |
| `limit` | integer | no | 30 |  |
| `page` | integer | no | 1 |  |

## Output (`output` in the run envelope)

| Field | Meaning |
|---|---|
| `results` | Matching issues. |
| `total` | Total matches. |

## Example

```bash
curl -s -X POST https://getallapis.com/v1/run/github.search_issues \
  -H "Authorization: Bearer $GETALLAPIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"repo:fastapi/fastapi is:issue is:open"}'
```

```python
from getallapis_client import Client
client = Client()  # reads GETALLAPIS_API_KEY
result = client.run('github.search_issues', {'query': 'repo:fastapi/fastapi is:issue is:open'})
print(result['cost_usd'], result['output'])
```

```bash
getallapis run github.search_issues '{"query":"repo:fastapi/fastapi is:issue is:open"}'
```

Quote first (free, validates input): `POST /v1/quote/github.search_issues` with the same body.
