{
  "openapi": "3.0.1",
  "info": {
    "title": "Bazaraki Scraper: Cyprus Property, Cars & Classifieds",
    "description": "Scrape Bazaraki.com, Cyprus's biggest classifieds site: property for sale and rent, cars, jobs and every other category. Filter by district, price and keyword or paste any search URL. Export price, bedrooms, m², year, mileage, location, seller and photos to JSON, CSV or Excel.",
    "version": "0.1",
    "x-build-id": "6oAEBJCJL6kGtaNec"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/fayoussef~bazaraki-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-fayoussef-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/fayoussef~bazaraki-scraper/runs": {
      "post": {
        "operationId": "runs-sync-fayoussef-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/fayoussef~bazaraki-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-fayoussef-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": {
          "categories": {
            "title": "Categories",
            "type": "array",
            "description": "Bazaraki categories to scrape. Several are combined with OR. A top-level choice (all) includes every subcategory under it. For a category not listed here (a car make and model, a phone brand, a job type), open it on Bazaraki and paste its URL into Bazaraki search URLs below.",
            "items": {
              "type": "string",
              "enum": [
                "real-estate-for-sale",
                "real-estate-for-sale/apartments-flats",
                "real-estate-for-sale/houses",
                "real-estate-for-sale/plots-of-land",
                "real-estate-for-sale/commercial-property",
                "real-estate-for-sale/buildings",
                "real-estate-to-rent",
                "real-estate-to-rent/apartments-flats",
                "real-estate-to-rent/houses",
                "real-estate-to-rent/commercial-property",
                "real-estate-to-rent/rooms-flatmates",
                "real-estate-to-rent/short-term",
                "car-motorbikes-boats-and-parts",
                "car-motorbikes-boats-and-parts/cars-trucks-and-vans",
                "car-motorbikes-boats-and-parts/motorbikes",
                "car-motorbikes-boats-and-parts/vans",
                "car-motorbikes-boats-and-parts/trucks",
                "car-motorbikes-boats-and-parts/boats-and-sea",
                "car-motorbikes-boats-and-parts/car-parts",
                "car-motorbikes-boats-and-parts/car-hire",
                "jobs-and-services",
                "services",
                "business",
                "business/business-for-sale",
                "telephones",
                "telephones/mobile-phones",
                "computers-and-games",
                "electronics-and-appliances",
                "home-gardens-and-pools",
                "home-gardens-and-pools/furniture-and-accessories",
                "hobbies-sports-leisure-and-travel",
                "children-and-babies",
                "clothing-shoes-and-accessories",
                "animals",
                "beauty-and-health"
              ],
              "enumTitles": [
                "Real Estate for sale (all)",
                "Real Estate for sale > Apartments, flats",
                "Real Estate for sale > Houses",
                "Real Estate for sale > Plots of land",
                "Real Estate for sale > Commercial property",
                "Real Estate for sale > Residential buildings",
                "Real Estate to rent (all)",
                "Real Estate to rent > Apartments, flats",
                "Real Estate to rent > Houses",
                "Real Estate to rent > Commercial property",
                "Real Estate to rent > Rooms, flatmates",
                "Real Estate to rent > Short term",
                "Motors (all)",
                "Motors > Cars",
                "Motors > Motorbikes",
                "Motors > Vans",
                "Motors > Trucks, truck parts",
                "Motors > Boats, sailing, marine equipment",
                "Motors > Auto parts",
                "Motors > Car rentals",
                "Jobs (all)",
                "Services (all)",
                "Business (all)",
                "Business > Businesses for sale",
                "Mobile phones, communication (all)",
                "Mobile phones, communication > Mobile phones",
                "Computers, gaming (all)",
                "Electronics, appliances (all)",
                "Home, garden, pool (all)",
                "Home, garden, pool > Furniture",
                "Hobbies, sports, leisure (all)",
                "Kids' stuff (all)",
                "Clothes, footwear, accessories (all)",
                "Animals, pets (all)",
                "Health, beauty (all)"
              ]
            }
          },
          "cities": {
            "title": "Districts",
            "type": "array",
            "description": "Only listings in these districts. Several are combined with OR. Leave empty for the whole of Cyprus.",
            "items": {
              "type": "string",
              "enum": [
                "Nicosia",
                "Limassol",
                "Larnaca",
                "Paphos",
                "Famagusta"
              ],
              "enumTitles": [
                "Nicosia",
                "Limassol",
                "Larnaca",
                "Paphos",
                "Famagusta"
              ]
            }
          },
          "search_query": {
            "title": "Keyword",
            "type": "string",
            "description": "Only listings matching these words (`sea view`, `iphone 15`, `toyota hilux`). Bazaraki's keyword search returns only its 1,000 best matches before the district and price filters apply, so for a complete list leave this empty and use categories, districts and price."
          },
          "price_min": {
            "title": "Price from",
            "minimum": 0,
            "type": "integer",
            "description": "Lowest price in euros (the monthly rent for rentals)."
          },
          "price_max": {
            "title": "Price to",
            "minimum": 0,
            "type": "integer",
            "description": "Highest price in euros (the monthly rent for rentals)."
          },
          "sort": {
            "title": "Sort by",
            "enum": [
              "newest",
              "cheapest",
              "expensive"
            ],
            "type": "string",
            "description": "Order of the results, which decides which listings you get when Max results stops the run early.",
            "default": "newest"
          },
          "max_items": {
            "title": "Max results",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many listings in total. Leave empty to scrape every listing that matches."
          },
          "start_urls": {
            "title": "Bazaraki search URLs",
            "type": "array",
            "description": "One Bazaraki page per line: a category or search page (`https://www.bazaraki.com/real-estate-for-sale/houses/lemesos-district-limassol/?price_max=500000`) or a single listing (`https://www.bazaraki.com/adv/6426534_3-bedroom-apartment-for-sale/`). Price, keyword, sort and attribute filters in the URL are kept. URLs from other sites are rejected.",
            "items": {
              "type": "string"
            }
          },
          "fetch_details": {
            "title": "Fetch listing details",
            "type": "boolean",
            "description": "Open each listing for the extra fields: seller type (business or private), company and legal name, the agent's own reference, price per m², VIN, WhatsApp and Viber. One extra request per listing, so the run takes longer.",
            "default": false
          },
          "only_new": {
            "title": "Only new listings",
            "type": "boolean",
            "description": "Monitoring mode for scheduled runs: return only listings that earlier runs of the same search did not see. The first run returns everything and remembers it. Paid plans only.",
            "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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}