# searchLinkedinPosts

**Identifier:** `crustdata_searchLinkedinPosts`

**Provider:** [Crustdata](https://kirha.com/providers/crustdata.md)

Search LinkedIn posts by exact phrase, author, author's company, date and engagement, with the author and reaction, comment and share counts. Use it to see what professionals and companies say about a topic, product or company on LinkedIn.

## Run it with the CLI

```bash
kirha tools run crustdata_searchLinkedinPosts \
  --input '{}'
```

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

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": {
    "author": {
      "description": "Author name",
      "minLength": 2,
      "type": "string"
    },
    "authorCompany": {
      "description": "Company the author works for",
      "minLength": 2,
      "type": "string"
    },
    "authorType": {
      "enum": [
        "person",
        "company"
      ],
      "type": "string"
    },
    "cursor": {
      "description": "nextCursor of the previous page",
      "minLength": 8,
      "type": "string"
    },
    "from": {
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "type": "string"
    },
    "limit": {
      "default": 5,
      "description": "Each post returned is billed",
      "maximum": 20,
      "minimum": 1,
      "type": "integer"
    },
    "minReactions": {
      "maximum": 9007199254740991,
      "minimum": 1,
      "type": "integer"
    },
    "phrase": {
      "description": "Exact phrase the post must contain, e.g., Mistral Large",
      "minLength": 2,
      "type": "string"
    },
    "sortBy": {
      "default": "date",
      "enum": [
        "date",
        "reactions"
      ],
      "type": "string"
    },
    "to": {
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "type": "string"
    }
  },
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "context": {
      "type": "string"
    },
    "nextCursor": {
      "type": "string"
    },
    "posts": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "author": {
            "type": "string"
          },
          "authorCompany": {
            "type": "string"
          },
          "authorTitle": {
            "type": "string"
          },
          "authorType": {
            "type": "string"
          },
          "authorUrl": {
            "type": "string"
          },
          "comments": {
            "type": "number"
          },
          "postType": {
            "type": "string"
          },
          "postedAt": {
            "type": "string"
          },
          "reactions": {
            "type": "number"
          },
          "shares": {
            "type": "number"
          },
          "text": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "type": "array"
    },
    "total": {
      "type": "number"
    }
  },
  "required": [
    "context",
    "total",
    "posts"
  ],
  "type": "object"
}
```

-----

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