# getLinkedinPostByUrl

**Identifier:** `linkedin_getLinkedinPostByUrl`

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

Get LinkedIn post information by URL

## Run it with the CLI

```bash
kirha tools run linkedin_getLinkedinPostByUrl \
  --input '{
    "linkedinPostUrl": "<linkedinPostUrl>"
  }'
```

`--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_getLinkedinPostByUrl",
  "input": {
    "linkedinPostUrl": "<linkedinPostUrl>"
  }
}'
```

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": {
    "linkedinPostUrl": {
      "description": "LinkedIn post URL",
      "type": "string"
    }
  },
  "required": [
    "linkedinPostUrl"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "accountType": {
      "enum": [
        "user",
        "company"
      ],
      "type": "string"
    },
    "context": {
      "type": "string"
    },
    "createdAt": {
      "type": "string"
    },
    "hashtags": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "headline": {
      "type": "string"
    },
    "links": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "profileUrl": {
      "type": "string"
    },
    "stats": {
      "additionalProperties": false,
      "properties": {
        "likesCount": {
          "type": "number"
        },
        "replyCount": {
          "type": "number"
        }
      },
      "type": "object"
    },
    "text": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "topComments": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "comment": {
            "type": "string"
          },
          "createdAt": {
            "type": "string"
          },
          "userName": {
            "type": "string"
          },
          "userTitle": {
            "type": "string"
          },
          "userUrl": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "type": "array"
    },
    "userId": {
      "type": "string"
    },
    "userStats": {
      "additionalProperties": false,
      "properties": {
        "articlesCount": {
          "type": "number"
        },
        "followersCount": {
          "type": "number"
        },
        "postCount": {
          "type": "number"
        }
      },
      "type": "object"
    }
  },
  "required": [
    "context",
    "accountType"
  ],
  "type": "object"
}
```

-----

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