Yandex Wordstat logo

Yandex Wordstat

Community
artwist-polyakov
yandex-wordstat

Анализ поискового спроса через Yandex Wordstat API. Используй когда нужно: исследовать спрос, семантическое ядро, частотность запросов, сезонность или региональный спрос. Топ до 2000 запросов, ассоциации, динамика, экспорт CSV. Поиск упущенного спроса: анализ XLSX-выгрузки из Яндекс Директ, сегментация фраз, расширение семантики, сравнение OR-запросов. Triggers: упущенный спрос.

Overview

Publisherartwist-polyakov
Repositorypolyakov-claude-skills
Skill nameyandex-wordstat
Stars
218
Forks
55
Bundled files
21
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 21 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by artwist-polyakov on GitHub. Read the source before you install it.

Installation

Install the Yandex Wordstat AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/artwist-polyakov/polyakov-claude-skills/tree/main/plugins/yandex-wordstat/skills/yandex-wordstat
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/artwist-polyakov/polyakov-claude-skills.git /tmp/polyakov-claude-skills
mkdir -p .claude/skills
cp -r /tmp/polyakov-claude-skills/plugins/yandex-wordstat/skills/yandex-wordstat .claude/skills/yandex-wordstat
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Yandex Wordstat in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Yandex Wordstat on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Yandex Wordstat is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

yandex-wordstat

Analyze search demand and keyword statistics using Yandex Wordstat API.

Настройка

Скилл работает через Wordstat API в Yandex Cloud Search API v2. Для авторизации выберите IAM через авторизованный JSON-ключ сервисного аккаунта или API-ключ сервисного аккаунта. IAM-токен скрипты получают и обновляют автоматически; API-ключ автоматически не обновляется.

Единая инструкция по настройке, переходу со старого API и устранению ошибок: config/README.md.

⚠️ Операторы в dynamics: при --period weekly|monthly поддерживается только оператор +. Минус-слова, кавычки, группировки и точные формы работают только при --period daily. Скилл проверяет фразу и сообщает об ошибке до отправки запроса. Подробнее — в README.

Philosophy

  1. Skepticism to non-target demand — high numbers don't mean quality traffic
  2. Creative semantic expansion — think like a customer
  3. Always clarify region — ask user for target region before analysis
  4. Show operators in reports — include Wordstat operators for verification
  5. VERIFY INTENT via web search — always check what people actually want to buy

CRITICAL: Intent Verification

Before marking ANY query as "target", verify intent via WebSearch!

The Problem

Query "каолиновая вата для дымохода" looks relevant for chimney seller, but:

  • People search this to BUY COTTON WOOL, not chimneys
  • They already HAVE a chimney and need insulation material
  • This is NOT a target query for chimney sales!

Verification Process

For every promising query, ASK YOURSELF:

  1. What does the person want to BUY? (not just "what are they interested in")
  2. Will they buy OUR product from this search?
  3. Or are they looking for something adjacent/complementary?

MANDATORY: Use WebSearch

Always run WebSearch to check:

WebSearch: "каолиновая вата для дымохода" что ищут покупатели

Look at search results:

  • What products are shown?
  • What questions do people ask?
  • Is this informational or transactional intent?

Red Flags (likely NOT target)

  • Query contains "для [вашего продукта]" — they need ACCESSORY, not your product
  • Query about materials/components — they DIY, not buy finished product
  • Query has "своими руками", "как сделать" — informational, not buying
  • Query about repair/maintenance — they already own it

Examples

QueryLooks likeActuallyTarget?
каолиновая вата для дымоходаchimney buyercotton wool buyer❌ NO
дымоход купитьchimney buyerchimney buyer✅ YES
утепление дымоходаchimney buyerinsulation DIYer❌ NO
дымоход сэндвич ценаchimney buyerchimney buyer✅ YES
потерпевший дтпlawyer clientnews reader❌ NO
юрист после дтпlawyer clientlawyer client✅ YES

