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

Gemini CLI · SEO

How to Use DataForSEO referring domains in Gemini CLI

Returns linking domains with backlink counts, rank, first discovery dates, and spam metrics. Use it to compare sources of links without letting thousands of links from one website dominate the review.

Prompts to try with DataForSEO referring domains in Gemini CLI

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

Use DataForSEO referring domains for shopify.com and add a table of the 50 highest-ranked linking domains and their backlink counts to our SEO report.

DataForSEO referring domainsGemini CLI
Try asking
  • Use DataForSEO referring domains for vercel.com and generate a report showing which returned websites contribute the most backlinks.

  • Use DataForSEO referring domains to look this up and give me the result as a table. Save the result in ./assets.

  • Pull the latest numbers from DataForSEO referring domains and tell me what changed since last week.

  • Check DataForSEO referring domains and summarize what you find in three bullet points.

How to set up DataForSEO referring domains 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:

    gemini mcp add --scope user --transport http spiral https://api.spiral.ai/mcp
  2. Sign in

    Start gemini and run:

    /mcp auth spiral
  3. Check it

    In Gemini CLI, run /mcp. From your shell:

    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.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run DataForSEO referring domains

    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": "dataforseo/backlinks/referring-domains",
        "input": {
          "target": "<target>"
        }
      }'

Then paste one of the prompts above: Gemini CLI finds DataForSEO referring domains on Spiral, shows the price and runs it.

DataForSEO referring domains providers and prices

Spiral runs DataForSEO referring domains through Alexandria. Open a card for today's price, with every fee included.

AlexandriaSEO
DataForSEO · Referring domains
dataforseo/backlinks/referring-domains

Settings you can ask for

Ask Gemini CLI for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Limit1 to 1000100

Rows to return, 1 to 1000. Each row costs $0.000036. Omitted, 100 is sent.

Offseta number from 0

Items to skip, for the next page. Default 0.

Rank scaleone_hundred or one_thousand

Rank scale, one_hundred or one_thousand (default).

Include subdomainson or off

Count links to subdomains of the target. Default true.

Internal list limit1 to 1000

Entries kept in the referring_links_* breakdowns. Default 10.

Backlinks status typeall, live, or lost

live (default) counts backlinks seen on the last check, lost counts removed ones, all counts both.

Include indirect linkson or off

Count links that reach the target through a redirect or canonical. Default true.

Exclude internal backlinkson or off

Drop links from subdomains of the same domain. Default true.

Every API field of DataForSEO · Referring domains is on its tool page: open its card above.

What can you do with DataForSEO referring domains in Gemini CLI?

Build a backlink audit report for a business website using DataForSEO's indexed link data. A coding agent can combine the results with project reports to compare profiles, investigate losses, and prioritize review.

Compare competitors' backlink profiles

Compare backlink totals and referring domains for competing business websites, then inspect linking sources and individual placements to explain the differences.

Report on a content campaign

Measure a campaign page's backlink profile, identify the domains linking to it, and collect source URLs and anchors as evidence of coverage.

Investigate lost links

Compare lost-link totals, identify domains whose links disappeared, and examine the affected source and destination URLs to prepare a recovery review.

Prioritize a backlink quality review

Use spam metrics to prioritize profiles, referring domains, or individual links for manual inspection.

Check links after a site migration

Compare the old and new targets' backlink totals, review their linking domains, and inspect destination URLs for links still pointing to retired pages.

Find content worth updating

Compare backlink profiles for public resource pages, identify their linking websites, and inspect anchors to understand which material earns references.

Explain a large backlink count

Compare backlink totals with referring-domain totals, then inspect domains and source pages to identify websites contributing repeated links.

Questions about DataForSEO referring domains in Gemini CLI

Can Gemini CLI use DataForSEO referring domains?

Yes. Add Spiral to Gemini CLI as an MCP server, and Gemini CLI can find and run DataForSEO referring domains like any built-in tool.

How much does DataForSEO referring domains cost in Gemini CLI?

Up to $0.0942786 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 an Alexandria account to use DataForSEO referring domains in Gemini CLI?

No. Spiral runs DataForSEO referring domains on its own Alexandria account. You sign in to Spiral once and never paste a key.

How long does it take to set up DataForSEO referring domains in Gemini CLI?

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

Does Gemini CLI wait while DataForSEO referring domains runs?

DataForSEO referring domains runs in the background. Gemini CLI starts the run, checks on it and gives you the json when it's ready.

How fresh is DataForSEO's backlink data?

The backlink index updates continuously, but refreshing the full index takes up to 90 days. A fresh response can therefore contain links last crawled weeks earlier.

Does DataForSEO include every backlink on the web?

The index deliberately excludes some spammy referring domains and networks using a minimum quality threshold. Its totals describe DataForSEO's indexed coverage rather than a complete census of links.

Why can old backlinks still appear?

DataForSEO says outdated backlinks are removed from its index within up to one year. Index retention and the date of a website change are therefore different things.

Why can referring-domain counts differ?

The referring-domain results count example.com and blog.example.com together. Summary metrics distinguish referring domains, which count subdomains separately, from referring main domains.

Does a backlink row represent every link on a page?

The backlink list returns one representative link when a referring page links to the target multiple times: the link with the highest rank. The links_count value records the duplicate count.

Get started

Start using DataForSEO referring domains in Gemini CLI

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

Paste this into Gemini CLI:

Set up Gemini CLI

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