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

# The Swarm: Theswarm Get Post Reactions

> Get reactions for a LinkedIn post URN. Includes SDK V2 guidance, input constraints, response fields, and Deepline credit cost.

Get reactions for a LinkedIn post URN.

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

## 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(
  'theswarm_get_post_reactions',
  {
    "urn": "example"
  },
);

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

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute theswarm_get_post_reactions --input '{
  "urn": "example"
}' --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"]}}
{
  "data": {
    "results": [
      {
        "reaction_type": "example",
        "reactor": {
          "name": "Example",
          "headline": "example",
          "linkedin_num_id": 123
        }
      }
    ]
  }
}
```

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

## Input reference

Fetch reactions on a LinkedIn post

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.urn` | `string` | Yes | — | LinkedIn post URN |
| `payload.page` | `integer` | No | `1` | Page number (1-indexed). Optional. Minimum: 1. |
| `payload.perPage` | `integer` | No | `10` | Number of items per page. Max 100. Optional. Minimum: 1. Maximum: 100. |

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

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Fetch reactions on a LinkedIn post",
    "properties": {
      "urn": {
        "type": "string",
        "description": "LinkedIn post URN"
      },
      "page": {
        "type": "integer",
        "description": "Page number (1-indexed). Optional.",
        "default": 1,
        "minimum": 1
      },
      "perPage": {
        "type": "integer",
        "description": "Number of items per page. Max 100. Optional.",
        "default": 10,
        "minimum": 1,
        "maximum": 100
      }
    },
    "required": [
      "urn"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Provider response payload. |
| `result.data.results` | `array` | Yes | — | — |
| `result.data.results[].reaction_type` | `string` | No | — | — |
| `result.data.results[].reactor` | `object` | No | — | — |
| `result.data.results[].reactor.name` | `string` | No | — | — |
| `result.data.results[].reactor.headline` | `string` | No | — | — |
| `result.data.results[].reactor.linkedin_num_id` | `integer` | No | — | — |
| `result.data.results[].reactor.linkedin_entity_id` | `string` | No | — | — |
| `result.data.results[].reactor.image` | `string` | No | — | — |
| `result.data.results[].reactor.linkedin_id` | `string` | No | — | — |
| `result.data.results[].reactor.linkedin_url` | `string` | No | — | — |
| `result.data.pages` | `integer` | No | — | — |
| `result.data.totalResults` | `integer` | No | — | — |
| `result.meta` | `object` | No | — | Additional response metadata (status, paging). |

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

  ### Output JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "type": "object",
        "description": "Provider response payload.",
        "properties": {
          "results": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "reaction_type": {
                  "type": "string"
                },
                "reactor": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "headline": {
                      "type": "string"
                    },
                    "linkedin_num_id": {
                      "type": "integer"
                    },
                    "linkedin_entity_id": {
                      "type": "string"
                    },
                    "image": {
                      "type": "string"
                    },
                    "linkedin_id": {
                      "type": "string"
                    },
                    "linkedin_url": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false
                }
              },
              "additionalProperties": false
            }
          },
          "pages": {
            "type": "integer"
          },
          "totalResults": {
            "type": "integer"
          }
        },
        "required": [
          "results"
        ],
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Deepline cost

* Pricing model: `fixed` (per call).
* Estimated Deepline credits: `0` per pricing unit.
* Provider-native pricing may still exist outside Deepline credit billing.

## Related documentation

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