get-excluded-pages
Find pages dropped from Yandex search within a scanned window and see the exclusion reason, status, and related URL for each.
Instructions
Pages DROPPED FROM SEARCH inside a time window, with the reason for each one (url + excluded_url_status, plus bad_http_status for HTTP_ERROR and target_url for redirect/canonical/duplicate cases). READ THE NATURE OF THIS DATA: API v4 has no "currently excluded pages" resource, only the event log /search-urls/events/samples, so this is built from REMOVED_FROM_SEARCH EVENTS in the scanned window, not from a live index snapshot. Events are deduplicated per URL with the latest one winning, so a page that dropped and came back is NOT reported as excluded — it is listed separately under returned_to_search. The window is bounded by limit/max_requests, so an older exclusion outside it is invisible, and summary_excluded_pages_count (the aggregate from get-summary, returned alongside) is a DIFFERENT kind of number that is not expected to match the length of this list. Deduplication spans ONE call: when continuing a walk with offset, pass the URLs from the previous returned_to_search in returned_urls, otherwise a page whose return fell in the earlier window will be reported as excluded again. There is no server-side event filter, so the tool walks the mixed stream page by page until it has collected limit excluded pages (at most max_requests page fetches — retries are not counted, so HTTP calls can be more) and reports next_offset/exhausted to continue the walk. Use when the user asks which pages dropped out of search and why, inside a scanned window. Do not use it for the aggregate excluded_pages_count; that number comes from get-summary and is a different kind of count. Do not use it for a single mixed page of events; call get-search-events-samples.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | How many EXCLUDED pages to collect (default: 20) | |
| offset | No | Event-stream offset to resume from (default: 0) | |
| host_id | Yes | Host ID | |
| max_requests | No | Cap on PAGE fetches made while walking the mixed event stream (default: 10). Retries of a failed fetch (429/5xx) are not counted, so the number of HTTP calls can be higher. | |
| returned_urls | No | URLs already known to have come back to search — pass `returned_to_search` from the previous call when continuing a walk with `offset`. Deduplication only spans one call, so without this a page whose return fell in the earlier window is reported as excluded again. |