agentleFS
apifyapify/awesome-skills/skills/apify-yandex-search-api/SKILL.md

apify-yandex-search-api

Skill293 starsChanged 7 days agoApache-2.0View on GitHub

Get structured Yandex search results without an official API key using the Apify Yandex Search Scraper Actor (johnvc/Scrape-Yandex). One query returns the full SERP as JSON, with organic results (position, title, link, displayed_link, snippet), and optional ads, knowledge graph, inline images, and inline videos, targeted by Yandex domain, language, and any of 123,000 plus lr region IDs. Use when the user wants a yandex search api, a yandex serp api, Yandex search results as JSON or CSV, to scrape Yandex search, to check what ranks on yandex.ru for a query or region, or SEO research for Russian-speaking markets. Pay-per-page billing, MCP-ready for Claude and other AI agents.

1 other project uses a version of this, 1 of them edited.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Not for: keyword rank tracking over time (use the pay-per-result Yandex edition), reverse image lookups (use the Yandex Reverse Image …

    line 24
  2. Very specific:

    Every call carries the three flags this repo expects: --json, --user-agent apify-awesome-skills/apify-yandex-search-api, and 2>/dev/null.

    line 61
  3. Very specific:

    Keep page_number with position: positions restart on each page.

    line 96

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Yandex Search API: Full SERP Results as JSON

A Yandex search API without an official API key. One query returns the full Yandex SERP as structured JSON: organic results with positions and sitelinks, plus ads, knowledge graph, and inline media when you ask for them, targeted to any Yandex domain, language, and region.

When to use this skill

  • The user wants a "Yandex search API" or "Yandex SERP API" without registering for an official key.
  • They want Yandex search results as JSON or CSV for a query, market, or region.
  • They want to see what ranks on yandex.ru for a query, by city or region.
  • They are doing SEO or competitor research for Russian-speaking markets.

Not for: keyword rank tracking over time (use the pay-per-result Yandex edition), reverse image lookups (use the Yandex Reverse Image Search Actor), or Google SERPs.

What you get (one dataset item per page, tagged by item_type)

Each dataset item is one page of one result type, tagged with item_type (organic, ads, knowledge_graph, inline_images, inline_videos). The results sit in a nested array on that item: organic_results holds rows with position, title, link, displayed_link, snippet (plus date, rich_snippet, and sitelinks when Yandex shows them); the optional types use ads_results, knowledge_graph, inline_images, and inline_videos arrays. Every item also carries page metadata: total_results_found, page_number, pages_processed, pagination_limit_reached.

Prerequisites

The Actor

Run it with the Apify CLI

Organic results for a query on yandex.com:

apify actors call "johnvc/Scrape-Yandex" -i '{"text":"crm software","max_pages":2}' \
  --json \
  --user-agent apify-awesome-skills/apify-yandex-search-api \
  2>/dev/null

Full Russian SERP for Moscow (lr 213), organic plus ads plus knowledge graph:

apify actors call "johnvc/Scrape-Yandex" -i '{"text":"купить ноутбук","yandex_domain":"yandex.ru","lang":"ru","lr":213,"include_ads":true,"include_knowledge_graph":true,"max_pages":2}' \
  --json \
  --user-agent apify-awesome-skills/apify-yandex-search-api \
  2>/dev/null

Every call carries the three flags this repo expects: --json, --user-agent apify-awesome-skills/apify-yandex-search-api, and 2>/dev/null.

Run it from Claude or another AI agent (MCP)

The Actor is MCP-ready. Add the hosted server URL:

https://mcp.apify.com/?tools=actors,docs,johnvc/Scrape-Yandex

Then ask, for example: "Get the first two pages of Yandex results for 'hotel booking' on yandex.ru and list the organic links with positions." MCP setup docs: https://docs.apify.com/platform/integrations/mcp

Workflow

  1. Fetch the current input schema with apify actors info "johnvc/Scrape-Yandex" --input --json --user-agent apify-awesome-skills/apify-yandex-search-api 2>/dev/null (read taggedBuilds.latest.build.inputSchema), then build the query. text is the only required field. Pick yandex_domain (six domains), lang (19 languages), and lr (region ID, for example 213 for Moscow, 2 for Saint Petersburg) for the market you care about.
  2. Choose result types. Organic is on by default; flip include_ads, include_knowledge_graph, include_inline_images, or include_inline_videos as needed. Each page of each type comes back as its own dataset item tagged with item_type.
  3. Bound the volume. max_pages (default 2) is the cost driver; sort_mode "date" and period narrow to recent results.
  4. Estimate cost, then confirm with the user if the run is large. See references/gotchas.md.
  5. Run the Actor, then read the completed run’s defaultDatasetId into DATASET_ID and fetch its rows with apify datasets get-items "$DATASET_ID" --format json --user-agent apify-awesome-skills/apify-yandex-search-api 2>/dev/null. Check all items for error and error_message before filtering by item_type, then read the nested array on each item (organic_results for the web SERP). Flatten the arrays client-side if the user wants CSV.

Inputs

  • text (string, required): the search query
  • yandex_domain (enum, 6 domains, default yandex.com)
  • lang (enum, 19) and lr (integer region ID, 123,000 plus locations)
  • include_organic_results (default true), include_ads, include_knowledge_graph, include_inline_images, include_inline_videos (booleans)
  • max_pages (integer, default 2) and groups_on_page (default 10)
  • sort_mode (relevance or date), period, family_mode, fix_typo

For video results in the web SERP, set include_inline_videos: true and keep include_organic_results: true. Read inline_videos on items with item_type: "inline_videos"; return title, duration, and source_link when present (link opens the Yandex preview). For the dedicated Images vertical (include_image_search), see the Yandex image search API skill. Dedicated video search (include_video_search) is a separate Actor mode; see references/gotchas.md before using it.

Cost

Billing is a small one-time start fee per run plus a per-page fee, so cost is roughly proportional to max_pages. A default two-page run costs well under a dollar; live prices and thresholds are in references/gotchas.md.

Honest limits

  • Keep page_number with position: positions restart on each page. Positions reflect the SERP at crawl time for the chosen lr region; they vary by region and personalization-free crawling can still fluctuate run to run.
  • This skill reads the SERP; it does not track ranks over time (that is the pay-per-result edition's job).
  • Knowledge graph, ads, and inline media appear only when Yandex shows them for that query.

Troubleshooting

  • Empty organic results: check the query on the chosen domain manually; try fix_typo true and a broader query.
  • Wrong-market results: set yandex_domain, lang, and lr together; lr alone does not switch language.
  • pagination_limit_reached true means the configured page limit was reached. For fewer pages, inspect returned items and run errors before assuming Yandex ran out of results.

See references/gotchas.md for cost guardrails and error recovery, and references/actor-index.md for the Actor routing table.

Related Yandex and international SERP Actors

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.