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

# Unipile: Linkedin Get Post Target Audience

> Estimate how many LinkedIn members match a target audience for an organization post (read-only, sent as POST). Includes SDK V2 examples, schemas, and cost.

Estimate how many LinkedIn members match a target audience for an organization post (read-only, sent as POST).

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

## 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(
  'unipile_linkedin_get_post_target_audience',
  {
    "as_organization": "example",
    "account_id": "123456789"
  },
);

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

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute unipile_linkedin_get_post_target_audience --input '{
  "as_organization": "example",
  "account_id": "123456789"
}' --json
```

## Example response

The SDK returns this shape at `result.toolResponse.raw`. The example values illustrate the response.

```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
{
  "data": {
    "object": "LinkedinPostTargetAudience",
    "matching_members": 123
  }
}
```

Use `deepline describe unipile_linkedin_get_post_target_audience --json` for the latest machine-readable contract.

## Input reference

`Linkedin only` A set of filters to adjust the target audience of your posts.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.as_organization` | `string` | Yes | — | The provider ID of the LinkedIn organization publishing the post. |
| `payload.account_id` | `string` | Yes | — | The ID of the account to trigger the request from. |
| `payload.language` | `array` | No | — | The ID of the parameter. Use type LANGUAGE on the List search parameters route to find out the right ID. Linkedin native filter : LANGUAGE. Minimum items: 1. |
| `payload.job_function` | `array` | No | — | The ID of the parameter. Use type POST\_JOB\_FUNCTION on the List search parameters route to find out the right ID. Linkedin native filter : JOB FUNCTION. Minimum items: 1. |
| `payload.school` | `array` | No | — | The ID of the parameter. Use type SCHOOL on the List search parameters route to find out the right ID. Linkedin native filter : UNIVERSITY. Minimum items: 1. |
| `payload.headcount` | `array` | No | — | Linkedin native filter : COMPANY SIZE. |
| `payload.seniority` | `array` | No | — | The ID of the parameter. Use type SENIORITY on the List search parameters route to find out the right ID. Linkedin native filter : SENIORITY. Minimum items: 1. |
| `payload.industry` | `array` | No | — | The ID of the parameter. Use type INDUSTRY on the List search parameters route to find out the right ID. Linkedin native filter : INDUSTRY. Minimum items: 1. |
| `payload.region` | `array` | No | — | The ID of the parameter. Use type REGION on the List search parameters route to find out the right ID. Linkedin native filter : REGION. Minimum items: 1. |
| `payload.location` | `array` | No | — | The ID of the parameter. Use type LOCATION on the List search parameters route to find out the right ID. Linkedin native filter : LOCATION. Minimum items: 1. |

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

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "`Linkedin only` A set of filters to adjust the target audience of your posts.",
    "properties": {
      "as_organization": {
        "type": "string",
        "description": "The provider ID of the LinkedIn organization publishing the post."
      },
      "account_id": {
        "type": "string",
        "description": "The ID of the account to trigger the request from."
      },
      "language": {
        "type": "array",
        "description": "The ID of the parameter. Use type LANGUAGE on the List search parameters route to find out the right ID. Linkedin native filter : LANGUAGE.",
        "minItems": 1,
        "items": {
          "type": "string",
          "pattern": "^[a-z]+_[A-Z]+$"
        }
      },
      "job_function": {
        "type": "array",
        "description": "The ID of the parameter. Use type POST_JOB_FUNCTION on the List search parameters route to find out the right ID. Linkedin native filter : JOB FUNCTION.",
        "minItems": 1,
        "items": {
          "type": "string",
          "pattern": "^\\d+$"
        }
      },
      "school": {
        "type": "array",
        "description": "The ID of the parameter. Use type SCHOOL on the List search parameters route to find out the right ID. Linkedin native filter : UNIVERSITY.",
        "minItems": 1,
        "items": {
          "type": "string",
          "pattern": "^\\d+$"
        }
      },
      "headcount": {
        "type": "array",
        "description": "Linkedin native filter : COMPANY SIZE.",
        "items": {
          "type": "object",
          "properties": {
            "min": {
              "type": "number",
              "enum": [
                2,
                11,
                51,
                201,
                501,
                1001,
                5001,
                10001
              ]
            },
            "max": {
              "type": "number",
              "enum": [
                1,
                10,
                50,
                200,
                500,
                1000,
                5000,
                10000
              ]
            }
          },
          "additionalProperties": false
        }
      },
      "seniority": {
        "type": "array",
        "description": "The ID of the parameter. Use type SENIORITY on the List search parameters route to find out the right ID. Linkedin native filter : SENIORITY.",
        "minItems": 1,
        "items": {
          "type": "string",
          "pattern": "^\\d+$"
        }
      },
      "industry": {
        "type": "array",
        "description": "The ID of the parameter. Use type INDUSTRY on the List search parameters route to find out the right ID. Linkedin native filter : INDUSTRY.",
        "minItems": 1,
        "items": {
          "type": "string",
          "pattern": "^\\d+$"
        }
      },
      "region": {
        "type": "array",
        "description": "The ID of the parameter. Use type REGION on the List search parameters route to find out the right ID. Linkedin native filter : REGION.",
        "minItems": 1,
        "items": {
          "type": "string",
          "pattern": "^\\d+$"
        }
      },
      "location": {
        "type": "array",
        "description": "The ID of the parameter. Use type LOCATION on the List search parameters route to find out the right ID. Linkedin native filter : LOCATION.",
        "minItems": 1,
        "items": {
          "type": "string",
          "pattern": "^\\d+$"
        }
      }
    },
    "required": [
      "as_organization",
      "account_id"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Provider response payload. |
| `result.data.object` | `"LinkedinPostTargetAudience"` | Yes | — | Allowed: `LinkedinPostTargetAudience`. |
| `result.data.matching_members` | `number` | Yes | — | — |
| `result.meta` | `object` | No | — | Additional response metadata (status, paging). |

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

  ### Output JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "type": "object",
        "description": "Provider response payload.",
        "properties": {
          "object": {
            "type": "string",
            "enum": [
              "LinkedinPostTargetAudience"
            ]
          },
          "matching_members": {
            "type": "number"
          }
        },
        "required": [
          "object",
          "matching_members"
        ],
        "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

* [Unipile provider guide](https://deepline.com/docs/providers/unipile/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.