{
  "openapi": "3.0.1",
  "info": {
    "title": "Bazaraki Scraper: Cyprus Classifieds Monitor",
    "description": "Scrape Bazaraki.com classifieds for Cyprus real estate, cars, jobs, electronics, and marketplace data. Search by keyword, city, category, or price; export listings with sellers, images, locations, and price-change signals.",
    "version": "0.1",
    "x-build-id": "OIcSxVjeLzYYaTg9F"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/getascraper~bazaraki-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-getascraper-bazaraki-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/getascraper~bazaraki-scraper/runs": {
      "post": {
        "operationId": "runs-sync-getascraper-bazaraki-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/getascraper~bazaraki-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-getascraper-bazaraki-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": {
          "startUrls": {
            "title": "Listing or Search URLs",
            "type": "array",
            "description": "Optional Bazaraki listing or search URLs. When supplied, these URLs are scraped directly and take precedence over guided filters.",
            "default": [],
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "searchQueries": {
            "title": "Search Queries",
            "type": "array",
            "description": "Optional keywords such as iphone 15, toyota, or apartment. Each keyword creates a separate source slice.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "categoryPaths": {
            "title": "Category Paths",
            "type": "array",
            "description": "Bazaraki category paths, for example real-estate-for-sale/apartments-flats or car-motorbikes-boats/cars.",
            "default": [
              "real-estate-for-sale/apartments-flats"
            ],
            "items": {
              "type": "string"
            }
          },
          "cities": {
            "title": "Cities or Districts",
            "type": "array",
            "description": "Optional Cyprus city filters such as nicosia, limassol, larnaca, paphos, or famagusta.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "language": {
            "title": "Page Language",
            "enum": [
              "en",
              "el",
              "ru"
            ],
            "type": "string",
            "description": "Language path used when Bazaraki provides a localized page.",
            "default": "en"
          },
          "sortBy": {
            "title": "Sort Order",
            "enum": [
              "relevant",
              "newest",
              "oldest",
              "cheapest",
              "expensive"
            ],
            "type": "string",
            "description": "Requested source sort order when the selected page supports it.",
            "default": "newest"
          },
          "minPrice": {
            "title": "Minimum Price",
            "minimum": 0,
            "maximum": 100000000,
            "type": "integer",
            "description": "Keep listings priced at or above this EUR amount. Use 0 for no minimum.",
            "default": 0
          },
          "maxPrice": {
            "title": "Maximum Price",
            "minimum": 0,
            "maximum": 100000000,
            "type": "integer",
            "description": "Keep listings priced at or below this EUR amount. Use 0 for no maximum.",
            "default": 0
          },
          "condition": {
            "title": "Condition",
            "enum": [
              "",
              "new",
              "used"
            ],
            "type": "string",
            "description": "Optional condition filter where the selected Bazaraki category supports it.",
            "default": ""
          },
          "bedrooms": {
            "title": "Bedrooms",
            "enum": [
              "",
              "studio",
              "1",
              "2",
              "3",
              "4",
              "5",
              "6"
            ],
            "type": "string",
            "description": "Optional real-estate bedroom filter. Studio, 1 to 5 bedrooms, or 6+ bedrooms.",
            "default": ""
          },
          "maxPages": {
            "title": "Maximum Pages",
            "minimum": 0,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum listing pages per generated source. Use 0 only when you deliberately want to follow pagination until it ends.",
            "default": 3
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Apify Proxy is recommended for reliable access to Bazaraki. Datacenter proxy is the default; residential can be selected in the Console when needed.",
            "default": {
              "useApifyProxy": true
            }
          },
          "requestDelayMs": {
            "title": "Request Delay",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Delay between source requests in milliseconds. Increase this when running larger scheduled slices.",
            "default": 500
          },
          "maxConcurrency": {
            "title": "Request Concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Number of simultaneous HTTP requests. Keep this modest to reduce throttling and improve data quality.",
            "default": 3
          },
          "includeDetails": {
            "title": "Fetch Detail Pages",
            "type": "boolean",
            "description": "Fetch each listing's full public detail record for descriptions, coordinates, gallery, seller signals, and typed characteristics.",
            "default": true
          },
          "includeDescriptionHtml": {
            "title": "Include Description HTML",
            "type": "boolean",
            "description": "Keep the source-formatted description HTML in addition to cleaned description text.",
            "default": false
          },
          "monitorKey": {
            "title": "Monitoring Key",
            "type": "string",
            "description": "Optional stable key for scheduled change detection, such as limassol-apartments. The same key reuses its prior snapshot.",
            "default": ""
          },
          "onlyNew": {
            "title": "Only New Listings",
            "type": "boolean",
            "description": "When monitoringKey is set, emit only listings not seen in the previous snapshot.",
            "default": false
          },
          "onlyPriceChanged": {
            "title": "Only Price Changes",
            "type": "boolean",
            "description": "When monitoringKey is set, emit only listings whose observed price changed from the previous snapshot.",
            "default": false
          },
          "maxItems": {
            "title": "Maximum Listings",
            "minimum": 0,
            "maximum": 2000,
            "type": "integer",
            "description": "Maximum final dataset rows. Use 0 only as an explicit unlimited opt-in. Detail requests remain bounded separately.",
            "default": 25
          },
          "maxDetailRequests": {
            "title": "Maximum Detail Requests",
            "minimum": 0,
            "maximum": 2000,
            "type": "integer",
            "description": "Maximum detail records collected in one run. Use this to control the size and cost of enriched searches.",
            "default": 25
          },
          "debug": {
            "title": "Debug Logging",
            "type": "boolean",
            "description": "Write additional parser diagnostics to the run log. No raw credentials or private contact data are logged.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}