# Seznam Search Scraper (`searchapi/seznam-scraper`) Actor

Extract public organic search results from Seznam.cz with titles, URLs, display domains, snippets, and bounded pagination.

- **URL**: https://apify.com/searchapi/seznam-scraper.md
- **Developed by:** [Search API](https://apify.com/searchapi) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.99 / 1,000 search results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Seznam Scraper (rank 2465)

This Actor extracts public organic search results from Seznam.cz. It returns normalized titles, result URLs, display URLs/domains, snippets, page offsets, and global result ranks. Pagination uses Seznam's public `from` offset and is bounded by `maxPages` and `maxResults`.

It uses public HTTPS requests only and does not use credentials, private APIs, CAPTCHA solving, mirrors, or access-control bypasses. Direct access is the default; Apify Proxy or custom proxy URLs can be configured for ordinary network routing. Temporary failures use bounded retries. Responses are accepted only after status, final host, content type, size, and challenge checks.

Only normalized organic results are written to the dataset. Safe run errors and empty-result state are stored in the `OUTPUT` summary. A zero-card first page is accepted as empty only when Seznam displays recognized no-results text; otherwise it is treated as possible selector drift.

### Local verification

```bash
npm ci
apify validate-schema
npm test
npm run lint
apify run --purge --input '{"query":"apify","maxResults":10,"maxPages":2,"resultsPerPage":10,"timeoutSecs":30,"maxRequestRetries":2,"proxyConfiguration":{"useApifyProxy":false}}'
```

Invalid ranges and unsupported input properties fail instead of being silently changed. The small `src/main.js` entrypoint delegates bounded pagination, HTTP, Cheerio parsing, normalization, deduplication, and run reporting to cohesive modules under `src/`.

`resultsPerPage` is fixed at 10 because live verification showed that Seznam advances organic pages only at 10-result offsets; allowing other values could overlap or skip records. This is a validation tightening from the earlier 5–20 range.

### Output

Each dataset row represents one public result card. In addition to its title, URL, display URL, and snippet, the Actor records visible favicons, query terms highlighted by Seznam, sitelinks, and the page's related queries. Counts and `has*` fields make empty optional collections explicit.

This example uses the second result visible on the Chrome page for `apify`. Its title, snippet, favicon, five Wikipedia sitelinks, and related queries were visible there. `httpStatus` and `scrapedAt` illustrate fields filled from the Actor's own request; no Actor run was made for this observation.

```json
{
  "recordType": "seznam-search-result",
  "actorRank": 2465,
  "actorName": "Seznam Scraper",
  "query": "apify",
  "resultRank": 2,
  "pageNumber": 1,
  "pageOffset": 0,
  "title": "Apify – Wikipedie",
  "url": "https://cs.wikipedia.org/wiki/Apify",
  "displayUrl": "cs.wikipedia.org/wiki/apify",
  "domain": "cs.wikipedia.org",
  "snippet": "Zabývá se extrakcí dat z webových stránek, automatizací internetových procesů a zpracováním dat pomocí umělé inteligence.",
  "sourceTitle": "apify – Seznam.cz",
  "faviconUrl": "https://fimg-resp.seznam.cz/thumbnail/v1.0/favicon48x48/https%3A%2F%2Fcs.wikipedia.org%2F",
  "hasFavicon": true,
  "siteLinks": [
    { "title": "1 Historie", "url": "https://cs.wikipedia.org/wiki/Apify#Historie", "domain": "cs.wikipedia.org" },
    { "title": "2 Služby", "url": "https://cs.wikipedia.org/wiki/Apify#Slu%C5%BEby", "domain": "cs.wikipedia.org" },
    { "title": "3 Ocenění", "url": "https://cs.wikipedia.org/wiki/Apify#Ocen%C4%9Bn%C3%AD", "domain": "cs.wikipedia.org" },
    { "title": "4 Neziskové projekty", "url": "https://cs.wikipedia.org/wiki/Apify#Neziskov%C3%A9_projekty", "domain": "cs.wikipedia.org" },
    { "title": "5 Reference", "url": "https://cs.wikipedia.org/wiki/Apify#Reference", "domain": "cs.wikipedia.org" }
  ],
  "siteLinkCount": 5,
  "hasSiteLinks": true,
  "highlightedTerms": ["Apify"],
  "highlightedTermCount": 1,
  "highlightOccurrenceCount": 2,
  "relatedQueries": ["apify web scraping", "apifum", "apify alternativy", "apifonda", "apify tutoriál", "apisinfo", "apify recenze", "apisto"],
  "relatedQueryCount": 8,
  "hasSnippet": true,
  "sourcePage": "https://search.seznam.cz/?q=apify&count=10",
  "httpStatus": 200,
  "accessStatus": "success",
  "dataAvailable": true,
  "scrapedAt": "2026-09-23T00:00:00.000Z"
}
```

The schema has 29 top-level fields. Optional page content remains empty when Seznam does not render it for a result; the corresponding counts and flags report that state.

# Actor input Schema

## `query` (type: `string`):

Czech or international search phrase submitted to Seznam.cz.

## `maxResults` (type: `integer`):

Maximum unique organic results returned across all fetched pages.

## `maxPages` (type: `integer`):

Maximum public result pages fetched using Seznam's from offset.

## `resultsPerPage` (type: `integer`):

Seznam's supported organic pagination stride. Other values are rejected to prevent overlapping or skipped pages.

## `timeoutSecs` (type: `integer`):

Bounded timeout for each public search request.

## `maxRequestRetries` (type: `integer`):

Retries for temporary network errors, rate limits, and 5xx responses.

## `proxyConfiguration` (type: `object`):

Optional Apify Proxy or custom proxy configuration. Direct access is the default.

## Actor input object example

```json
{
  "query": "apify",
  "maxResults": 10,
  "maxPages": 3,
  "resultsPerPage": 10,
  "timeoutSecs": 30,
  "maxRequestRetries": 2,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

## `runSummary` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "query": "apify",
    "maxResults": 10,
    "maxPages": 3,
    "resultsPerPage": 10,
    "timeoutSecs": 30,
    "maxRequestRetries": 2
};

// Run the Actor and wait for it to finish
const run = await client.actor("searchapi/seznam-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "query": "apify",
    "maxResults": 10,
    "maxPages": 3,
    "resultsPerPage": 10,
    "timeoutSecs": 30,
    "maxRequestRetries": 2,
}

# Run the Actor and wait for it to finish
run = client.actor("searchapi/seznam-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "query": "apify",
  "maxResults": 10,
  "maxPages": 3,
  "resultsPerPage": 10,
  "timeoutSecs": 30,
  "maxRequestRetries": 2
}' |
apify call searchapi/seznam-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,searchapi/seznam-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/dbXq711s5SfkGkLar/builds/K06fV2PwnO9orj0cz/openapi.json
