# GitHub Repository Languages (`github.repository_languages`)

Programming languages of a public repository with bytes of code and percentage each.

- **Route:** `POST /v1/run/github.repository_languages`
- **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 562 ms · p95 562 ms · p99 562 ms (1 calls, 30d)
- **Heavy response:** no

## Input

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

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

| Field | Meaning |
|---|---|
| `languages` | name, bytes, percent. |
| `primary` | Largest language. |
| `total_bytes` | Total bytes counted. |

## Example

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

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

```bash
getallapis run github.repository_languages '{"owner":"microsoft","repo":"vscode"}'
```

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