> ## Documentation Index
> Fetch the complete documentation index at: https://deepline.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Hackernews: Search

> Searching Hacker News stories and comments by relevance or recency. Includes SDK V2 guidance, input constraints, response fields, and Deepline credit cost.

Searching Hacker News stories and comments by relevance or recency.

> [!NOTE]
>
> Tool ID: `hackernews_search`

## Run this action

Use the TypeScript SDK for one call. Use `ctx.tools.execute(...)` inside a Play for durable calls, scheduled calls, or CSV processing.

```ts theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'hackernews_search',
  {
    "query": "software companies hiring engineers"
  },
);

console.log(result.toolResponse.raw);
```

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute hackernews_search --input '{
  "query": "software companies hiring engineers"
}' --json
```

## Input reference

Hacker News Algolia search.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.query` | `string` | Yes | — | Minimum length: 1. |
| `payload.tags` | `string` | No | — | — |
| `payload.numericFilters` | `string` | No | — | — |
| `payload.page` | `integer` | No | — | Minimum: 0. |
| `payload.hitsPerPage` | `integer` | No | — | Minimum: 1. Maximum: 100. |
| `payload.sort` | `"relevance" \| "date"` | No | — | Allowed: `relevance`, `date`. |

<details>
  <summary>Show raw input schema</summary>

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Hacker News Algolia search.",
    "properties": {
      "query": {
        "type": "string",
        "minLength": 1
      },
      "tags": {
        "type": "string"
      },
      "numericFilters": {
        "type": "string"
      },
      "page": {
        "type": "integer",
        "minimum": 0
      },
      "hitsPerPage": {
        "type": "integer",
        "minimum": 1,
        "maximum": 100
      },
      "sort": {
        "type": "string",
        "enum": [
          "relevance",
          "date"
        ]
      }
    },
    "required": [
      "query"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

The static output schema is not available. Run `deepline describe hackernews_search --json` for the live contract.

## Deepline cost

* Pricing model: `fixed` (per call).
* Estimated Deepline credits: `0` per pricing unit.
* Provider-native pricing may still exist outside Deepline credit billing.

## Related documentation

* [Hackernews provider guide](https://deepline.com/docs/providers/hackernews/guide.md)
* [SDK V2 quickstart](https://deepline.com/docs/sdk-v2/quickstart.md)
* [SDK reference](https://deepline.com/docs/sdk-v2/sdk-reference.md)
* [Run tools across a CSV](https://deepline.com/docs/sdk-v2/batch-csv.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.