{
  "openapi": "3.0.1",
  "info": {
    "title": "Firmy.cz Scraper ($0.35/1K): Czech Companies, IČO & ARES",
    "description": "Scrape Firmy.cz, the Czech business directory by Seznam: companies with IČO, address, phone, website, rating and opening hours, register data from ARES, e-mails, reviews, filters and monitoring of new companies.",
    "version": "0.0",
    "x-build-id": "7PdSWe3S3EbpwwcqF"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/tsutseisoftware~firmy-cz-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-tsutseisoftware-firmy-cz-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/tsutseisoftware~firmy-cz-scraper/runs": {
      "post": {
        "operationId": "runs-sync-tsutseisoftware-firmy-cz-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/tsutseisoftware~firmy-cz-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-tsutseisoftware-firmy-cz-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "searchQueries": {
            "title": "Search queries",
            "type": "array",
            "description": "What to look for, as you would type it on Firmy.cz: a trade or category (autoservis, kadeřnictví, účetní), a product or a company name. Each query is a separate search; combine with \"Locations\" to search in towns, districts or regions.",
            "items": {
              "type": "string"
            }
          },
          "locations": {
            "title": "Locations",
            "type": "array",
            "description": "Towns, city districts, districts or regions to search each query in (Brno, Praha 3, okres Benešov, Jihomoravský kraj). Empty = the whole Czech Republic.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max results",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of companies saved in the run (all searches together). You pay per saved company. 0 = no limit (whole searches).",
            "default": 100
          },
          "startUrls": {
            "title": "Firmy.cz URLs",
            "type": "array",
            "description": "Firmy.cz pages: a search (https://www.firmy.cz/?q=autoservis+brno), any category with or without a place (https://www.firmy.cz/Auto-moto/Auto-moto-sluzby/Autoservisy/kraj-jihomoravsky/brno-mesto), a tag page or a company profile (https://www.firmy.cz/detail/205114-auto-jarov-praha-zizkov.html).",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "icos": {
            "title": "Company IDs (IČO)",
            "type": "array",
            "description": "Czech company IDs (IČO): every Firmy.cz listing of each company (headquarters and branches).",
            "items": {
              "type": "string"
            }
          },
          "includeDetails": {
            "title": "Add company profile",
            "type": "boolean",
            "description": "Read each company's Firmy.cz profile: e-mails, all phone numbers with their labels, data box ID, social links (Facebook, Instagram, LinkedIn ...), all websites, every category, service tags, the review summary and sub-ratings (price, deadlines, quality, communication), when the profile was last updated. Charged as \"Company profile\" per saved company.",
            "default": false
          },
          "includeReviews": {
            "title": "Add reviews",
            "type": "boolean",
            "description": "Public reviews of each company, newest first: date, stars, text and the company's reply. Reviewers' names are never returned. Charged per saved review.",
            "default": false
          },
          "includePersonalData": {
            "title": "Include sole traders",
            "type": "boolean",
            "description": "Sole traders (self-employed people, \"OSVČ\") are saved like companies, at no extra charge, and contact labels with a person's name are kept. They are natural persons: their name is the business name and their contacts are personal data, so you are responsible for processing them lawfully (GDPR), e.g. no unsolicited marketing. Off: they are left out (the status says how many) and contact labels with a person's name are removed.",
            "default": true
          },
          "maxItemsPerSearch": {
            "title": "Max results per search",
            "minimum": 0,
            "type": "integer",
            "description": "How many companies each search query, location or URL returns at most, in the website's order. 0 = no limit per search (only \"Max results\").",
            "default": 0
          },
          "siteFilters": {
            "title": "Website filters",
            "type": "array",
            "description": "Firmy.cz's own filters, applied to every search (all chosen must apply).",
            "items": {
              "type": "string",
              "enum": [
                "cardPayment",
                "parking",
                "nonstop",
                "openNow",
                "installments",
                "wheelchairAccess",
                "airConditioning",
                "evCharging",
                "eshop",
                "jobOffers",
                "pickupPoint",
                "withPhotos"
              ],
              "enumTitles": [
                "Card payment",
                "Parking",
                "Nonstop service",
                "Open now",
                "Installments",
                "Wheelchair access",
                "Air conditioning",
                "EV charging",
                "E-shop",
                "Job offers",
                "Pickup point",
                "With photos of the premises"
              ]
            }
          },
          "strictLocation": {
            "title": "Strict location",
            "type": "boolean",
            "description": "Keep only companies that lie in the location of the search: the town, town district, district or region Firmy.cz recognized (Firmy.cz also lists companies serving the place from nearby).",
            "default": false
          },
          "onePerCompany": {
            "title": "One row per company",
            "type": "boolean",
            "description": "Many companies have several listings (branches, brands). On: only the first listing of each company ID (IČO) is saved; \"branchCount\" tells how many listings it has.",
            "default": false
          },
          "websiteFilter": {
            "title": "Website",
            "enum": [
              "any",
              "with",
              "without"
            ],
            "type": "string",
            "description": "\"Only without a website\": companies that may need one (web agencies, marketing).",
            "default": "any"
          },
          "onlyWithPhone": {
            "title": "Only with a phone",
            "type": "boolean",
            "description": "Leave out companies without a phone number.",
            "default": false
          },
          "onlyWithEmail": {
            "title": "Only with an e-mail",
            "type": "boolean",
            "description": "Leave out companies without an e-mail address (needs \"Add company profile\").",
            "default": false
          },
          "minRating": {
            "title": "Min rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Keep only companies rated at least this many stars (0–5, e.g. 4.5). Companies without a rating are left out."
          },
          "minReviews": {
            "title": "Min reviews",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only companies with at least this many reviews."
          },
          "legalForms": {
            "title": "Legal forms",
            "type": "array",
            "description": "Keep only companies with these legal forms (from the company register ARES).",
            "items": {
              "type": "string",
              "enum": [
                "112",
                "121",
                "111",
                "113",
                "205",
                "706",
                "736",
                "141",
                "161",
                "117",
                "118",
                "301",
                "325",
                "331",
                "801",
                "601",
                "641",
                "421",
                "932"
              ],
              "enumTitles": [
                "s.r.o. (limited liability company)",
                "a.s. (joint-stock company)",
                "v.o.s. (general partnership)",
                "k.s. (limited partnership)",
                "družstvo (cooperative)",
                "spolek (association)",
                "pobočný spolek (branch association)",
                "o.p.s. (public benefit company)",
                "ústav (institute)",
                "nadace (foundation)",
                "nadační fond (foundation fund)",
                "státní podnik (state enterprise)",
                "organizační složka státu (state body)",
                "příspěvková organizace (public body)",
                "obec (municipality)",
                "vysoká škola (university)",
                "školská právnická osoba (school)",
                "odštěpný závod zahraniční osoby (foreign branch)",
                "SE (European company)"
              ]
            }
          },
          "onlyVatPayers": {
            "title": "Only VAT payers",
            "type": "boolean",
            "description": "Keep only companies registered for VAT (ARES).",
            "default": false
          },
          "onlyActiveCompanies": {
            "title": "Only active companies",
            "type": "boolean",
            "description": "Leave out companies that are dissolved, in liquidation or in insolvency (ARES).",
            "default": false
          },
          "foundedFromYear": {
            "title": "Founded from year",
            "minimum": 1800,
            "maximum": 2100,
            "type": "integer",
            "description": "Keep only companies founded in this year or later (e.g. 2024 for new companies)."
          },
          "foundedToYear": {
            "title": "Founded up to year",
            "minimum": 1800,
            "maximum": 2100,
            "type": "integer",
            "description": "Keep only companies founded in this year or earlier (e.g. 2000 for established companies)."
          },
          "naceCodes": {
            "title": "Activity (NACE)",
            "type": "array",
            "description": "Keep only companies with a registered activity starting with one of these CZ-NACE codes (45 = motor vehicles, 4520 = repair of motor vehicles, 69 = legal and accounting).",
            "items": {
              "type": "string"
            }
          },
          "includeKeywords": {
            "title": "Must contain",
            "type": "array",
            "description": "Keep only companies whose name, description, categories or amenities contain all these words.",
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Must not contain",
            "type": "array",
            "description": "Leave out companies whose name, description, categories or amenities contain any of these words.",
            "items": {
              "type": "string"
            }
          },
          "maxReviewsPerCompany": {
            "title": "Max reviews per company",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "How many of the newest reviews of each company are returned (1–200).",
            "default": 10
          },
          "onlyNewOrChanged": {
            "title": "Monitoring: only new or changed companies",
            "type": "boolean",
            "description": "Return companies that are new in your searches and companies whose name, address, phone, website, main category, paid listing, legal form or register status (dissolved, liquidation, insolvency, VAT) changed, with the changed fields and the previous values. With \"Max results\" or \"Max results per search\", \"new\" means newly among the first results; leave both at 0 to watch whole searches.",
            "default": false
          },
          "monitoringKey": {
            "title": "Monitoring key",
            "type": "string",
            "description": "Name of the remembered state; use a different key for every watch list. Empty = \"default\"."
          },
          "includeRemoved": {
            "title": "Monitoring: report removed companies",
            "type": "boolean",
            "description": "A company that is no longer in your searches is returned once with changeType removed (only when every search was read whole: \"Max results\" and \"Max results per search\" 0).",
            "default": false
          },
          "telegramBotToken": {
            "title": "Telegram bot token",
            "type": "string",
            "description": "Token of your bot from @BotFather."
          },
          "telegramChatId": {
            "title": "Telegram chat ID",
            "type": "string",
            "description": "Chat, group or channel to send to (e.g. 123456789 or -1001234567890)."
          },
          "slackWebhookUrl": {
            "title": "Slack webhook URL",
            "type": "string",
            "description": "Incoming webhook (https://hooks.slack.com/...)."
          },
          "discordWebhookUrl": {
            "title": "Discord webhook URL",
            "type": "string",
            "description": "Webhook of your Discord channel (https://discord.com/api/webhooks/...). In Discord: channel settings → Integrations → Webhooks → Copy Webhook URL. Stored encrypted."
          },
          "webhookUrl": {
            "title": "Webhook URL",
            "type": "string",
            "description": "Any HTTPS URL (Zapier, Make, n8n, your server): receives the companies as JSON."
          },
          "whatsappAccessToken": {
            "title": "WhatsApp access token",
            "type": "string",
            "description": "Access token of the WhatsApp Cloud API of your Meta business account, used with \"WhatsApp phone number ID\" and \"WhatsApp recipient number\" (step by step in the README, section \"WhatsApp notifications: setup\"). For scheduled runs use a permanent token of a system user: Business settings → System users → Generate token, with the permissions whatsapp_business_messaging and whatsapp_business_management; the token of WhatsApp → API Setup expires within hours. Stored encrypted."
          },
          "whatsappPhoneNumberId": {
            "title": "WhatsApp phone number ID",
            "type": "string",
            "description": "ID of your WhatsApp business number that sends the message (not the number itself), e.g. 106540352242922. In your Meta app: WhatsApp → API Setup → Phone number ID."
          },
          "whatsappTo": {
            "title": "WhatsApp recipient number",
            "type": "string",
            "description": "Phone number that gets the message, in international format with the country code (e.g. +420601234567); up to 5 numbers separated by commas or new lines, each gets its own message and the notification is charged once per run. A test number of Meta sends only to numbers you added and confirmed under API Setup → To. Stored encrypted."
          },
          "whatsappTemplateName": {
            "title": "WhatsApp template name",
            "type": "string",
            "description": "Name of your approved message template (WhatsApp Manager → Message templates, e.g. apify_results), recommended: WhatsApp delivers a template message at any time. Its body gets the run summary with the first results in {{1}} and the dataset link in {{2}} (a template with only {{1}} gets both in {{1}}). Empty: a plain text message, which WhatsApp delivers only when the recipient wrote to your business number in the last 24 hours, so a scheduled run usually needs a template. Meta charges your business account for template messages (step by step in the README, section \"WhatsApp notifications: setup\")."
          },
          "whatsappTemplateLanguage": {
            "title": "WhatsApp template language",
            "type": "string",
            "description": "Language code of the template exactly as WhatsApp Manager → Message templates shows it next to the template, e.g. en_US, en_GB, cs, sk, pl or de. Used only with \"WhatsApp template name\".",
            "default": "en_US"
          },
          "webhookHeaders": {
            "title": "Webhook headers",
            "type": "object",
            "description": "HTTP headers sent with the webhook, e.g. {\"Authorization\": \"Bearer <your token>\"} for a server that needs a key. Header values are hidden in error reports."
          },
          "notificationLimit": {
            "title": "Max companies per notification",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "How many companies the message lists.",
            "default": 10
          },
          "notifyOnlyChanges": {
            "title": "Notify only when something was found",
            "type": "boolean",
            "description": "No message after a run that saved nothing.",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Not needed: Firmy.cz works without a proxy (a run whose address is refused goes on through Apify Proxy by itself).",
            "default": {
              "useApifyProxy": false
            }
          },
          "exportFormats": {
            "title": "Extra export formats",
            "type": "array",
            "description": "Off by default. Printable HTML report: the results as a clean, branded table with the main columns, made for printing, saving as PDF or sending to someone; for working with the data use Excel or CSV, which have every field. Markdown table: the same columns as text for AI tools, docs or GitHub. The Output tab links the files. Each file has the overview columns of every saved row and nothing is left out, so a run with tens of thousands of rows makes a file of tens of MB that can be slow to open; for big runs use the dataset or its Excel export. Excel (XLSX), CSV and JSON are always in the Output tab and under Export, at no extra cost.",
            "items": {
              "type": "string",
              "enum": [
                "html",
                "markdown"
              ],
              "enumTitles": [
                "Printable HTML report",
                "Markdown table"
              ]
            },
            "default": []
          },
          "sendErrorReports": {
            "title": "Send error reports",
            "type": "boolean",
            "description": "When a run fails, send the developer a short error report: the error and your input with secrets left out (tokens, webhooks and e-mails are hidden). Your results are never sent. Reports are deleted after at most 120 hours. Turn off to send nothing.",
            "default": true
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}