{
  "openapi": "3.0.1",
  "info": {
    "title": "Bazos Scraper - Bazos.cz, .sk, .pl, .at Listings & Prices",
    "description": "Bazos scraper for bazos.cz, bazos.sk, bazos.pl and bazos.at: newest second-hand listings by section or sub-category, filtered by keywords, price, place and date. One row per ad: title, price, condition, place, postcode, date, views, photos, URL. Scheduled new-ad alerts. No login. $0.30 per 1,000.",
    "version": "1.0",
    "x-build-id": "QzLyvovyO0kp5f27O"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/rel8ble~bazos-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-rel8ble-bazos-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/rel8ble~bazos-scraper/runs": {
      "post": {
        "operationId": "runs-sync-rel8ble-bazos-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/rel8ble~bazos-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-rel8ble-bazos-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": {
          "countries": {
            "title": "Bazos sites",
            "type": "array",
            "description": "Optional. Which Bazos country sites to read: \"cz\" (bazos.cz, prices in CZK), \"sk\" (bazos.sk, EUR), \"pl\" (bazos.pl, PLN), \"at\" (bazos.at, EUR). Several = each section is read on each site. Default [\"cz\"].",
            "items": {
              "type": "string",
              "enum": [
                "cz",
                "sk",
                "pl",
                "at"
              ],
              "enumTitles": [
                "bazos.cz (Czech Republic, CZK)",
                "bazos.sk (Slovakia, EUR)",
                "bazos.pl (Poland, PLN)",
                "bazos.at (Austria, EUR)"
              ]
            },
            "default": [
              "cz"
            ]
          },
          "sections": {
            "title": "Sections or sub-categories",
            "type": "array",
            "description": "Optional. Bazos sections (the sub-domain, e.g. \"elektro\" for elektro.bazos.cz) or \"section/sub-category\" (the URL path, e.g. \"elektro/kavovary\", \"mobil/apple\", \"auto/skoda\"), one per line. Names also work (\"Kávovary\"). Sections on bazos.cz: zvirata, deti, reality, prace, auto, motorky, stroje, dum, pc, mobil, foto, elektro, sport, hudba, vstupenky, knihy, nabytek, obleceni, sluzby, ostatni. bazos.sk: zvierata, deti, reality, praca, auto, motocykle, stroje, dom, pc, mobil, foto, elektro, sport, hudba, vstupenky, knihy, nabytok, oblecenie, sluzby, ostatne. bazos.pl: zwierzeta, dzieci, nieruchomosci, praca, auto, motocykle, maszyny, dom, komputer, telefon, foto, elektro, sport, muzyka, bilety, ksiazki, meble, moda, uslugi, pozostale. bazos.at: tiere, kinder, immobilien, jobs, auto, motorrader, maschinen, haus, pc, handy, foto, elektro, sport, musik, eintrittskarten, bucher, mobel, kleidung, dienstleistungen, sonstige. Empty with keywords = every section of each site (slower).",
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "Keywords (filter)",
            "type": "array",
            "description": "Optional. Keep only ads whose title or description start contains every word of at least one line (\"iphone 13\", \"franke\", \"kolo 29\"). Accents and case are ignored. Note: Bazos' own search pages are barred by its robots.txt, so keywords filter the newest listings of the sections you choose instead of calling the site search. Pick a narrow sub-category for best coverage.",
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "type": "array",
            "description": "Optional. Drop ads whose title or description start contains every word of any of these lines, e.g. \"kryt\", \"na dily\", \"koupim\".",
            "items": {
              "type": "string"
            }
          },
          "priceMin": {
            "title": "Minimum price",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. Lowest price in the site currency (CZK on bazos.cz, EUR on bazos.sk / bazos.at, PLN on bazos.pl). Ads without a number (\"Dohodou\", \"V textu\") are left out by any price filter."
          },
          "priceMax": {
            "title": "Maximum price",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. Highest price in the site currency. Empty = no maximum."
          },
          "places": {
            "title": "Places or postcodes",
            "type": "array",
            "description": "Optional. Keep only ads from these places: a town or district as shown on Bazos (\"Praha\", \"Brno\", \"Bratislava\", \"Kraków\") or the start of a postcode (\"1\", \"60\", \"602 00\", \"31-\"). Several = any of them.",
            "items": {
              "type": "string"
            }
          },
          "postedWithinDays": {
            "title": "Posted within (days)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. Only ads dated within this many days (0 = today). Reading stops at the first older ad, so this is also the fastest way to fetch \"everything new since yesterday\". Promoted (TOP) ads carry the date they were last promoted."
          },
          "adType": {
            "title": "Offers or wanted ads",
            "enum": [
              "offer",
              "wanted",
              "any"
            ],
            "type": "string",
            "description": "Optional. \"offer\" (default), \"wanted\" (titles starting with Koupím, Sháním, Kúpim, Hľadám, Kupię, Szukam, Suche, Kaufe) or \"any\".",
            "default": "offer"
          },
          "skipPromoted": {
            "title": "Skip promoted (TOP) ads",
            "type": "boolean",
            "description": "Optional boolean, default false. true = leave out paid \"TOP\" ads, which Bazos pins above the newest ones.",
            "default": false
          },
          "startUrls": {
            "title": "Bazos URLs",
            "type": "array",
            "description": "Optional. URLs copied from bazos.cz / .sk / .pl / .at, one per line: a section (\"https://elektro.bazos.cz/\"), a sub-category (\"https://elektro.bazos.cz/kavovary/\"), a later page (\"https://elektro.bazos.cz/kavovary/40/\"), a place page (\"https://auto.bazos.cz/inzeraty/brno-25/62500/\") or an ad (\"https://elektro.bazos.cz/inzerat/225985295/....php\", saved with full details). Search URLs (search.php, ?hledat=) are skipped because Bazos' robots.txt bars them.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max ads per source",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. Maximum ads saved per source (one site x section, or one URL), integer >= 0. Default 100; 0 = every matching ad within maxPagesPerSource. You pay per ad saved ($0.0003 each), so 1,000 ads = $0.30. Use 10-20 for a quick answer.",
            "default": 100
          },
          "maxPagesPerSource": {
            "title": "Max pages read per source",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Optional. How many listing pages (40 ads each) to read per source before stopping, integer 1-500. Default 50 = the newest 2,000 ads. Raise it when keywords or filters match few ads in a big section. Pages read are free; only saved ads are charged.",
            "default": 50
          },
          "includeDetails": {
            "title": "Include ad details (slower)",
            "type": "boolean",
            "description": "Optional boolean. false (default) = data from the listing pages: title, price, place, postcode, date, views, first photo, description start. true = also open each ad for the full description (phone numbers and e-mails masked), all photo URLs, approximate map position, the sub-category of section-wide results, and a better condition / seller-type reading. Same price per ad, 1 extra request per ad.",
            "default": false
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Optional, advanced. Parallel requests, integer 1-10. Default 3; requests are also paced to stay polite. Leave unset.",
            "default": 3
          },
          "maxRequestRetries": {
            "title": "Max retries per request",
            "minimum": 0,
            "maximum": 15,
            "type": "integer",
            "description": "Optional, advanced. Retries per failed request, integer 0-15; each retry uses a new session. Default 6. Leave unset.",
            "default": 6
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional, advanced. Apify Proxy settings object. Default {\"useApifyProxy\": true} (datacenter proxy). Leave unset.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}