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

opencode · SEO

How to Use Serpstat keyword metrics in opencode

Returns search volume, CPC, paid competition, organic difficulty, and SERP features for a keyword list. Use it to compare terms you already have and choose which deserve a page or campaign.

Prompts to try with Serpstat keyword metrics in opencode

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

Use Serpstat keyword metrics for 'standing desk', 'sit stand desk', and 'adjustable desk' in Google US. Compare volume, organic difficulty, and paid competition, then draft a research note in the project's docs directory.

Serpstat keyword metricsopencode
Try asking
  • Use Serpstat keyword metrics for 'Shopify inventory management', 'Shopify stock management', and 'Shopify inventory app' in Google US. Compare the results with our landing-page headings and propose edits for review.

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

  • Pull the latest numbers from Serpstat keyword metrics and tell me what changed since last week.

  • Check Serpstat keyword metrics and summarize what you find in three bullet points.

How to set up Serpstat keyword metrics 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 Serpstat keyword metrics

    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": "serpstat/keywords/info",
        "input": {
          "se": "<se>",
          "keywords": [
            "<keywords>"
          ]
        }
      }'

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

Serpstat keyword metrics providers and prices

Spiral runs Serpstat keyword metrics through Alexandria. Open a card for today's price, with every fee included.

AlexandriaSEO
Serpstat · Keyword metrics
serpstat/keywords/info

Settings you can ask for

Ask opencode for any of these in your prompt.

SettingAllowed valuesDefaultDescription
With intentson or off

Add keyword intents. Serpstat supports it on g_us and g_ua only.

Include missing keyson or off

List keywords Serpstat has no data for under result.not_found.

Every API field of Serpstat · Keyword metrics is on its tool page: open its card above.

What can you do with Serpstat keyword metrics in opencode?

Turn Serpstat keyword research into a content backlog tied to your site's existing pages. A coding agent can compare returned phrases and available metrics with project content, then draft concrete page and heading changes.

Build an editorial topic plan

Expand a topic such as espresso brewing into related searches and specific suggested phrases. Check the shortlisted terms' metrics before assigning article briefs.

Plan ecommerce category pages

Research running shoes, collect related product language and suggested phrases, and compare keyword metrics before proposing category names and buying guides.

Prepare paid search keyword research

Discover related and suggested searches around accounting software. Check candidate terms for search volume, CPC, and paid competition before selecting phrases for campaign review.

Research local service topics

Collect suggested phrases around bike repair and inspect detected place names. Explore related service searches and compare metrics for the terms relevant to the business's service area.

Refresh an existing article

Compare an article's target terms with current keyword metrics. Use related searches and suggestions to propose sections that address additional searches on the same topic.

Review product terminology

Research phrases such as standing desk and sit stand desk. Compare their metrics and collect related and suggested wording to inform navigation labels and product copy.

Questions about Serpstat keyword metrics in opencode

Can opencode use Serpstat keyword metrics?

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

How much does Serpstat keyword metrics cost in opencode?

Up to $0.17459 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 Serpstat keyword metrics in opencode?

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

How long does it take to set up Serpstat keyword metrics in opencode?

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

Does opencode wait while Serpstat keyword metrics runs?

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

Does Serpstat return live search data?

These keyword methods retrieve Serpstat's stored database data. A new request does not trigger a fresh search-engine crawl.

How often does Serpstat refresh keyword data?

Serpstat says high-volume keywords update monthly on average. Low-volume keyword updates can take up to three months, so repeated checks may return unchanged data.

Can pagination retrieve every result in a large report?

Serpstat documents a ceiling of the first 60,000 API report results, regardless of pagination. More pages do not make a report larger than that ceiling exhaustive.

How do related keywords differ from search suggestions?

Related keywords can include terms that do not contain your seed words, and their connection score uses shared URLs in the top 20 results. Search suggestions uses full-text matching and returns suggestion text with detected place names.

Can I display raw Serpstat data in a customer-facing product?

Serpstat says embedding, reselling, or showing raw data in a customer-facing product or dashboard requires a separate data licensing agreement.

Get started

Start using Serpstat keyword metrics 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