Spiral gives your agent every tool with one account. Browse the tools →

Claude Code · Social Media

How to Use LinkedIn ad search in Claude Code

Find LinkedIn ads with their copy, format, advertiser, media links, and available targeting and impression details. Use it to compare company messaging, research offers, or collect examples around a topic.

Prompts to try with LinkedIn ad search in Claude Code

Copy an example into Claude Code, or ask in your own words.

Use LinkedIn ad search to collect Salesforce ads for the United States from the last 30 completed days. Follow all result pages and add an internal report to this project with ad IDs, headlines, formats, and source links.

LinkedIn ad searchClaude Code
Try asking
  • Use LinkedIn ad search to find Microsoft ads mentioning AI. Build a table in this project that groups the returned headlines by theme and links each row to its ad.

  • Use LinkedIn ad search to collect HubSpot ads and add a report to this project grouping available destination URLs by domain and path.

  • Use LinkedIn ad search to retrieve Adobe ads and build a project view that filters the results by advertiser and ad format, with links to the original ads.

  • Use LinkedIn ad search to retrieve SAP ads for Germany from the last 30 completed days. Add a table to this project showing available targeting disclosures and estimated impressions.

How to set up LinkedIn ad search in Claude Code

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

Use Spiral's MCP server

  1. Add the hosted server

    This adds Spiral to the current project. Add --scope user to use it in every project.

    claude mcp add --transport http spiral https://api.spiral.ai/mcp
  2. Sign in

    Start claude, type /mcp, choose spiral and Authenticate. Sign in to Spiral in the browser and click Authorize. No API key.

Use the Spiral skill

  1. Send Claude Code 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.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run LinkedIn ad search

    One request; the result comes back by polling or a webhook.

    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-ads-search",
        "input": {
          "company": "microsoft"
        }
      }'

Then paste one of the prompts above: Claude Code finds LinkedIn ad search on Spiral, shows the price and runs it.

LinkedIn ad search providers and prices

Spiral runs LinkedIn ad search through ScrapeCreators. Open a card for today's price, with every fee included.

ScrapeCreatorsSocial Media
LinkedIn Ad Library · Search Ads
scrapecreators/linkedin-ads-search

What can you do with LinkedIn ad search in Claude Code?

Build a searchable competitor-ad report from LinkedIn copy, formats, advertiser identities, and creative links. A coding agent can add pagination, deduplicate ad IDs, and turn the results into tables in your project.

Compare competitor messaging

Collect Salesforce and HubSpot ads, group their headlines by customer problem, and compare the promises each company makes.

Prepare a creative brief

Find Microsoft ads about AI, separate examples by ad format, and summarize the hooks and calls to action for a writing brief.

Review regional messaging

Compare SAP ads returned for Germany and the United States to identify differences in wording, offers, and creative formats.

Watch for newly observed ads

Compare Adobe ad IDs across weekly searches and report newly observed headlines, formats, and offers with links to the ads.

Research EU audience targeting

Review the targeting disclosures available for Salesforce ads targeted in Germany and summarize the professional audiences described.

Build an offer inventory

Search HubSpot ads and organize the copy into webinars, reports, demos, and product announcements, retaining an ad link for each example.

Analyze destination patterns

Collect available destination URLs from Salesforce ads and group them by domain and page path to see where different offers send readers.

Questions about LinkedIn ad search in Claude Code

Can Claude Code use LinkedIn ad search?

Yes. Add Spiral to Claude Code as an MCP server, and Claude Code can find and run LinkedIn ad search like any built-in tool.

How much does LinkedIn ad search cost in Claude Code?

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 Claude Code plan is separate.

Do I need a ScrapeCreators account to use LinkedIn ad search in Claude Code?

No. Spiral runs LinkedIn ad search 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 ad search in Claude Code?

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

Does Claude Code wait while LinkedIn ad search runs?

LinkedIn ad search runs in the background. Claude Code starts the run, checks on it and gives you the json when it's ready.

How far back does LinkedIn's Ad Library go?

Ads remain available for one year after their last impression. An older creative can therefore still appear if it received impressions within that window.

How fresh is the data?

Ads typically appear shortly after their first impression. LinkedIn calculates Ad Library analytics daily after upstream data becomes available.

Do all ads include targeting and impression details?

LinkedIn provides these additional disclosures for ads targeted in the European Union. Impression totals are estimates, and country percentages are rounded to the nearest percent.

Why are some ad details hidden?

For restricted ads, LinkedIn hides the ad preview, advertiser name, and payer name to comply with the law.

Does one search return every matching ad?

Search results support pagination. The documented response includes a continuation token, a last-page indicator, and a total ad count, so the first response can be only part of the results.

Get started

Start using LinkedIn ad search in Claude Code

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into Claude Code:

Set up Claude Code

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options