[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [Serpstat domain organic keywords](https://spiral.ai/integrations/opencode/serpstat-domain-organic-keywords)

# How to Use Serpstat domain organic keywords in opencode

Get ranking keywords with their positions, ranking URLs, search volume, and keyword difficulty. Use it to find specific queries to target or improve, rather than comparing domain totals.

|  |  |
| --- | --- |
| Model | Serpstat domain organic keywords |
| Available through | Alexandria |
| Category | SEO |
| Price | Up to $0.034918 per run. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Serpstat domain organic keywords in opencode

- Use Serpstat domain organic keywords for cloudflare.com in Google US. Find queries ranking in positions 11 through 20 and write their ranking URLs and search volumes to research/cloudflare-opportunities.csv.
- Use Serpstat domain organic keywords for shopify.com in Google US. Find queries containing inventory, group the returned queries by ranking URL, and create research/inventory-content.md.
- Use Serpstat domain organic keywords to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from Serpstat domain organic keywords and tell me what changed since last week.
- Check Serpstat domain organic keywords and summarize what you find in three bullet points.

## How to set up Serpstat domain organic keywords 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 Serpstat domain organic keywords**: 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": "serpstat/domains/keywords",
    "input": {
      "se": "<se>",
      "domain": "<domain>"
    }
  }'
```

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

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

## Serpstat domain organic keywords tools and prices

- [Serpstat · Domain organic keywords](https://spiral.ai/tools/alexandria/serpstat/domains/keywords) (Alexandria): Up to $0.034918 per run.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| url |  | — | Only keywords that rank with this URL. |
| page | 1 to … | — | 1-based page. Serpstat returns at most the first 60,000 rows of a report. |
| size | 1 to 150 | 15 | Rows per page, from 1 to 150. Serpstat allows up to 1000; this connector stops at 150 so a call stays within 100 Firecrawl credits. Omitting it requests 15. |
| sort |  | — | One sort field and direction, for example {"region_queries_count": "desc"}. Serpstat's default is position ascending. |
| filters |  | — | Serpstat filters for this method, combined with AND. Keys include position_from, position_to, region_queries_count_from, cost_from, difficulty_to, keyword_contain, intents_contain, and types_contain. |
| keywords |  | — | Only keywords that contain these words. |

## What can you do with Serpstat domain organic keywords in opencode?

Build an SEO research report that connects public business domains to the queries and pages worth investigating. A coding agent can turn Serpstat results into project files, comparison tables, and content research tasks.

### Prepare a competitor research brief

Identify competing domains, compare their overall search performance, inspect ranking queries, and list the pages worth reviewing.

### Plan a content research backlog

Use competitor overlap and domain totals to choose research targets, then turn their ranking queries and leading pages into specific content assignments.

### Compare regional search opportunities

Research the same business domains in separate regional databases. Compare the competitors, domain totals, queries, and pages returned for each market.

### Build a monthly SEO research report

Save successive results to compare competing domains, overall search performance, ranking queries, and leading pages across monthly research runs.

### Choose pages for a content refresh

Find pages with substantial keyword coverage, then examine their ranking queries and positions to select focused revision targets.

## Overview

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

## Serpstat domain organic keywords in other agents

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

## More opencode guides

- [Serpstat domain SEO overview](https://spiral.ai/integrations/opencode/serpstat-domain-seo-overview)
- [Serpstat keyword metrics](https://spiral.ai/integrations/opencode/serpstat-keyword-metrics)
- [Serpstat backlink profile summary](https://spiral.ai/integrations/opencode/serpstat-backlink-profile-summary)
- [Serpstat organic search competitors](https://spiral.ai/integrations/opencode/serpstat-organic-search-competitors)
- [Serpstat active backlinks](https://spiral.ai/integrations/opencode/serpstat-active-backlinks)
- [Serpstat referring domains](https://spiral.ai/integrations/opencode/serpstat-referring-domains)

## Questions about Serpstat domain organic keywords in opencode

**Can opencode use Serpstat domain organic keywords?**

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

**How much does Serpstat domain organic keywords cost in opencode?**

Up to $0.034918 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 domain organic keywords in opencode?**

No. Spiral runs Serpstat domain organic keywords 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 domain organic keywords in opencode?**

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

**Does opencode wait while Serpstat domain organic keywords runs?**

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

**How much of Google search does Serpstat cover?**

The domain keywords report covers rankings in Google's top 100 for queries in Serpstat's database. Its documented report limit is 60,000 results, so it should not be treated as a complete inventory of every query a site could rank for.

**How fresh is Serpstat's search data?**

Serpstat says its major US and UK Overview databases update roughly every one to two weeks. A full keyword database update cycle takes approximately three months, so the Overview update interval does not mean every keyword was refreshed.

**Are Serpstat traffic figures actual visitor counts?**

They are estimates calculated from keyword rankings and search volumes. Use them to compare organic search performance between domains rather than as a replacement for a site's analytics.

**Can pagination retrieve an unlimited number of results?**

Serpstat documents a ceiling of 60,000 rows per API method. Pagination works within that ceiling; it does not establish that every matching row from a larger report can be retrieved.

**Does Serpstat disclose all its data suppliers?**

Serpstat says it receives data from third-party services covered by nondisclosure agreements. That disclosure does not identify those suppliers.

