[Integrations](https://spiral.ai/integrations) › [Gemini CLI](https://spiral.ai/integrations/gemini-cli) › [LinkedIn Search Posts](https://spiral.ai/integrations/gemini-cli/linkedin-search-posts)

# How to Use LinkedIn Search Posts in Gemini CLI

Find public LinkedIn posts by keyword, with text, publication dates, authors, media, and visible engagement counts when available. Use it to discover posts through Google's index without starting from a known post URL.

|  |  |
| --- | --- |
| Model | LinkedIn Search Posts |
| Available through | ScrapeCreators |
| Category | Social Media |
| Price | Up to $0.0013 per run. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with LinkedIn Search Posts in Gemini CLI

- Use LinkedIn post search to find posts about Microsoft Copilot Studio, then create a CSV in this project with each returned URL, publication date, text, and available like and comment counts.
- Use LinkedIn post search for Salesforce Agentforce customer service and add a research note to this project grouping the returned posts by use case, with source URLs.
- Use LinkedIn post search to find posts mentioning NVIDIA NIM inference and create a local report comparing visible like and comment counts across the returned results.
- Use LinkedIn post search for Shopify checkout, compare returned URLs with the project's existing research CSV, and append only newly discovered posts.
- Use LinkedIn post search to find posts mentioning Adobe Summit and create a Markdown brief in this project separating announcements from session takeaways based on the returned text.

## How to set up LinkedIn Search Posts in Gemini CLI

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

### Use Spiral's MCP server

1. **Add the server**: Or add it to `~/.gemini/settings.json` yourself:

```bash
gemini mcp add --scope user --transport http spiral https://api.spiral.ai/mcp
```

2. **Sign in**: Start `gemini` and run:

```text
/mcp auth spiral
```

3. **Check it**: In Gemini CLI, run `/mcp`. From your shell:

```bash
gemini mcp list
```

### Use the Spiral skill

1. **Send Gemini CLI 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 Search Posts**: 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": "scrapecreators",
    "model": "scrapecreators/linkedin-search-posts",
    "input": {
      "query": "ai agents"
    }
  }'
```

Then paste one of the prompts above: Gemini CLI finds LinkedIn Search Posts on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/gemini-cli

## LinkedIn Search Posts tools and prices

- [LinkedIn · Search Posts](https://spiral.ai/tools/scrapecreators/scrapecreators/linkedin-search-posts) (ScrapeCreators): Up to $0.0013 per run.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| cursor |  | — | The cursor returned from the previous response. The maximum cursor is 11; cursor 12 or greater returns a 400 response. |
| date_posted | last-hour, last-day, last-week, last-month, last-year | — | Date posted filter based on Google-indexed results |

## What can you do with LinkedIn Search Posts in Gemini CLI?

Build a research table of LinkedIn posts mentioning a product, with source URLs, dates, text, and visible engagement counts. A coding agent can add topic labels and deduplicate URLs in your project's research files.

### Product launch research

Find public posts mentioning Microsoft Copilot launches and summarize the features discussed, with publication dates and source URLs.

### Competitor messaging review

Search for Salesforce Agentforce and HubSpot Breeze, then compare the benefits and use cases described in the returned posts.

### Editorial planning

Search public posts about NVIDIA inference and collect recurring questions to inform an article outline.

### Conference recap

Find posts mentioning Adobe Summit and organize the returned announcements and session takeaways by topic.

### Engagement comparison

Compare visible like and comment counts across returned posts mentioning Notion AI, keeping the comparison limited to the search results.

### Brand mention digest

Repeat a search for Canva enterprise announcements and prepare a digest of newly discovered post URLs.

### Customer language research

Find posts discussing Shopify checkout and group the benefits, objections, and implementation questions expressed in their text.

## Overview

- [ScrapeCreators](https://spiral.ai/providers/scrapecreators)
- [All Gemini CLI guides](https://spiral.ai/integrations/gemini-cli)

## LinkedIn Search Posts in other agents

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

## More Gemini CLI guides

- [LinkedIn Person's Profile](https://spiral.ai/integrations/gemini-cli/linkedin-person-s-profile)
- [LinkedIn Web Get company's posts](https://spiral.ai/integrations/gemini-cli/linkedin-web-get-company-s-posts)
- [LinkedIn Company Posts ScrapeCreators](https://spiral.ai/integrations/gemini-cli/linkedin-company-posts-scrapecreators)
- [LinkedIn Web Get post comments](https://spiral.ai/integrations/gemini-cli/linkedin-web-get-post-comments)
- [LinkedIn Company Page](https://spiral.ai/integrations/gemini-cli/linkedin-company-page)
- [LinkedIn ad details](https://spiral.ai/integrations/gemini-cli/linkedin-ad-details)

## Questions about LinkedIn Search Posts in Gemini CLI

**Can Gemini CLI use LinkedIn Search Posts?**

Yes. Add Spiral to Gemini CLI as an MCP server, and Gemini CLI can find and run LinkedIn Search Posts like any built-in tool.

**How much does LinkedIn Search Posts cost in Gemini CLI?**

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

**Do I need a ScrapeCreators account to use LinkedIn Search Posts in Gemini CLI?**

No. Spiral runs LinkedIn Search Posts on its own ScrapeCreators account. You sign in to Spiral once and never paste a key.

**How long does it take to set up LinkedIn Search Posts in Gemini CLI?**

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

**Does Gemini CLI wait while LinkedIn Search Posts runs?**

LinkedIn Search Posts runs in the background. Gemini CLI starts the run, checks on it and gives you the json when it's ready.

**Does this search cover every LinkedIn post?**

Discovery uses Google's index, followed by a fetch of the public LinkedIn page. That coverage boundary means results cannot be treated as a complete record of LinkedIn posts or content visible only after signing in.

**Will a newly published LinkedIn post appear immediately?**

Immediate discovery cannot be assumed because search depends on Google's index. Google says crawling can take a few days to a few weeks; this is general crawling guidance, not a measured delay for LinkedIn.

**How far can I paginate through search results?**

The maximum search cursor is 11. A cursor of 12 or higher returns a 400 response, so pagination cannot provide an unlimited archive.

**Does a result include the entire comment thread?**

No. Comments are a public preview only, and there is no comment pagination.

**What information can a matching post contain?**

A post can include its URL, publication date, text, author, images or other media, visible comments, like count, and comment count. These are possible returned details, rather than a guarantee that every result contains all of them.