Workflow Update

  1. Find queries in Wordstat
  2. WebSearch each promising query to verify intent
  3. Mark as target ONLY if intent matches the sale
  4. Report both target AND rejected queries with reasoning

Workflow

STOP! Before any analysis:

  1. ASK user about region and WAIT for answer:

    "Для какого региона анализировать спрос?
    - Вся Россия (по умолчанию)
    - Москва и область
    - Конкретный город (какой?)"

    НЕ ПРОДОЛЖАЙ пока пользователь не ответит!

  2. ASK about business goal:

    "Что именно вы продаёте/рекламируете?
    Это важно для фильтрации нецелевых запросов."

After getting answers:

  1. Check connection: bash scripts/quota.sh
  2. Run analysis using appropriate script
  3. Verify intent via WebSearch for each promising query
  4. Present results with target/non-target separation

Scripts

quota.sh

Check API connection.

bash
bash scripts/quota.sh

top_requests.sh

Get top search phrases. Supports up to 2000 results and CSV export.

bash
bash scripts/top_requests.sh \
  --phrase "юрист дтп" \
  --regions "213" \
  --devices "all"

# Extended: 500 results exported to CSV
bash scripts/top_requests.sh \
  --phrase "юрист дтп" \
  --limit 500 \
  --csv report.csv

# Max results with comma separator
bash scripts/top_requests.sh \
  --phrase "юрист дтп" \
  --limit 2000 \
  --csv full_report.csv \
  --sep ","
ParamRequiredDefaultValues
--phraseyes-text with operators
--regionsnoallcomma-separated IDs
--devicesnoallall, desktop, phone, tablet
--limitno50 (set by the skill)1-2000 (maps to API numPhrases)
--csvno-path to output CSV file
--sepno;CSV separator (; for RU Excel)
Result types: Top Requests vs Associations

The output contains two sections (both in stdout and CSV):

  • top (topRequests) — queries that contain the words from your phrase, sorted by frequency. These are direct variations of the search query. Example: phrase "юрист дтп" → "юрист по дтп", "консультация юриста по дтп".
  • assoc (associations) — queries similar by meaning but not necessarily containing the same words, sorted by similarity. These are semantically related searches. Example: phrase "юрист дтп" → "юридическая ответственность", "адвокат аварии".

For analysis: top results are your primary keyword pool. assoc results are useful for semantic expansion but often contain noise — always verify intent before including them.

CSV export details

CSV format: UTF-8 with BOM, columns: n;phrase;impressions;type. When --csv is set, stdout shows first 20 rows per section; full data goes to file.

Working with large CSV exports

When --limit is set to a high value (e.g. 500-2000), use CSV export and read the file in chunks:

bash
# Export 2000 results
bash scripts/top_requests.sh --phrase "query" --limit 2000 --csv data.csv

# Read first 50 rows (header + data)
head -n 51 data.csv

# Read rows 51-100
tail -n +52 data.csv | head -50

# Count total rows
wc -l < data.csv

# Filter only associations
grep ";assoc$" data.csv

This approach lets the agent process large datasets without flooding stdout.

dynamics.sh

Get search volume trends over time.

bash
bash scripts/dynamics.sh \
  --phrase "юрист дтп" \
  --period "monthly" \
  --from-date "2025-01-01"
ParamRequiredDefaultValues
--phraseyes-text
--periodnomonthlydaily, weekly, monthly
--from-dateyes-YYYY-MM-DD
--to-datenotodayYYYY-MM-DD
--regionsnoallregion IDs
--devicesnoallall, desktop, phone, tablet

regions_stats.sh

Get regional distribution.

bash
bash scripts/regions_stats.sh \
  --phrase "юрист дтп" \
  --region-type "cities"
ParamRequiredDefaultValues
--phraseyes-text
--region-typenoallcities, regions, all
--devicesnoallall, desktop, phone, tablet

regions_tree.sh

Show common region IDs.

bash
bash scripts/regions_tree.sh

