{
  "openapi": "3.0.1",
  "info": {
    "title": "Firmy.cz Scraper – Czech Businesses by Category & Filters",
    "description": "Czech businesses from Firmy.cz (Seznam) by category, filters (cyclists welcome, Wi-Fi, parking, EV charging, dog friendly…), keyword and region. Full profiles: IČO, phones, e-mails, web, socials, opening hours, rating, features, photos, GPS. Dedupe across categories, ARES and website add-ons.",
    "version": "1.0",
    "x-build-id": "b1cdPh543imGSfSZr"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/budoucnost-ai~firmy-cz-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-budoucnost-ai-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/budoucnost-ai~firmy-cz-scraper/runs": {
      "post": {
        "operationId": "runs-sync-budoucnost-ai-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/budoucnost-ai~firmy-cz-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-budoucnost-ai-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": {
          "categories": {
            "title": "Categories",
            "type": "array",
            "description": "Firmy.cz categories to scrape, one per line: a category URL (with or without ?filters, e.g. https://www.firmy.cz/Cestovni-sluzby/Ubytovaci-sluzby/Hotely?cykliste-vitani), a category path (Restauracni-a-pohostinske-sluzby/Restaurace) or a category name (Hotely). Parent categories include all their subcategories. A name that is not a category is searched as a keyword. Businesses appearing in several categories are returned once with all of them in foundInCategories.",
            "default": [
              "https://www.firmy.cz/Cestovni-sluzby/Ubytovaci-sluzby/Hotely?cykliste-vitani"
            ],
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "Search queries",
            "type": "array",
            "description": "Free-text searches like on Firmy.cz, one per line (e.g. \"kavárna Olomouc\", \"zubař Praha 6\"). A town in the query is understood by Firmy.cz. Combined with Filters and Locality below.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Firmy.cz URLs",
            "type": "array",
            "description": "Any Firmy.cz URLs: category pages, search result pages (?q=…) or business detail pages (/detail/…). Detail URLs are scraped directly.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "locality": {
            "title": "Region or district",
            "type": "string",
            "description": "Limit all categories and queries to one Czech region (kraj) or district (okres): \"Jihomoravský kraj\", \"kraj-jihomoravsky\", \"okres Vyškov\", \"Praha\", or a NUTS code (CZ064). A town name that is not a region/district is added to the search text instead."
          },
          "strictLocality": {
            "title": "Strict region/district",
            "type": "boolean",
            "description": "Firmy.cz treats a region as a search area and also shows nearby businesses. When on, businesses whose district is outside the requested region/district are skipped (not charged).",
            "default": true
          },
          "filters": {
            "title": "Filters (Upřesnit)",
            "uniqueItems": true,
            "type": "array",
            "description": "Firmy.cz listing filters applied to every category and query. Only businesses carrying the feature are returned. Multiple filters are combined with AND.",
            "items": {
              "type": "string",
              "enum": [
                "cykliste-vitani",
                "family-friendly",
                "s-wifi",
                "s-parkovistem",
                "platba-kartou",
                "qr-platba",
                "se-psem",
                "bezbarierove",
                "castecne-bezbarierove",
                "nabijeni-elektromobilu",
                "nyni-otevreno",
                "klimatizovano",
                "stravovani",
                "konferencni-sal",
                "se-salonkem",
                "s-detskym-koutkem",
                "se-zahradkou",
                "prodejna",
                "rezervace-ubytovani"
              ],
              "enumTitles": [
                "Cyklisté vítáni (cyclists welcome)",
                "Family friendly",
                "Wi-Fi",
                "Parkoviště (parking)",
                "Platba kartou (card payment)",
                "QR platba (QR payment)",
                "Se psem (dog friendly)",
                "Bezbariérové (wheelchair accessible)",
                "Částečně bezbariérové (partly accessible)",
                "Nabíjení elektromobilů (EV charging)",
                "Nyní otevřeno (open now)",
                "Klimatizováno (air conditioning)",
                "Stravování (meals)",
                "Konferenční sál (conference hall)",
                "Salonek (private room)",
                "Dětský koutek (kids corner)",
                "Zahrádka (outdoor seating)",
                "Provozovna (has a physical shop)",
                "Rezervace ubytování (online booking)"
              ]
            },
            "default": []
          },
          "extraFilters": {
            "title": "Extra filter slugs",
            "type": "array",
            "description": "Any other Firmy.cz filter or tag slug as it appears in the URL after \"?\" (e.g. svatba, darkove-poukazy, polopenze). Run the listCategories mode to export all slugs available for a category with counts.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Maximum businesses",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop after this many unique businesses in total (across all categories and queries). Each saved business is one business-scraped event.",
            "default": 100
          },
          "maxItemsPerSource": {
            "title": "Maximum per category/query",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Optional cap per category or query (0 = no cap). Useful to sample many categories evenly.",
            "default": 0
          },
          "includeDetails": {
            "title": "Full profile details",
            "type": "boolean",
            "description": "Open each business profile (one API call per business) for all e-mails, all phones, data box ID, social links, all categories, all features/tags, photos, weekly opening hours, AI review summary and structured ratings. Off = listing data only (name, address, GPS, one phone, website, rating, main category, features), faster and with the same price per business.",
            "default": true
          },
          "dedupe": {
            "title": "Deduplicate across categories",
            "type": "boolean",
            "description": "Return each Firmy.cz business only once even if it appears in several categories or queries (recommended). The categories it was found in are listed in foundInCategories. Duplicates are never charged.",
            "default": true
          },
          "includeUnverified": {
            "title": "Include unverified profiles",
            "type": "boolean",
            "description": "Also return businesses whose profile Firmy.cz marks as not verified by the owner (the site shows them too).",
            "default": true
          },
          "enrichAres": {
            "title": "Add-on: ARES registry data",
            "type": "boolean",
            "description": "Look up the IČO in the Czech business register (ARES): official name, legal form, registered office, founding date, active/dissolved, VAT ID and VAT status, NACE codes, employee-count category. Charged as one ares-enriched event only when the record is found.",
            "default": false
          },
          "verifyWebsite": {
            "title": "Add-on: website check",
            "type": "boolean",
            "description": "Fetch the company homepage once: HTTP status, final URL after redirects, HTTPS, title, meta description, language, e-mails/phones/social links found on the page, e-shop and online-booking detection, contact form, CMS. Charged as one website-verified event only when the site answers.",
            "default": false
          },
          "excludeIds": {
            "title": "Skip Firmy.cz IDs",
            "type": "array",
            "description": "Firmy.cz business IDs (the number at the start of /detail/<id>-…) you already have. They are skipped before the profile is fetched and never charged.",
            "items": {
              "type": "string"
            }
          },
          "includeRegex": {
            "title": "Keep only listings matching regex",
            "type": "string",
            "description": "Case-insensitive regular expression tested against everything visible on the category listing (name, address, city, district, ZIP, main category, features, description, website). Only matching businesses are fetched and charged, e.g. \"Brno|Praha\" or \"Wi-Fi.*Parkoviště\"."
          },
          "excludeRegex": {
            "title": "Skip listings matching regex",
            "type": "string",
            "description": "Same as above, but matching businesses are skipped (not fetched, not charged), e.g. \"penzion|apartm\" or \"s\\.r\\.o\\.\"."
          },
          "cacheHours": {
            "title": "Profile cache (hours)",
            "minimum": 0,
            "maximum": 2160,
            "type": "integer",
            "description": "Full profiles are cached in a named key-value store \"firmy-cz-cache\" in your Apify account and reused by your later runs for this many hours (0 = off). Saves time and load on Firmy.cz when you re-run overlapping categories.",
            "default": 24
          },
          "useSharedCache": {
            "title": "Use shared cache",
            "type": "boolean",
            "description": "Profiles fetched by any user of this actor within your cacheHours are reused (max 14 days old, public profile data only). Set false, or cacheHours to 0, for always-fresh data.",
            "default": true
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "scrape",
              "listCategories"
            ],
            "type": "string",
            "description": "scrape = businesses (default). listCategories = free export of the Firmy.cz category tree (for the categories above or all 12 top-level ones) plus the filters/tags available in each with business counts – no business events are charged.",
            "default": "scrape"
          },
          "categoryDepth": {
            "title": "Category tree depth (listCategories)",
            "minimum": 0,
            "maximum": 4,
            "type": "integer",
            "description": "How many levels below each root category to expand in listCategories mode.",
            "default": 2
          },
          "maxConcurrency": {
            "title": "Concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Parallel requests to Firmy.cz. 5 is polite and fast enough for thousands of businesses per minute; lower it if you see blocked requests in the log.",
            "default": 5
          },
          "requestDelayMs": {
            "title": "Delay between requests (ms)",
            "minimum": 0,
            "maximum": 30000,
            "type": "integer",
            "description": "Random pause of 0.5–1.5× this value before every request.",
            "default": 250
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify datacenter proxy is enough for Firmy.cz and is included in your plan. Switch to residential only if datacenter IPs get blocked.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}