# GitHub Repository (`github.repository`)

Stars, forks, topics, license and activity dates for one repository.

- **Route:** `POST /v1/run/github.repository`
- **Price:** $0.0012 per request ($1.20 per 1,000) · `cost_usd` on every response
- **Source:** GitHub REST API (`github`) · failover: no
- **Measured latency:** p50 445 ms · p95 445 ms · p99 445 ms (1 calls, 30d)
- **Heavy response:** no

## Input

| Field | Type | Required | Default | Notes |
|---|---|---|---|---|
| `owner` | string | yes |  |  |
| `repo` | string | yes |  |  |

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

| Field | Meaning |
|---|---|
| `stars` | Stargazers. |
| `forks` | Forks. |
| `topics` | Topics. |

## Example

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

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

```bash
getallapis run github.repository '{"owner":"fastapi","repo":"fastapi"}'
```

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