# Hacker News Story Comments (`hackernews.story_comments`)

The full comment thread of a Hacker News story, flattened with depth.

- **Route:** `POST /v1/run/hackernews.story_comments`
- **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 |  | Story id |
| `limit` | integer | no | 200 |  |

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

| Field | Meaning |
|---|---|
| `comments` | Comments with author, text, depth and parent id. |

## Example

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

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

```bash
getallapis run hackernews.story_comments '{"id":8863,"limit":50}'
```

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