# getLinkedinPostsByProfile

**Identifier:** `linkedin_getLinkedinPostsByProfile`

**Provider:** [LinkedIn](https://kirha.com/providers/linkedin.md)

Discover recent LinkedIn posts a person authored or interacted with (reacted/commented/reshared), optionally within a date range. Use it as a GTM activity signal — gauge what a prospect is posting about or engaging with to time outreach. Each post is flagged isAuthored (they wrote it) vs interacted-with (they engaged with someone else's post). Requires the person's LinkedIn profile URL (use getLinkedinProfileByUrl or a search to find it first).

## Run it with the CLI

```bash
kirha tools run linkedin_getLinkedinPostsByProfile \
  --input '{
    "linkedinProfileUrl": "https://www.linkedin.com/in/:username"
  }'
```

`--input` takes a JSON object that matches the input schema. Pass `--input -` to read it from stdin.

## Call it over HTTP

```bash
curl https://api.kirha.com/tools/v1/execute \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: **********' \
  --data '{
  "tool_name": "linkedin_getLinkedinPostsByProfile",
  "input": {
    "linkedinProfileUrl": "https://www.linkedin.com/in/:username"
  }
}'
```

Replace the stars with an API key from https://app.kirha.com/api-keys.

## Input schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "endDate": {
      "description": "Only posts on/before this date. ISO-8601.",
      "type": "string"
    },
    "limit": {
      "default": 10,
      "maximum": 25,
      "minimum": 1,
      "type": "number"
    },
    "linkedinProfileUrl": {
      "description": "LinkedIn profile URL, e.g. https://www.linkedin.com/in/:username",
      "type": "string"
    },
    "startDate": {
      "description": "Only posts on/after this date. ISO-8601, e.g. 2025-01-01 or 2025-01-01T00:00:00.000Z.",
      "type": "string"
    }
  },
  "required": [
    "linkedinProfileUrl"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "context": {
      "type": "string"
    },
    "count": {
      "type": "number"
    },
    "postUrls": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "posts": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "authorName": {
            "type": "string"
          },
          "authorUrl": {
            "type": "string"
          },
          "comments": {
            "type": "number"
          },
          "datePosted": {
            "type": "string"
          },
          "hashtags": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "isAuthored": {
            "type": "boolean"
          },
          "likes": {
            "type": "number"
          },
          "postType": {
            "type": "string"
          },
          "postUrl": {
            "type": "string"
          },
          "text": {
            "type": "string"
          }
        },
        "required": [
          "isAuthored"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "queriedProfileUrl": {
      "type": "string"
    }
  },
  "required": [
    "context",
    "queriedProfileUrl",
    "count",
    "postUrls",
    "posts"
  ],
  "type": "object"
}
```

## Related tools

Other LinkedIn tools that this tool refers to, or that refer to it.

- [`getLinkedinProfileByUrl`](https://kirha.com/providers/linkedin/getLinkedinProfileByUrl.md)

-----

[All LinkedIn tools](https://kirha.com/providers/linkedin.md) · [< Back to tools list](https://kirha.com/tools.md)