# GitHub Repository Issues (`github.repository_issues`)

Issues of a repository (pull requests optional), newest first.

- **Route:** `POST /v1/run/github.repository_issues`
- **Price:** $0.0012 per request ($1.20 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 |
|---|---|---|---|---|
| `owner` | string | yes |  |  |
| `repo` | string | yes |  |  |
| `limit` | integer | no | 30 |  |
| `page` | integer | no | 1 |  |
| `state` | string | no | "open" |  |
| `include_pull_requests` | boolean | no | false |  |

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

| Field | Meaning |
|---|---|
| `issues` | Issues with labels, author, body. |

## Example

```bash
curl -s -X POST https://getallapis.com/v1/run/github.repository_issues \
  -H "Authorization: Bearer $GETALLAPIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"owner":"fastapi","repo":"fastapi","state":"open","limit":10}'
```

```python
from getallapis_client import Client
client = Client()  # reads GETALLAPIS_API_KEY
result = client.run('github.repository_issues', {'owner': 'fastapi', 'repo': 'fastapi', 'state': 'open', 'limit': 10})
print(result['cost_usd'], result['output'])
```

```bash
getallapis run github.repository_issues '{"owner":"fastapi","repo":"fastapi","state":"open","limit":10}'
```

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