# GitHub User Pull Requests (`github.user_pull_requests`)

Pull requests authored by a user, newest first.

- **Route:** `POST /v1/run/github.user_pull_requests`
- **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 |
|---|---|---|---|---|
| `username` | string | yes |  |  |
| `limit` | integer | no | 30 |  |
| `page` | integer | no | 1 |  |

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

| Field | Meaning |
|---|---|
| `pull_requests` | Pull requests. |

## Example

```bash
curl -s -X POST https://getallapis.com/v1/run/github.user_pull_requests \
  -H "Authorization: Bearer $GETALLAPIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"username":"torvalds","limit":10}'
```

```python
from getallapis_client import Client
client = Client()  # reads GETALLAPIS_API_KEY
result = client.run('github.user_pull_requests', {'username': 'torvalds', 'limit': 10})
print(result['cost_usd'], result['output'])
```

```bash
getallapis run github.user_pull_requests '{"username":"torvalds","limit":10}'
```

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