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

# Zernio: Get Linkedin Post Analytics

> Read analytics for one LinkedIn post by URN through a LinkedIn account connected to Zernio. Includes inputs, outputs, SDK V2 examples, and Deepline cost.

Read analytics for one LinkedIn post by URN through a LinkedIn account connected to Zernio.

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

## 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(
  'zernio_get_linkedin_post_analytics',
  {
    "accountId": "123456789",
    "urn": "example"
  },
);

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

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline run zernio_get_linkedin_post_analytics --input '{
  "accountId": "123456789",
  "urn": "example"
}'
```

## 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": {
    "accountId": "123456789",
    "platform": "example",
    "accountType": "personal"
  }
}
```

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

## Input reference

Returns analytics for a specific LinkedIn post by URN. Works for both personal and organization accounts. Saves, sends, profile views, follows and premium custom button clicks are only populated for personal accounts (LinkedIn does not expose these metrics on the organization analytics endpoint).

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.accountId` | `string` | Yes | — | The ID of the LinkedIn account |
| `payload.urn` | `string` | Yes | — | The LinkedIn post URN |

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

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Returns analytics for a specific LinkedIn post by URN. Works for both personal and organization accounts. Saves, sends, profile views, follows and premium custom button clicks are only populated for personal accounts (LinkedIn does not expose these metrics on the organization analytics endpoint).",
    "properties": {
      "accountId": {
        "type": "string",
        "description": "The ID of the LinkedIn account"
      },
      "urn": {
        "type": "string",
        "description": "The LinkedIn post URN"
      }
    },
    "required": [
      "accountId",
      "urn"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Provider response payload. |
| `result.data.accountId` | `string` | No | — | — |
| `result.data.platform` | `string` | No | — | — |
| `result.data.accountType` | `"personal" \| "organization"` | No | — | Allowed: `personal`, `organization`. |
| `result.data.username` | `string` | No | — | — |
| `result.data.postUrn` | `string` | No | — | — |
| `result.data.analytics` | `object` | No | — | — |
| `result.data.analytics.impressions` | `integer` | No | — | Times the post was shown |
| `result.data.analytics.reach` | `integer` | No | — | Unique members who saw the post |
| `result.data.analytics.likes` | `integer` | No | — | Reactions on the post |
| `result.data.analytics.comments` | `integer` | No | — | Comments on the post |
| `result.data.analytics.shares` | `integer` | No | — | Reshares of the post |
| `result.data.analytics.saves` | `integer` | No | — | Times the post was saved (personal accounts only. 0 for organization accounts) |
| `result.data.analytics.sends` | `integer` | No | — | Times the post was sent via LinkedIn messaging (personal accounts only. 0 for organization accounts) |
| `result.data.analytics.clicks` | `integer` | No | — | Organization accounts: all clicks on the post (LinkedIn clickCount). Personal accounts: clicks on links in the post. |
| `result.data.analytics.profileViews` | `integer` | No | — | Profile views that came from the post (personal accounts only. 0 for organization accounts) |
| `result.data.analytics.follows` | `integer` | No | — | Follows gained from the post (personal accounts only. 0 for organization accounts) |
| `result.data.analytics.premiumCtaClicks` | `integer` | No | — | Clicks on the author's LinkedIn Premium custom button from this post (personal accounts only. 0 for organization accounts) |
| `result.data.analytics.views` | `integer` | No | — | Video views (video posts only) |
| `result.data.analytics.engagementRate` | `number` | No | — | Engagement rate, as a percentage rounded to 2 decimals: (likes + comments + shares + clicks + saves + sends) / impressions \* 100. Unlike PostAnalytics.engagementRate on GET /v1/analytics, this one DOES count clicks and has no fallback denominator, so it is 0 whenever impressions is 0. For organization accounts the value is the rate LinkedIn returns, not one computed here. |
| `result.data.lastUpdated` | `string` | No | — | Format: `date-time`. |
| `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": {
          "accountId": {
            "type": "string"
          },
          "platform": {
            "type": "string"
          },
          "accountType": {
            "type": "string",
            "enum": [
              "personal",
              "organization"
            ]
          },
          "username": {
            "type": "string"
          },
          "postUrn": {
            "type": "string"
          },
          "analytics": {
            "type": "object",
            "properties": {
              "impressions": {
                "type": "integer",
                "description": "Times the post was shown"
              },
              "reach": {
                "type": "integer",
                "description": "Unique members who saw the post"
              },
              "likes": {
                "type": "integer",
                "description": "Reactions on the post"
              },
              "comments": {
                "type": "integer",
                "description": "Comments on the post"
              },
              "shares": {
                "type": "integer",
                "description": "Reshares of the post"
              },
              "saves": {
                "type": "integer",
                "description": "Times the post was saved (personal accounts only; 0 for organization accounts)"
              },
              "sends": {
                "type": "integer",
                "description": "Times the post was sent via LinkedIn messaging (personal accounts only; 0 for organization accounts)"
              },
              "clicks": {
                "type": "integer",
                "description": "Organization accounts: all clicks on the post (LinkedIn clickCount). Personal accounts: clicks on links in the post."
              },
              "profileViews": {
                "type": "integer",
                "description": "Profile views that came from the post (personal accounts only; 0 for organization accounts)"
              },
              "follows": {
                "type": "integer",
                "description": "Follows gained from the post (personal accounts only; 0 for organization accounts)"
              },
              "premiumCtaClicks": {
                "type": "integer",
                "description": "Clicks on the author's LinkedIn Premium custom button from this post (personal accounts only; 0 for organization accounts)"
              },
              "views": {
                "type": "integer",
                "description": "Video views (video posts only)"
              },
              "engagementRate": {
                "type": "number",
                "description": "Engagement rate, as a percentage rounded to 2 decimals: (likes + comments + shares + clicks + saves + sends) / impressions * 100. Unlike PostAnalytics.engagementRate on GET /v1/analytics, this one DOES count clicks and has no fallback denominator, so it is 0 whenever impressions is 0. For organization accounts the value is the rate LinkedIn returns, not one computed here."
              }
            },
            "additionalProperties": false
          },
          "lastUpdated": {
            "type": "string",
            "format": "date-time"
          }
        },
        "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

* [Connect integrations](https://deepline.com/docs/integrations.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.