> ## 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: Headcount Trends

> Retrieving LinkedIn-sourced company headcount history and functional breakdowns. Includes inputs, outputs, SDK V2 examples, and Deepline cost.

Retrieving LinkedIn-sourced company headcount history and functional breakdowns.

<Info>
  Tool ID: `akta_headcount_trends`
</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_headcount_trends',
  {
    "company": "Example Corp"
  },
);

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

### CLI

```bash theme={null}
deepline tools execute akta_headcount_trends --input '{
  "company": "Example Corp"
}' --json
```

## Example response

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

```json theme={null}
{
  "data": {
    "data": {
      "uuid": "uuid_123",
      "linkedin_username": "https://www.linkedin.com/in/jane-doe",
      "linkedin_official_name": "https://www.linkedin.com/in/jane-doe"
    }
  }
}
```

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

## Input reference

Fetches a company's LinkedIn-sourced headcount data, including total employee count, historical growth trends, and a functional breakdown of the workforce.

| Name              | Type     | Required | Default | Details                                                                                                     |
| ----------------- | -------- | -------- | ------- | ----------------------------------------------------------------------------------------------------------- |
| `payload.company` | `string` | Yes      | —       | Company website (e.g. 'canva.com') or a company UUID. The UUID can be obtained from the Company Search API. |

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

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Fetches a company's LinkedIn-sourced headcount data, including total employee count, historical growth trends, and a functional breakdown of the workforce.",
    "properties": {
      "company": {
        "type": "string",
        "description": "Company website (e.g. 'canva.com') or a company UUID. The UUID can be obtained from the Company Search API."
      }
    },
    "required": [
      "company"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name                                      | Type      | Required | Default | Details                                        |
| ----------------------------------------- | --------- | -------- | ------- | ---------------------------------------------- |
| `result.data`                             | `object`  | Yes      | —       | Provider response payload.                     |
| `result.data.data`                        | `object`  | No       | —       | —                                              |
| `result.data.data.uuid`                   | `string`  | No       | —       | —                                              |
| `result.data.data.linkedin_username`      | `string`  | No       | —       | —                                              |
| `result.data.data.linkedin_official_name` | `string`  | No       | —       | —                                              |
| `result.data.data.total_employees`        | `integer` | No       | —       | —                                              |
| `result.data.data.date`                   | `string`  | No       | —       | —                                              |
| `result.data.data.growth_periods`         | `array`   | No       | —       | —                                              |
| `result.data.data.headcount_growth`       | `array`   | No       | —       | —                                              |
| `result.data.data.headcount_by_function`  | `array`   | No       | —       | —                                              |
| `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": "object",
            "properties": {
              "uuid": {
                "type": "string"
              },
              "linkedin_username": {
                "type": "string"
              },
              "linkedin_official_name": {
                "type": "string"
              },
              "total_employees": {
                "type": "integer"
              },
              "date": {
                "type": "string"
              },
              "growth_periods": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "headcount_growth": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              },
              "headcount_by_function": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            },
            "additionalProperties": false
          }
        },
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Deepline cost

* Pricing model: `provider_usage` (provider usage).
* Estimated Deepline credits: `0.03` per pricing unit.

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