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

# HarvestAPI: Get Post

> Retrieve one LinkedIn post by URL. Includes SDK V2 guidance, input constraints, response fields, and Deepline credit cost.

Retrieve one LinkedIn post by URL.

<Info>
  Tool ID: `harvestapi_get_post`
</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(
  'harvestapi_get_post',
  {
    "url": "https://example.com"
  },
);

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

### CLI

```bash theme={null}
deepline tools execute harvestapi_get_post --input '{
  "url": "https://example.com"
}' --json
```

## Example response

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

```json theme={null}
{
  "data": {
    "element": {
      "id": "id_123"
    },
    "status": 1,
    "error": "example"
  }
}
```

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

## Input reference

Get LinkedIn post details by post URL.

| Name          | Type     | Required | Default | Details                                                |
| ------------- | -------- | -------- | ------- | ------------------------------------------------------ |
| `payload.url` | `string` | No       | —       | URL of the LinkedIn post (required) Minimum length: 1. |

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

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Get LinkedIn post details by post URL.",
    "properties": {
      "url": {
        "type": "string",
        "description": "URL of the LinkedIn post (required)",
        "minLength": 1
      }
    },
    "required": [],
    "allOf": [
      {
        "anyOf": [
          {
            "required": [
              "url"
            ]
          }
        ]
      }
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name                                              | Type      | Required | Default | Details                    |
| ------------------------------------------------- | --------- | -------- | ------- | -------------------------- |
| `result.data`                                     | `object`  | Yes      | —       | Provider response payload. |
| `result.data.element`                             | `object`  | No       | —       | —                          |
| `result.data.element.id`                          | `string`  | Yes      | —       | —                          |
| `result.data.element.content`                     | `string`  | No       | —       | —                          |
| `result.data.element.linkedinUrl`                 | `string`  | No       | —       | —                          |
| `result.data.element.author`                      | `object`  | No       | —       | —                          |
| `result.data.element.author.id`                   | `string`  | No       | —       | —                          |
| `result.data.element.author.urn`                  | `string`  | No       | —       | —                          |
| `result.data.element.author.publicIdentifier`     | `string`  | No       | —       | —                          |
| `result.data.element.author.universalName`        | `string`  | No       | —       | —                          |
| `result.data.element.author.name`                 | `string`  | No       | —       | —                          |
| `result.data.element.author.linkedinUrl`          | `string`  | No       | —       | —                          |
| `result.data.element.author.type`                 | `boolean` | No       | —       | —                          |
| `result.data.element.author.info`                 | `boolean` | No       | —       | —                          |
| `result.data.element.author.website`              | `boolean` | No       | —       | —                          |
| `result.data.element.author.websiteLabel`         | `boolean` | No       | —       | —                          |
| `result.data.element.author.avatar`               | `object`  | No       | —       | —                          |
| `result.data.element.author.avatar.url`           | `string`  | No       | —       | —                          |
| `result.data.element.author.avatar.width`         | `integer` | No       | —       | Format: `int32`.           |
| `result.data.element.author.avatar.height`        | `integer` | No       | —       | Format: `int32`.           |
| `result.data.element.author.avatar.expiresAt`     | `integer` | No       | —       | Format: `int64`.           |
| `result.data.element.postedAt`                    | `object`  | No       | —       | —                          |
| `result.data.element.postedAt.timestamp`          | `integer` | No       | —       | —                          |
| `result.data.element.postedAt.date`               | `string`  | No       | —       | —                          |
| `result.data.element.postedAt.postedAgoShort`     | `string`  | No       | —       | —                          |
| `result.data.element.postedAt.postedAgoText`      | `string`  | No       | —       | —                          |
| `result.data.element.postImages`                  | `array`   | No       | —       | —                          |
| `result.data.element.postImages[].url`            | `string`  | No       | —       | —                          |
| `result.data.element.postImages[].width`          | `integer` | No       | —       | Format: `int32`.           |
| `result.data.element.postImages[].height`         | `integer` | No       | —       | Format: `int32`.           |
| `result.data.element.postImages[].expiresAt`      | `integer` | No       | —       | Format: `int64`.           |
| `result.data.element.postVideo`                   | `object`  | No       | —       | —                          |
| `result.data.element.postVideo.thumbnailUrl`      | `string`  | No       | —       | —                          |
| `result.data.element.postVideo.videoUrl`          | `string`  | No       | —       | —                          |
| `result.data.element.article`                     | `object`  | No       | —       | —                          |
| `result.data.element.article.title`               | `string`  | No       | —       | —                          |
| `result.data.element.article.subtitle`            | `string`  | No       | —       | —                          |
| `result.data.element.article.link`                | `string`  | No       | —       | —                          |
| `result.data.element.article.linkLabel`           | `string`  | No       | —       | —                          |
| `result.data.element.article.description`         | `string`  | No       | —       | —                          |
| `result.data.element.article.image`               | `object`  | No       | —       | —                          |
| `result.data.element.article.image.url`           | `string`  | No       | —       | —                          |
| `result.data.element.article.image.width`         | `integer` | No       | —       | Format: `int32`.           |
| `result.data.element.article.image.height`        | `integer` | No       | —       | Format: `int32`.           |
| `result.data.element.article.image.expiresAt`     | `integer` | No       | —       | Format: `int64`.           |
| `result.data.element.repostId`                    | `string`  | No       | —       | Format: `nullable`.        |
| `result.data.element.repost`                      | `record`  | No       | —       | —                          |
| `result.data.element.repostedBy`                  | `object`  | No       | —       | —                          |
| `result.data.element.repostedBy.publicIdentifier` | `string`  | No       | —       | —                          |
| `result.data.element.repostedBy.name`             | `string`  | No       | —       | —                          |

The table shows the first 50 fields. Expand the raw schema below for every field.

<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": {
          "element": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "content": {
                "type": "string"
              },
              "linkedinUrl": {
                "type": "string"
              },
              "author": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "urn": {
                    "type": "string"
                  },
                  "publicIdentifier": {
                    "type": "string"
                  },
                  "universalName": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "linkedinUrl": {
                    "type": "string"
                  },
                  "type": {
                    "type": "boolean"
                  },
                  "info": {
                    "type": "boolean"
                  },
                  "website": {
                    "type": "boolean"
                  },
                  "websiteLabel": {
                    "type": "boolean"
                  },
                  "avatar": {
                    "type": "object",
                    "properties": {
                      "url": {
                        "type": "string"
                      },
                      "width": {
                        "type": "integer",
                        "format": "int32"
                      },
                      "height": {
                        "type": "integer",
                        "format": "int32"
                      },
                      "expiresAt": {
                        "type": "integer",
                        "format": "int64"
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              },
              "postedAt": {
                "type": "object",
                "properties": {
                  "timestamp": {
                    "type": "integer"
                  },
                  "date": {
                    "type": "string"
                  },
                  "postedAgoShort": {
                    "type": "string"
                  },
                  "postedAgoText": {
                    "type": "string"
                  }
                },
                "additionalProperties": false
              },
              "postImages": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "url": {
                      "type": "string"
                    },
                    "width": {
                      "type": "integer",
                      "format": "int32"
                    },
                    "height": {
                      "type": "integer",
                      "format": "int32"
                    },
                    "expiresAt": {
                      "type": "integer",
                      "format": "int64"
                    }
                  },
                  "additionalProperties": false
                }
              },
              "postVideo": {
                "type": "object",
                "properties": {
                  "thumbnailUrl": {
                    "type": "string"
                  },
                  "videoUrl": {
                    "type": "string"
                  }
                },
                "additionalProperties": false
              },
              "article": {
                "type": "object",
                "properties": {
                  "title": {
                    "type": "string"
                  },
                  "subtitle": {
                    "type": "string"
                  },
                  "link": {
                    "type": "string"
                  },
                  "linkLabel": {
                    "type": "string"
                  },
                  "description": {
                    "type": "string"
                  },
                  "image": {
                    "type": "object",
                    "properties": {
                      "url": {
                        "type": "string"
                      },
                      "width": {
                        "type": "integer",
                        "format": "int32"
                      },
                      "height": {
                        "type": "integer",
                        "format": "int32"
                      },
                      "expiresAt": {
                        "type": "integer",
                        "format": "int64"
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              },
              "repostId": {
                "type": "string",
                "format": "nullable"
              },
              "repost": {
                "type": "object"
              },
              "repostedBy": {
                "type": "object",
                "properties": {
                  "publicIdentifier": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "linkedinUrl": {
                    "type": "string"
                  }
                },
                "additionalProperties": false
              },
              "newsletterUrl": {
                "type": "string"
              },
              "newsletterTitle": {
                "type": "string"
              },
              "socialContent": {
                "type": "object",
                "properties": {
                  "hideCommentsCount": {
                    "type": "boolean"
                  },
                  "hideReactionsCount": {
                    "type": "boolean"
                  },
                  "hideSocialActivityCounts": {
                    "type": "boolean"
                  },
                  "hideShareAction": {
                    "type": "boolean"
                  },
                  "hideSendAction": {
                    "type": "boolean"
                  },
                  "hideRepostsCount": {
                    "type": "boolean"
                  },
                  "hideViewsCount": {
                    "type": "boolean"
                  },
                  "hideReactAction": {
                    "type": "boolean"
                  },
                  "hideCommentAction": {
                    "type": "boolean"
                  },
                  "shareUrl": {
                    "type": "string"
                  },
                  "showContributionExperience": {
                    "type": "boolean"
                  },
                  "showSocialDetail": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false
              },
              "engagement": {
                "type": "object",
                "properties": {
                  "likes": {
                    "type": "integer",
                    "format": "int32"
                  },
                  "comments": {
                    "type": "integer",
                    "format": "int32"
                  },
                  "shares": {
                    "type": "integer",
                    "format": "int32"
                  },
                  "reactions": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string"
                        },
                        "count": {
                          "type": "integer",
                          "format": "int32"
                        }
                      },
                      "additionalProperties": false
                    }
                  }
                },
                "additionalProperties": false
              }
            },
            "required": [
              "id"
            ],
            "additionalProperties": false
          },
          "status": {
            "type": [
              "string",
              "integer"
            ]
          },
          "error": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "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

* [HarvestAPI provider guide](/docs/providers/harvestapi/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)
