> ## 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: Get Post

> Get one LinkedIn (or Instagram) post by post_id. Includes SDK V2 guidance, input constraints, response fields, and Deepline credit cost.

Get one LinkedIn (or Instagram) post by post\_id.

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

## 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_get_post',
  {
    "post_id": "post_123",
    "account_id": "123456789"
  },
);

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

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute unipile_get_post --input '{
  "post_id": "post_123",
  "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": {
    "provider": "INSTAGRAM",
    "provider_id": "provider_123",
    "has_audio": true,
    "has_liked": true,
    "like_count": 123,
    "comment_count": 123,
    "like_and_view_counts_disabled": true,
    "comments_disabled": false,
    "accessibility_caption": "example",
    "preview_image": {
      "url": "https://example.com",
      "width": 123,
      "height": 123
    },
    "owner": {
      "id": "id_123",
      "username": "user@example.com",
      "profile_pic_url": "https://example.com",
      "is_verified": true,
      "is_private": true
    },
    "location": {
      "name": "Example",
      "lat": 123,
      "lng": 123
    },
    "object": "Post"
  }
}
```

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

## Input reference

Retrieve the details of a post.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.post_id` | `string` | Yes | — | The id of the post. `Linkedin`: if the URL contains **activity**, use the numeric id (example: ...-activity-7332661864792854528-... => `7332661864792854528`). If the URL contains **ugcPost**, use `urn:li:ugcPost:ID`. If the URL contains **share**, use `urn:li:share:ID`. `Instagram`: You can use the **provider\_id** or the **shortcode** found in the post URL. (***[www.instagram.com/reel/SHORTCODE](http://www.instagram.com/reel/SHORTCODE)***) |
| `payload.account_id` | `string` | Yes | — | The id of the account to perform the request from. |

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

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Retrieve the details of a post.",
    "properties": {
      "post_id": {
        "type": "string",
        "description": "The id of the post. `Linkedin`: if the URL contains **activity**, use the numeric id (example: ...-activity-7332661864792854528-... => `7332661864792854528`). If the URL contains **ugcPost**, use `urn:li:ugcPost:ID`. If the URL contains **share**, use `urn:li:share:ID`. `Instagram`: You can use the **provider_id** or the **shortcode** found in the post URL. (***www.instagram.com/reel/SHORTCODE***)"
      },
      "account_id": {
        "type": "string",
        "description": "The id of the account to perform the request from."
      }
    },
    "required": [
      "post_id",
      "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.provider` | `"LINKEDIN"` | Yes | — | — |
| `result.data.id` | `string` | Yes | — | A unique identifier. |
| `result.data.social_id` | `string` | Yes | — | A unique identifier to be used to add a comment or a reaction to the post. |
| `result.data.share_url` | `string` | Yes | — | — |
| `result.data.title` | `string` | No | — | — |
| `result.data.text` | `string` | Yes | — | — |
| `result.data.date` | `string` | Yes | — | — |
| `result.data.parsed_datetime` | `string` | Yes | — | — |
| `result.data.reaction_counter` | `number` | Yes | — | — |
| `result.data.comment_counter` | `number` | Yes | — | — |
| `result.data.repost_counter` | `number` | Yes | — | — |
| `result.data.impressions_counter` | `number` | Yes | — | — |
| `result.data.user_reacted` | `"LIKE" \| "PRAISE" \| "APPRECIATION" \| "EMPATHY" \| "INTEREST" \| "ENTERTAINMENT"` | No | — | — |
| `result.data.author` | `object` | Yes | — | — |
| `result.data.author.public_identifier` | `string \| null` | Yes | — | — |
| `result.data.author.id` | `string \| null` | Yes | — | — |
| `result.data.author.name` | `string \| null` | Yes | — | — |
| `result.data.author.is_company` | `boolean` | Yes | — | — |
| `result.data.author.headline` | `string` | No | — | — |
| `result.data.author.profile_picture_url` | `string` | No | — | — |
| `result.data.written_by` | `object` | No | — | — |
| `result.data.written_by.id` | `string` | Yes | — | — |
| `result.data.written_by.public_identifier` | `string` | Yes | — | — |
| `result.data.written_by.name` | `string` | Yes | — | — |
| `result.data.permissions` | `object` | Yes | — | — |
| `result.data.permissions.can_react` | `boolean` | Yes | — | — |
| `result.data.permissions.can_share` | `boolean` | Yes | — | — |
| `result.data.permissions.can_post_comments` | `boolean` | Yes | — | — |
| `result.data.is_repost` | `boolean` | Yes | — | — |
| `result.data.repost_id` | `string` | No | — | The republication ID. |
| `result.data.repost_parsed_datetime` | `string` | No | — | — |
| `result.data.reposted_by` | `object` | No | — | — |
| `result.data.reposted_by.public_identifier` | `string \| null` | Yes | — | — |
| `result.data.reposted_by.id` | `string \| null` | Yes | — | — |
| `result.data.reposted_by.name` | `string \| null` | Yes | — | — |
| `result.data.reposted_by.is_company` | `boolean` | Yes | — | — |
| `result.data.reposted_by.headline` | `string` | No | — | — |
| `result.data.reposted_by.profile_picture_url` | `string` | No | — | — |
| `result.data.repost_content` | `object` | No | — | The post shared in the current publication. |
| `result.data.repost_content.id` | `string` | Yes | — | A unique identifier. |
| `result.data.repost_content.date` | `string` | Yes | — | — |
| `result.data.repost_content.parsed_datetime` | `string` | Yes | — | — |
| `result.data.repost_content.attachments` | `array` | Yes | — | — |
| `result.data.repost_content.attachments[].id` | `string` | Yes | — | — |
| `result.data.repost_content.attachments[].file_size` | `number` | No | — | — |
| `result.data.repost_content.attachments[].unavailable` | `boolean` | Yes | — | — |
| `result.data.repost_content.attachments[].mimetype` | `string` | No | — | — |
| `result.data.repost_content.attachments[].url` | `string` | No | — | — |
| `result.data.repost_content.attachments[].url_expires_at` | `number` | No | — | — |

The table shows the first 50 fields. Use the live contract below for every field.

> [!NOTE]
>
> This output schema is too large for an inline display. Read the complete live contract with `deepline describe unipile_get_post --json`.

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