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

opencode · SEO

How to Use Meta keyword ad search in opencode

Find Meta Ad Library ads mentioning a keyword, with advertiser names, copy, creative links, and landing URLs. Use it to research offers across advertisers or find brand mentions beyond the brand's own Facebook page.

Prompts to try with Meta keyword ad search in opencode

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

Use Meta keyword ad search for running shoes in the United States and build a table in this project's research view with advertiser names, ad text, and destination URLs.

Meta keyword ad searchopencode
Try asking
  • Use Meta keyword ad search for Black Friday in the United Kingdom and write the returned advertiser names, headlines, and landing URLs into a research CSV in this repository.

  • Use Meta keyword ad search to look this up and give me the result as a table. Save the result in ./assets.

  • Pull the latest numbers from Meta keyword ad search and tell me what changed since last week.

  • Check Meta keyword ad search and summarize what you find in three bullet points.

How to set up Meta keyword ad search 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.

    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.

    opencode mcp auth spiral
  3. Check it

    Spiral shows as connected.

    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.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run Meta keyword 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": "alexandria",
        "model": "adyntel/meta-ads/library/search",
        "input": {
          "keyword": "<keyword>"
        }
      }'

Then paste one of the prompts above: opencode finds Meta keyword ad search on Spiral, shows the price and runs it.

Meta keyword ad search providers and prices

Spiral runs Meta keyword ad search through Alexandria. Open a card for today's price, with every fee included.

AlexandriaSEO
Adyntel · Meta ads by keyword
adyntel/meta-ads/library/search

What can you do with Meta keyword ad search in opencode?

Build a searchable reference of Meta ad copy, creative links, and landing destinations inside your project. Use the returned advertiser identities and run dates to support comparisons between brands or repeated searches.

Prepare a competitor messaging brief

Collect ads for a known brand or a product term. Compare the promises, headlines, and calls to action, with landing URLs beside each example.

Map advertised landing pages

Extract destination URLs from the returned ads and group them by product or offer. Use advertiser results for a brand audit and keyword results for a category review.

Build a creative research board

Organize returned image and video links alongside their ad text and advertiser names. Give the design team concrete references for discussing its next campaign.

Follow seasonal promotions

Repeat brand lookups or searches for terms such as Black Friday. Compare the returned offer language and run dates across checks.

Review messaging across markets

Compare the copy and destination URLs returned for the same advertiser or search term in different countries. Identify changes in language, product emphasis, and landing destinations.

Track changes in public ad copy

Compare repeated results to identify newly observed headlines, creative links, and destinations. Keep advertiser names attached so keyword matches from different businesses stay distinguishable.

Questions about Meta keyword ad search in opencode

Can opencode use Meta keyword ad search?

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Meta keyword ad search like any built-in tool.

How much does Meta keyword ad search cost in opencode?

Up to $0.0977704 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 Meta keyword ad search in opencode?

No. Spiral runs Meta keyword ad search on its own Alexandria account. You sign in to Spiral once and never paste a key.

How long does it take to set up Meta keyword ad search in opencode?

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

Does opencode wait while Meta keyword ad search runs?

Meta keyword ad search runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

What advertising data does Meta make available here?

The source covers Facebook and Instagram ads. Records can include ad text, creative URLs, landing URLs, page identity, publisher platforms, and start and end dates.

How soon can a newly launched ad appear?

Meta says ads appear in its library within 24 hours of their first impression. That describes the source library's publication window, rather than a guaranteed delivery time through Adyntel.

How far back does the archive go?

Retention depends on the ad: ads shown in the EU remain for one year after they stop, while political, election, and social-issue ads remain for seven years. Those windows do not establish a universal seven-year history for commercial campaigns.

Does searching a brand name return only that brand's ads?

No. A name search can return ads from any advertiser mentioning those words. An advertiser lookup scopes the research to the selected company or page.

Does one advertiser response contain every available ad?

Adyntel documents approximately 30 ads in the first advertiser page. Further pages remain available until the continuation token is null, so the first page alone can be incomplete.

Get started

Start using Meta keyword ad search in opencode

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

Paste this into opencode:

Set up opencode

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