> ## 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.

# Akta: Action Doc

> Resolving a free-text industry topic into ranked industry codes for news filters. Includes inputs, outputs, SDK V2 examples, and Deepline cost.

Resolving a free-text industry topic into ranked industry codes for news filters.

<Info>
  Tool ID: `akta_industry_search`
</Info>

## Run this action

Use the TypeScript SDK for a single call. Put `ctx.tools.execute(...)` inside a Play when the call should be durable, scheduled, or run across a CSV.

```ts theme={null}
import { Deepline } from 'deepline';

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

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

### CLI

```bash theme={null}
deepline tools execute akta_industry_search --input '{
  "query": "software companies hiring engineers"
}' --json
```

## Example response

The SDK exposes this shape at `result.toolResponse.raw`. Values below are representative.

```json theme={null}
{
  "data": {
    "data": [
      {
        "code": "example",
        "industry_name": "Example",
        "similarity": 123
      }
    ],
    "count": 123
  }
}
```

Use `deepline tools get akta_industry_search --json` for the latest machine-readable contract.

## Input reference

Resolves an industry from a free-text query and returns matching industry codes ranked by similarity. This is a free endpoint — it does not consume API credits.

| Name            | Type     | Required | Default | Details                                                                                                                                                                                               |
| --------------- | -------- | -------- | ------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `payload.query` | `string` | Yes      | —       | Free-text industry name or topic to search for. Example: 'warehouse automation'                                                                                                                       |
| `payload.level` | `string` | No       | —       | Restrict results to one or more levels of the industry taxonomy hierarchy. Accepts a single level or a comma-separated list of multiple levels. Available values: l1, l2, l3, l4, all. Default is l4. |

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

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Resolves an industry from a free-text query and returns matching industry codes ranked by similarity. This is a free endpoint — it does not consume API credits.",
    "properties": {
      "query": {
        "type": "string",
        "description": "Free-text industry name or topic to search for. Example: 'warehouse automation'"
      },
      "level": {
        "type": "string",
        "description": "Restrict results to one or more levels of the industry taxonomy hierarchy. Accepts a single level or a comma-separated list of multiple levels. Available values: l1, l2, l3, l4, all. Default is l4."
      }
    },
    "required": [
      "query"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name                               | Type      | Required | Default | Details                                                                                                                                   |
| ---------------------------------- | --------- | -------- | ------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
| `result.data`                      | `object`  | Yes      | —       | Provider response payload.                                                                                                                |
| `result.data.data`                 | `array`   | No       | —       | —                                                                                                                                         |
| `result.data.data[].code`          | `string`  | No       | —       | Unique industry code.                                                                                                                     |
| `result.data.data[].industry_name` | `string`  | No       | —       | Full name of the industry.                                                                                                                |
| `result.data.data[].similarity`    | `number`  | No       | —       | Similarity score between the query and the matched industry, ranging from 0 to 1. Higher values indicate a closer match. Format: `float`. |
| `result.data.count`                | `integer` | No       | —       | Number of industry objects returned in the data array.                                                                                    |
| `result.meta`                      | `object`  | No       | —       | Additional response metadata (status, paging).                                                                                            |

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

  ### Output JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "type": "object",
        "description": "Provider response payload.",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "code": {
                  "type": "string",
                  "description": "Unique industry code."
                },
                "industry_name": {
                  "type": "string",
                  "description": "Full name of the industry."
                },
                "similarity": {
                  "type": "number",
                  "description": "Similarity score between the query and the matched industry, ranging from 0 to 1. Higher values indicate a closer match.",
                  "format": "float"
                }
              },
              "additionalProperties": false
            }
          },
          "count": {
            "type": "integer",
            "description": "Number of industry objects returned in the data array."
          }
        },
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## 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

* [Akta provider guide](/docs/providers/akta/guide)
* [SDK V2 quickstart](/docs/sdk-v2/quickstart)
* [SDK reference](/docs/sdk-v2/sdk-reference)
* [Run tools across a CSV](/docs/sdk-v2/batch-csv)
