Yandex Webmaster integration

Read Yandex Webmaster search queries per URL for a host you have verified, and keep the rows next to your crawl. Read-only, with an OAuth token, free within the Webmaster API quota.

What it does

Queries per URL

webmaster-url-queries returns search queries for one exact page (--url) or for a group of pages (--url-contains). URL and query rows stay separate. CTR and average position are not added up across pages.

  • --max-urls and --max-queries-per-url set explicit caps, and the response states when it truncated.
  • --start-date and --end-date filter the daily rows.
  • Yandex keeps its own rolling window, so an old range is refused as unavailable.

Access

You need the ID of a host that is verified in your Yandex Webmaster account and an OAuth token for that account. The token goes in YANDEX_WEBMASTER_TOKEN or its token file. SpiderHead does not create accounts or sign in for you. provider-discover can list the hosts the token can see.

  • The request is read-only and writes nothing back to Yandex.
  • Without a host ID the command does not run.
  • SpiderHead checks the host against your account before it asks for queries.

Keep it next to the crawl

sources-sync can store daily Webmaster evidence in a local SQLite history, so you build up data beyond what the API returns at one time. evidence-join attaches URL-keyed rows to a crawl and lists orphan candidates for review. Neither step changes the crawl.

  • Use --source webmaster or webmaster_history with sources-sync.
  • Crawl-only, external-only and unkeyable URLs stay named and separate.
  • Stored rows can include queries and URLs, so keep the files out of Git.

Three steps, one saved scan

  1. Point it at a verified host

    The command needs a Yandex Webmaster host ID for a site you have verified, plus the OAuth token configured locally. Without the host ID it does not run.

  2. Pull queries for a URL

    Ask for one exact page with --url, or a group with --url-contains. Caps are explicit: --max-urls and --max-queries-per-url, with optional --start-date and --end-date.

  3. Join the rows to your crawl

    Keep URL and query rows separate. The evidence-join step attaches URL-keyed rows to a crawl and lists orphan candidates for review without changing the crawl.

One command

bash
spiderhead webmaster-url-queries --url https://example.com/

Install first: installation guide. Every command also runs as an MCP tool for AI agents.

What you need

  • A verified Yandex Webmaster host ID (--host-id)
  • A Yandex OAuth token with access to that host
  • An exact URL or a URL substring

Limits

  • Only hosts verified in your own account can be read.
  • Yandex retains query data for a limited rolling window. A date range that ends more than 14 days ago is refused.
  • Results are capped, and a truncated result is marked as such.
  • Other Webmaster operations, such as indexing and diagnostics, run through provider-collect, not through this command.

Questions

Do I need a verified Yandex Webmaster host?
Yes. The command takes a verified host ID (--host-id) and an OAuth token set up on your machine. SpiderHead does not create accounts or sign in for you.
Does it change anything in Yandex or on my site?
No. It is a read-only request. It returns query statistics for the URLs you name and writes nothing back to Yandex or to the site.
Are clicks and positions added up across pages?
No. Each URL keeps its own query rows. CTR and average position are not summed across pages, and the response states the caps it applied.
How much does it cost?
Nothing beyond the Yandex Webmaster API quota. The toolkit lists the provider as free within that quota.
Can I keep history beyond the API window?
Yes, with sources-sync. It stores daily Webmaster evidence in a local SQLite history, so you can build up data over time. It cannot recover days Yandex no longer returns.
Can I use it from an AI assistant?
Yes. The local MCP server exposes the same operation as seo_webmaster_url_queries.

Try it on your own site