search_region.sh

Find region ID by name.

bash
bash scripts/search_region.sh --name "Москва"

Wordstat Operators

Quotes "query"

Shows demand ONLY for this exact phrase (no additional words).

"юрист дтп" → "юрист дтп", "юристы дтп"
             but NOT "юрист по дтп"

Exclamation !word

Fixes exact word form.

!юрист → "юрист по дтп", "юрист москва"
         but NOT "юристы", "юриста"

Combination "!word !word"

Exact phrase + exact forms.

"!юрист !по !дтп" → only "юрист по дтп"

Minus -word

Exclude queries with this word.

юрист дтп -бесплатно -консультация

Grouping (a|b|c)

Multiple variants in one query.

(юрист|адвокат) дтп → combined demand

Stop words

Always fix prepositions with !:

юрист !по дтп    ← correct
юрист по дтп     ← "по" ignored!

Analysis Strategy

  1. Broad query: юрист дтп — see total volume
  2. Narrow with quotes: "юрист дтп" — exact phrase only
  3. Fix forms: "!юрист !по !дтп" — exact match
  4. Clean with minus: юрист дтп -бесплатно -онлайн
  5. Expand: synonyms, related terms, client problems

Popular Region IDs

RegionID
Россия225
Москва213
Москва и область1
Санкт-Петербург2
Екатеринбург54
Новосибирск65
Казань43

Run bash scripts/regions_tree.sh for full list.

Квоты и лимиты

Актуальные ограничения для Wordstat приведены в документации Yandex Search API.

Example Session

User: Найди запросы для рекламы дымоходов

Claude: Для какого региона анализировать спрос?
        И уточните — вы продаёте готовые дымоходы или
        материалы для их изготовления/утепления?

User: Москва, продаём готовые сэндвич-дымоходы

Claude: [Запускает анализ для региона 213]

        Нашёл запросы. Проверяю интент через веб-поиск...

        ✅ ЦЕЛЕВЫЕ (покупают дымоходы):
        - "дымоход сэндвич купить" — 450 показов
        - "дымоход для бани цена" — 380 показов

        ❌ НЕ ЦЕЛЕВЫЕ (покупают другое):
        - "каолиновая вата для дымохода" — ищут утеплитель, не дымоход
        - "монтаж дымохода своими руками" — DIY, не покупатели
        - "чистка дымохода" — уже владеют, сервисный запрос

Key Points

  1. ВСЕГДА спрашивай регион и жди ответа
  2. ВСЕГДА уточняй что именно продаёт клиент
  3. ВСЕГДА проверяй интент через WebSearch
  4. Разделяй отчёт на целевые/нецелевые с объяснением

Расширенные сценарии

Поиск упущенного спроса

Анализ рекламной кампании Яндекс Директ для нахождения фраз, не покрытых текущей семантикой. Требования: XLSX-выгрузка из Яндекс Директ (лист «Тексты»). Подробнее: MISSED_DEMAND.md

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Yandex Wordstat AI skill do?

Анализ поискового спроса через Yandex Wordstat API. Используй когда нужно: исследовать спрос, семантическое ядро, частотность запросов, сезонность или региональный спрос. Топ до 2000 запросов, ассоциации, динамика, экспорт CSV. Поиск упущенного спроса: анализ XLSX-выгрузки из Яндекс Директ, сегментация фраз, расширение семантики, сравнение OR-запросов. Triggers: упущенный спрос.

Why use Yandex Wordstat on TypingMind?

Because you install it once and use it with any model. Yandex Wordstat is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Yandex Wordstat in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/artwist-polyakov/polyakov-claude-skills/tree/main/plugins/yandex-wordstat/skills/yandex-wordstat. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Yandex Wordstat?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Yandex Wordstat?

As many as you like. As long as a model supports skills, you can use Yandex Wordstat with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Yandex Wordstat AI skill free?

Yes. It is published on GitHub by artwist-polyakov under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