---
title: "Estimate a post target audience"
method: POST
path: "/api/v1/linkedin/posts/targeted-audience"
tags: ["LinkedIn Specific"]
---

# Estimate a post target audience

`POST /api/v1/linkedin/posts/targeted-audience`

## Request

- Base URL: `https://api1.unipile.com:13111`
- URL: `https://api1.unipile.com:13111/api/v1/linkedin/posts/targeted-audience`
- Auth: API key in header `X-API-KEY`
- TypeScript: <https://skmtc.dev/unipile/apis/unipile-api-reference/docs/api/v1/linkedin/posts/targeted-audience/post.ts> (a function with typed inputs; its response is checked against the schema)

Returns the estimated number of LinkedIn members matching the target audience for an organization post.

## Query parameters

- `as_organization` string, required
- `account_id` string, required

## Request body

- object: `Linkedin only` A set of filters to adjust the target audience of your posts.
  - `language` string[]: The ID of the parameter. Use type LANGUAGE on the List search parameters route to find out the right ID. Linkedin native filter : LANGUAGE.
  - `job_function` string[]: 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.
  - `school` string[]: The ID of the parameter. Use type SCHOOL on the List search parameters route to find out the right ID. Linkedin native filter : UNIVERSITY.
  - `headcount` object[]: Linkedin native filter : COMPANY SIZE.
    - `min` 2 | 11 | 51 | 201 | 501 | 1001 | 5001 | 10001
    - `max` 1 | 10 | 50 | 200 | 500 | 1000 | 5000 | 10000
  - `seniority` string[]: The ID of the parameter. Use type SENIORITY on the List search parameters route to find out the right ID. Linkedin native filter : SENIORITY.
  - `industry` string[]: The ID of the parameter. Use type INDUSTRY on the List search parameters route to find out the right ID. Linkedin native filter : INDUSTRY.
  - `region` string[]: The ID of the parameter. Use type REGION on the List search parameters route to find out the right ID. Linkedin native filter : REGION.
  - `location` string[]: The ID of the parameter. Use type LOCATION on the List search parameters route to find out the right ID. Linkedin native filter : LOCATION.

## Response `200`

OK. Request succeeded.

- object
  - `object` 'LinkedinPostTargetAudience', required
  - `matching_members` number, required

## Other responses

- `401`: ## Unauthorized ### Disconnected account The account appears to be disconnected from the provider service. undefined
- `403`: ## Forbidden ### Insufficient permissions - Type: "errors/insufficient_permissions" Valid authentication but insufficient permissions to perform the request. ### Password reset required - Type: "errors/password_reset_required" LinkedIn requires you to change your password. Please change it on LinkedIn, then reconnect your account. ### Account restricted - Type: "errors/account_restricted" Access to this account has been restricted. Please sign in to the provider service to learn more about how to unlock your account. ### Account mismatch - Type: "errors/account_mismatch" This action cannot be done with your account. ### Unknown authentication context - Type: "errors/unknown_authentication_context" An additional step seems necessary to complete login. Please connect to provider with your browser to find out more, then retry authentication. ### Session mismatch - Type: "errors/session_mismatch" Token User id does not match client session id. ### Feature not subscribed - Type: "errors/feature_not_subscribed" The requested feature has either not been subscribed or not been authenticated properly. ### Subscription required - Type: "errors/subscription_required" The action you're trying to achieve requires a subscription to provider's services. ### Resource access restricted - Type: "errors/resource_access_restricted" You don't have access to this resource. ### Action required - Type: "errors/action_required" An additional step seems necessary. Complete authentication on the provider's native application and try again.
- `404`: ## Not Found ### Resource not found. The requested resource were not found. Account not found
- `422`: ## Unprocessable Entity ### Invalid account Provided account is not designed for this feature. undefined
- `500`: ## Internal Server Error ### Unexpected error - Type: "errors/unexpected_error" Something went wrong. {{moreDetails}} ### Provider error - Type: "errors/provider_error" The provider is experiencing operational problems. Please try again later. ### Authentication intent error - Type: "errors/authentication_intent_error" The current authentication intent was killed after failure. Please start the process again from the beginning.
- `503`: ## Service Unavailable ### No client session - Type: "errors/no_client_session" No client session is currently running. ### No channel - Type: "errors/no_channel" No channel to client session. ### Handler missing - Type: "errors/no_handler" Handler missing for that request. ### Network down - Type: "errors/network_down" Network is down on server side. Please wait a moment and retry. ### Service unavailable - Type: "errors/service_unavailable" Please try again later.
- `504`: ## Gateway Timeout ### Request timed out - Type: "errors/request_timeout" Request Timeout. Please try again, and if the issue persists, contact support.

## Changes

- **2026-11-03** `e74f29ca2aaa`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/unipile/apis/unipile-api-reference/changes/api/v1/linkedin/posts/targeted-audience/post.md)

---

[API](https://skmtc.dev/unipile/apis/unipile-api-reference.md) - [All operations](https://skmtc.dev/unipile/apis/unipile-api-reference/llms.txt) - [OpenAPI document](https://skmtc.dev/unipile/apis/unipile-api-reference/revisions/e74f29ca2aaa?raw)
