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

# Crustdata: Linkedin Posts

> Fetching and filtering LinkedIn post activity. Includes SDK V2 guidance, input constraints, response fields, and Deepline credit cost.

Fetching and filtering LinkedIn post activity.

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

## 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(
  'crustdata_linkedin_posts',
  {
    "keyword": "software companies hiring engineers"
  },
);

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

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute crustdata_linkedin_posts --input '{
  "keyword": "software companies hiring engineers"
}' --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"]}}
{
  "status": "example",
  "result": {
    "data": {
      "posts": [
        {
          "id": "id_123",
          "text": "example",
          "author": "example",
          "share_url": "https://example.com"
        }
      ],
      "totalCount": 123
    }
  }
}
```

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

## Input reference

Searches LinkedIn posts by keyword using /screener/linkedin\_posts/keyword\_search.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.keyword` | `string` | Yes | — | Keyword to search for. Minimum length: 1. |
| `payload.page` | `integer` | No | — | Page number (1-100). Minimum: 1. Maximum: 100. |
| `payload.limit` | `integer` | No | `3` | Number of posts to fetch (1-500, default 3). Minimum: 1. Maximum: 500. |
| `payload.sortBy` | `"relevance" \| "date_posted"` | No | — | Sort order for results. Allowed: `relevance`, `date_posted`. |
| `payload.datePosted` | `"past-24h" \| "past-week" \| "past-month" \| "past-quarter" \| "past-year"` | No | — | Date filter window. Allowed: `past-24h`, `past-week`, `past-month`, `past-quarter`, `past-year`. |
| `payload.exactKeywordMatch` | `boolean` | No | — | Require exact keyword match (no paging). |
| `payload.contentType` | `array` | No | — | Limit results to specific content types. Minimum items: 1. |
| `payload.filters` | `array` | No | — | LinkedIn filter objects. |
| `payload.fields` | `"reactors" \| "comments" \| "reactors,comments" \| "comments,reactors" \| array` | No | — | Include reactors/comments (array or comma-separated). |
| `payload.maxReactors` | `integer` | No | — | Max reactors to return. Minimum: 0. Maximum: 5000. |
| `payload.maxComments` | `integer` | No | — | Max comments to return. Minimum: 0. Maximum: 5000. |

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

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Searches LinkedIn posts by keyword using /screener/linkedin_posts/keyword_search.",
    "properties": {
      "keyword": {
        "type": "string",
        "description": "Keyword to search for.",
        "minLength": 1
      },
      "page": {
        "type": "integer",
        "description": "Page number (1-100).",
        "minimum": 1,
        "maximum": 100
      },
      "limit": {
        "type": "integer",
        "description": "Number of posts to fetch (1-500, default 3).",
        "default": 3,
        "minimum": 1,
        "maximum": 500
      },
      "sortBy": {
        "type": "string",
        "description": "Sort order for results.",
        "enum": [
          "relevance",
          "date_posted"
        ]
      },
      "datePosted": {
        "type": "string",
        "description": "Date filter window.",
        "enum": [
          "past-24h",
          "past-week",
          "past-month",
          "past-quarter",
          "past-year"
        ]
      },
      "exactKeywordMatch": {
        "type": "boolean",
        "description": "Require exact keyword match (no paging)."
      },
      "contentType": {
        "type": "array",
        "description": "Limit results to specific content types.",
        "minItems": 1,
        "items": {
          "type": "string",
          "enum": [
            "photos",
            "videos",
            "documents",
            "jobs",
            "collaborativeArticles",
            "liveVideos"
          ]
        }
      },
      "filters": {
        "type": "array",
        "description": "LinkedIn filter objects.",
        "items": {
          "type": "object",
          "properties": {
            "filter_type": {
              "type": "string",
              "description": "Filter category to apply.",
              "enum": [
                "MEMBER",
                "COMPANY",
                "MENTIONING_MEMBER",
                "MENTIONING_COMPANY",
                "AUTHOR_COMPANY",
                "AUTHOR_INDUSTRY",
                "AUTHOR_TITLE"
              ]
            },
            "type": {
              "type": "string",
              "description": "Filter operator (always \"in\").",
              "const": "in"
            },
            "value": {
              "type": "array",
              "description": "Filter values.",
              "minItems": 1,
              "items": {
                "type": "string",
                "minLength": 1
              }
            }
          },
          "required": [
            "filter_type",
            "type",
            "value"
          ],
          "additionalProperties": false
        }
      },
      "fields": {
        "description": "Include reactors/comments (array or comma-separated).",
        "anyOf": [
          {
            "type": "string",
            "enum": [
              "reactors",
              "comments",
              "reactors,comments",
              "comments,reactors"
            ]
          },
          {
            "type": "array",
            "minItems": 1,
            "items": {
              "type": "string",
              "enum": [
                "reactors",
                "comments"
              ]
            }
          }
        ]
      },
      "maxReactors": {
        "type": "integer",
        "description": "Max reactors to return.",
        "minimum": 0,
        "maximum": 5000
      },
      "maxComments": {
        "type": "integer",
        "description": "Max comments to return.",
        "minimum": 0,
        "maximum": 5000
      }
    },
    "required": [
      "keyword"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.status` | `string` | Yes | — | — |
| `result.result` | `object` | Yes | — | — |
| `result.result.data` | `object` | Yes | — | — |
| `result.result.data.posts` | `array` | Yes | — | — |
| `result.result.data.posts[].id` | `string` | Yes | — | — |
| `result.result.data.posts[].text` | `string` | Yes | — | — |
| `result.result.data.posts[].author` | `string` | Yes | — | — |
| `result.result.data.posts[].share_url` | `string` | Yes | — | — |
| `result.result.data.totalCount` | `integer` | Yes | — | — |

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

  ### Output JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "properties": {
      "status": {
        "type": "string"
      },
      "result": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "posts": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "text": {
                      "type": "string"
                    },
                    "author": {
                      "type": "string"
                    },
                    "share_url": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "text",
                    "author",
                    "share_url"
                  ],
                  "additionalProperties": true
                }
              },
              "totalCount": {
                "type": "integer"
              }
            },
            "required": [
              "posts",
              "totalCount"
            ],
            "additionalProperties": true
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": true
      }
    },
    "required": [
      "status",
      "result"
    ],
    "additionalProperties": true
  }
  ```
</details>

## Deepline cost

* Pricing model: `per_result` (per result).
* Estimated Deepline credits: `0.4` per pricing unit.

## Related documentation

* [Crustdata provider guide](https://deepline.com/docs/providers/crustdata/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.