# Hacker News Front Page (`hackernews.front_page`)

Current Hacker News front page, or the newest stories, Ask HN, Show HN and job posts, in one call.

- **Route:** `POST /v1/run/hackernews.front_page`
- **Price:** $0.0015 per request ($1.50 per 1,000) · `cost_usd` on every response
- **Source:** Hacker News API + HN Search (Algolia) (`hackernews`) · failover: no
- **Measured latency:** p50 308 ms · p95 308 ms · p99 308 ms (1 calls, 30d)
- **Heavy response:** no

## Input

| Field | Type | Required | Default | Notes |
|---|---|---|---|---|
| `list` | string | no | "front_page" | Which list |
| `limit` | integer | no | 30 | Stories to return |

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

| Field | Meaning |
|---|---|
| `stories` | id, title, url, author, points, num_comments, created_at, hn_url. |
| `count` | Stories returned. |
| `list` | List that was read. |

## Example

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

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

```bash
getallapis run hackernews.front_page '{"list":"front_page","limit":10}'
```

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