# Hacker News Story (`hackernews.story`)

One Hacker News item (story, comment, job or poll) by id.

- **Route:** `POST /v1/run/hackernews.story`
- **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:** not enough calls measured yet
- **Heavy response:** no

## Input

| Field | Type | Required | Default | Notes |
|---|---|---|---|---|
| `id` | integer | yes |  | Hacker News item id |

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

| Field | Meaning |
|---|---|
| `title` | Title. |
| `points` | Score. |
| `num_comments` | Comment count. |
| `url` | Linked URL. |

## Example

```bash
curl -s -X POST https://getallapis.com/v1/run/hackernews.story \
  -H "Authorization: Bearer $GETALLAPIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"id":8863}'
```

```python
from getallapis_client import Client
client = Client()  # reads GETALLAPIS_API_KEY
result = client.run('hackernews.story', {'id': 8863})
print(result['cost_usd'], result['output'])
```

```bash
getallapis run hackernews.story '{"id":8863}'
```

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