{
  "openapi": "3.0.1",
  "info": {
    "title": "Bazaraki Cyprus Classifieds Scraper",
    "description": "Scrape Bazaraki.com - Cyprus's largest classifieds marketplace with real estate, cars, jobs, electronics and general items. Search by keyword, browse any of the 15 categories, filter by city/price/sort, or fetch specific listings by ID. Get price, seller, images, coordinates and full descriptions.",
    "version": "1.0",
    "x-build-id": "8gkiwvTiCPoz4CQ4w"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawlerbros~bazaraki-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawlerbros-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/crawlerbros~bazaraki-scraper/runs": {
      "post": {
        "operationId": "runs-sync-crawlerbros-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/crawlerbros~bazaraki-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-crawlerbros-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",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "byUrls"
            ],
            "type": "string",
            "description": "What to fetch.",
            "default": "search"
          },
          "searchQuery": {
            "title": "Search query (mode=search)",
            "type": "string",
            "description": "Free-text keyword search, e.g. `iphone`, `toyota`, `apartment`. Leave empty to browse a category unfiltered.",
            "default": ""
          },
          "category": {
            "title": "Category (mode=search)",
            "enum": [
              "all",
              "real-estate-for-sale",
              "real-estate-to-rent",
              "car-motorbikes-boats-and-parts",
              "jobs-and-services",
              "telephones",
              "children-and-babies",
              "clothing-shoes-and-accessories",
              "computers-and-games",
              "electronics-and-appliances",
              "home-gardens-and-pools",
              "hobbies-sports-leisure-and-travel",
              "animals",
              "beauty-and-health",
              "services",
              "business"
            ],
            "type": "string",
            "description": "Restrict results to a top-level category.",
            "default": "all"
          },
          "subcategory": {
            "title": "Subcategory (mode=search)",
            "enum": [
              "",
              "real-estate-for-sale/houses",
              "real-estate-for-sale/apartments-flats",
              "real-estate-for-sale/commercial-property",
              "real-estate-for-sale/plots-of-land",
              "real-estate-for-sale/buildings",
              "real-estate-for-sale/prefabricated-houses",
              "real-estate-for-sale/other",
              "real-estate-to-rent/houses",
              "real-estate-to-rent/apartments-flats",
              "real-estate-to-rent/commercial-property",
              "real-estate-to-rent/plots-of-land",
              "real-estate-to-rent/rooms-flatmates",
              "real-estate-to-rent/short-term",
              "real-estate-to-rent/other",
              "car-motorbikes-boats-and-parts/cars-trucks-and-vans",
              "car-motorbikes-boats-and-parts/car-hire",
              "car-motorbikes-boats-and-parts/motorbikes",
              "car-motorbikes-boats-and-parts/car-parts",
              "car-motorbikes-boats-and-parts/accessories",
              "car-motorbikes-boats-and-parts/motorbikes-and-scooters",
              "car-motorbikes-boats-and-parts/tractors-parts",
              "car-motorbikes-boats-and-parts/trucks",
              "car-motorbikes-boats-and-parts/boats-and-sea",
              "car-motorbikes-boats-and-parts/buses",
              "car-motorbikes-boats-and-parts/vans",
              "car-motorbikes-boats-and-parts/tools-equipment",
              "car-motorbikes-boats-and-parts/lifts-cranes",
              "car-motorbikes-boats-and-parts/trailers",
              "car-motorbikes-boats-and-parts/caravans",
              "car-motorbikes-boats-and-parts/quads",
              "car-motorbikes-boats-and-parts/go-karts",
              "car-motorbikes-boats-and-parts/aeroplanes"
            ],
            "type": "string",
            "description": "Drill down into a Real Estate or Motors subcategory (property type / vehicle type). Overrides `category` when set; leave empty to use the top-level `category` instead.",
            "default": ""
          },
          "city": {
            "title": "City / district (mode=search)",
            "enum": [
              "all",
              "nicosia",
              "limassol",
              "larnaca",
              "paphos",
              "famagusta"
            ],
            "type": "string",
            "description": "Restrict results to a Cyprus city/district.",
            "default": "all"
          },
          "sortBy": {
            "title": "Sort order (mode=search)",
            "enum": [
              "relevant",
              "newest",
              "cheapest",
              "expensive"
            ],
            "type": "string",
            "description": "How to order results.",
            "default": "relevant"
          },
          "minPrice": {
            "title": "Min price (EUR)",
            "minimum": 0,
            "maximum": 50000000,
            "type": "integer",
            "description": "Drop listings priced below this (EUR)."
          },
          "maxPrice": {
            "title": "Max price (EUR)",
            "minimum": 0,
            "maximum": 50000000,
            "type": "integer",
            "description": "Drop listings priced above this (EUR)."
          },
          "bedrooms": {
            "title": "Bedrooms (mode=search, Real Estate)",
            "enum": [
              "",
              "studio",
              "1",
              "2",
              "3",
              "4",
              "5",
              "6"
            ],
            "type": "string",
            "description": "Restrict Real Estate listings to this number of bedrooms. Ignored for non-Real-Estate categories.",
            "default": ""
          },
          "condition": {
            "title": "Condition (mode=search)",
            "enum": [
              "",
              "new",
              "used"
            ],
            "type": "string",
            "description": "Restrict results to new or used items. Supported across most categories (Real Estate, Motors, Electronics, etc.); ignored where Bazaraki doesn't offer a condition attribute for that category.",
            "default": ""
          },
          "startUrls": {
            "title": "Listing URLs (mode=byUrls)",
            "type": "array",
            "description": "Direct Bazaraki.com listing URLs to fetch, e.g. `https://www.bazaraki.com/adv/6659275_iphone/`. A bare numeric ID is not enough — Bazaraki's routing requires the URL's slug.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "includeDetails": {
            "title": "Fetch full detail page per listing (mode=search)",
            "type": "boolean",
            "description": "When on, fetches each listing's detail page for extra fields (category breadcrumb, full description, coordinates, more photos). Slower but more complete.",
            "default": false
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Hard cap on emitted records.",
            "default": 30
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}