[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [LinkedIn post comments](https://spiral.ai/integrations/opencode/linkedin-post-comments)

# How to Use LinkedIn post comments in opencode

Returns comments on a LinkedIn post, including text, timestamps, and reaction counts. Use it to identify questions and objections beneath an announcement before examining individual reply threads.

|  |  |
| --- | --- |
| Model | LinkedIn post comments |
| Available through | Alexandria |
| Category | Social Media |
| Price | Up to $0.0034918 per run. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with LinkedIn post comments in opencode

- Find Microsoft's latest public product announcement, use LinkedIn post comments for that post, and add a question-summary panel to this project's dashboard.
- Use LinkedIn post comments to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from LinkedIn post comments and tell me what changed since last week.
- Check LinkedIn post comments and summarize what you find in three bullet points.
- Pull the newest data from LinkedIn post comments and give me the result as a table.

## How to set up LinkedIn post comments in opencode

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Add the server**: Leave out `--global` to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.

```bash
opencode mcp add spiral --global --url https://api.spiral.ai/mcp
```

2. **Sign in**: Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, `/mcps` starts the same sign-in.

```bash
opencode mcp auth spiral
```

3. **Check it**: Spiral shows as connected.

```bash
opencode mcp list
```

### Use the Spiral skill

1. **Send opencode this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run LinkedIn post comments**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "harvestapi/linkedin/post-comments",
    "input": {
      "post": "<post>"
    }
  }'
```

Then paste one of the prompts above: opencode finds LinkedIn post comments on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/opencode

## LinkedIn post comments tools and prices

- [HarvestAPI · LinkedIn get comments of linkedin post](https://spiral.ai/tools/alexandria/harvestapi/linkedin/post-comments) (Alexandria): Up to $0.0034918 per run.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| page |  | — | Page number for pagination. Default is 1. |
| sortBy |  | — | Sort comments by field. Supported values: 'relevance', 'date'. |
| paginationToken |  | — | Required only if sortBy is 'relevance' and page > 1. Use this token from the previous page response. |

## What can you do with LinkedIn post comments in opencode?

Build a LinkedIn research view that connects company announcements and public creator contributions to the discussions around them. A coding agent can turn returned posts, comments, or reactions into linked tables and aggregate reports in your project.

### Review a product launch

Combine company announcements, public creator posts, and topic searches into a launch brief. Examine post details, comments, replies, and reaction mixes; use creators' published comments and reacted-to post IDs to find additional discussions.

### Plan an editorial calendar

Research company publishing feeds and public creators' posts, comments, and reacted-to posts for topic ideas. Read the underlying posts and discussions, then compare post and comment reactions to select questions worth answering.

### Prepare a conference debrief

Find event posts through organizer feeds, public speakers' publishing activity, and keyword searches. Follow comments, replies, and reacted-to post IDs to collect discussion points, then summarize reaction types at both post and comment level.

### Build an industry discussion brief

Collect company posts and public creators' published contributions around a defined industry topic. Use reaction records to identify associated posts and calculate response mixes, then read post details and comment threads for the substance behind those responses.

### Find questions for a product FAQ

Collect product discussions from company posts, public creator posts, and keyword searches. Extract recurring questions from comments and replies, including explanations public creators have already published.

### Prioritize public questions for a response

Review comments and reply threads beneath a company's announcements. Compare reactions on individual questions with reactions on the post to choose which issues deserve a public explanation.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All opencode guides](https://spiral.ai/integrations/opencode)

## LinkedIn post comments in other agents

- [Amp](https://spiral.ai/integrations/amp/linkedin-post-comments)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/linkedin-post-comments)
- [Claude](https://spiral.ai/integrations/claude-desktop/linkedin-post-comments)
- [Claude Code](https://spiral.ai/integrations/claude-code/linkedin-post-comments)
- [Cline](https://spiral.ai/integrations/cline/linkedin-post-comments)
- [Codex](https://spiral.ai/integrations/codex/linkedin-post-comments)
- [Cursor](https://spiral.ai/integrations/cursor/linkedin-post-comments)
- [Devin](https://spiral.ai/integrations/devin/linkedin-post-comments)
- [dots](https://spiral.ai/integrations/dots/linkedin-post-comments)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/linkedin-post-comments)
- [Gemini](https://spiral.ai/integrations/gemini/linkedin-post-comments)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/linkedin-post-comments)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/linkedin-post-comments)
- [goose](https://spiral.ai/integrations/goose/linkedin-post-comments)
- [Grok](https://spiral.ai/integrations/grok/linkedin-post-comments)
- [Grok Build](https://spiral.ai/integrations/grok-build/linkedin-post-comments)
- [Hermes](https://spiral.ai/integrations/hermes/linkedin-post-comments)
- [Instinct](https://spiral.ai/integrations/instinct/linkedin-post-comments)
- [Manus](https://spiral.ai/integrations/manus/linkedin-post-comments)
- [Muse](https://spiral.ai/integrations/muse/linkedin-post-comments)
- [Muse Code](https://spiral.ai/integrations/muse-code/linkedin-post-comments)
- [n8n](https://spiral.ai/integrations/n8n/linkedin-post-comments)
- [Notion](https://spiral.ai/integrations/notion/linkedin-post-comments)
- [OpenClaw](https://spiral.ai/integrations/openclaw/linkedin-post-comments)
- [Perplexity](https://spiral.ai/integrations/perplexity/linkedin-post-comments)
- [Raycast](https://spiral.ai/integrations/raycast/linkedin-post-comments)
- [VS Code](https://spiral.ai/integrations/vscode/linkedin-post-comments)
- [Windsurf](https://spiral.ai/integrations/windsurf/linkedin-post-comments)
- [Zapier](https://spiral.ai/integrations/zapier/linkedin-post-comments)

## More opencode guides

- [LinkedIn post and article details](https://spiral.ai/integrations/opencode/linkedin-post-and-article-details)
- [LinkedIn post details](https://spiral.ai/integrations/opencode/linkedin-post-details)
- [LinkedIn job search](https://spiral.ai/integrations/opencode/linkedin-job-search)
- [LinkedIn post reactions](https://spiral.ai/integrations/opencode/linkedin-post-reactions)
- [LinkedIn job details](https://spiral.ai/integrations/opencode/linkedin-job-details)
- [LinkedIn post search](https://spiral.ai/integrations/opencode/linkedin-post-search)

## Questions about LinkedIn post comments in opencode

**Can opencode use LinkedIn post comments?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run LinkedIn post comments like any built-in tool.

**How much does LinkedIn post comments cost in opencode?**

Up to $0.0034918 per run. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your opencode plan is separate.

**Do I need an Alexandria account to use LinkedIn post comments in opencode?**

No. Spiral runs LinkedIn post comments on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up LinkedIn post comments in opencode?**

About two minutes: add the server, then sign in, then check it.

**Does opencode wait while LinkedIn post comments runs?**

LinkedIn post comments runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

**What information does HarvestAPI cover?**

HarvestAPI describes its data as publicly available web information. That scope does not establish coverage of private LinkedIn messages or restricted discussions.

**How fresh is the LinkedIn data?**

HarvestAPI advertises real-time access to the latest source data. Its website does not state a fixed refresh interval in minutes or hours.

**Is the returned data guaranteed to be complete?**

HarvestAPI's terms exclude warranties of absolute data accuracy, reliability, and completeness. A response therefore carries no guarantee that it represents every LinkedIn post or interaction.

**Can returned data be kept indefinitely?**

HarvestAPI's terms limit storage and caching to the period reasonably necessary for the specific legitimate use. They do not grant an unrestricted retention period.

**What does public mean on LinkedIn?**

LinkedIn says posts shared with Anyone can be visible on or off LinkedIn. Posts shared with Connections only are restricted to the author's first-degree connections.

