{
  "openapi": "3.0.1",
  "info": {
    "title": "Bazaraki.com Category & Subcategory Ad Scraper",
    "description": "Browse Bazaraki.com's classifieds by category or a real estate/motors subcategory, by city and price, or fetch specific ad URLs directly, with coordinates, photo galleries and full characteristics for real estate, cars and more.",
    "version": "1.0",
    "x-build-id": "5hfRqWWvyeMTJZDmO"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/vexaloom-labs~bazaraki-com-category-and-subcategory-ad-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-vexaloom-labs-bazaraki-com-category-and-subcategory-ad-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/vexaloom-labs~bazaraki-com-category-and-subcategory-ad-scraper/runs": {
      "post": {
        "operationId": "runs-sync-vexaloom-labs-bazaraki-com-category-and-subcategory-ad-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/vexaloom-labs~bazaraki-com-category-and-subcategory-ad-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-vexaloom-labs-bazaraki-com-category-and-subcategory-ad-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": "Search / browse listings, or fetch the exact listing and search URLs you already have.",
            "default": "search"
          },
          "searchQuery": {
            "title": "Keyword (mode=search)",
            "type": "string",
            "description": "Free-text keyword, e.g. `iphone`, `toyota`, `apartment`. Leave empty to browse a category unfiltered. Bazaraki caps keyword results at about 1,000 matches; use category + filters for complete lists."
          },
          "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",
              "free-stuff"
            ],
            "type": "string",
            "description": "Browse one of Bazaraki's top-level categories, or all categories when a keyword is given.",
            "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 into a Real Estate or Motors subcategory (property type or vehicle type). Overrides `category` when set.",
            "default": ""
          },
          "city": {
            "title": "District (mode=search)",
            "enum": [
              "all",
              "nicosia",
              "limassol",
              "larnaca",
              "paphos",
              "famagusta"
            ],
            "type": "string",
            "description": "Restrict results to a Cyprus district.",
            "default": "all"
          },
          "sortBy": {
            "title": "Sort order (mode=search)",
            "enum": [
              "relevant",
              "newest",
              "cheapest",
              "expensive"
            ],
            "type": "string",
            "description": "How to order results. Bazaraki always shows paid VIP/TOP ads first within a page, then applies this order.",
            "default": "relevant"
          },
          "minPrice": {
            "title": "Min price (EUR)",
            "minimum": 0,
            "maximum": 50000000,
            "type": "integer",
            "description": "Only keep listings priced at or above this amount (EUR; monthly rent for rentals)."
          },
          "maxPrice": {
            "title": "Max price (EUR)",
            "minimum": 0,
            "maximum": 50000000,
            "type": "integer",
            "description": "Only keep listings priced at or below this amount (EUR; monthly rent for rentals)."
          },
          "bedrooms": {
            "title": "Bedrooms (Real Estate)",
            "enum": [
              "",
              "studio",
              "1",
              "2",
              "3",
              "4",
              "5",
              "6",
              "7",
              "8",
              "9",
              "10"
            ],
            "type": "string",
            "description": "Restrict Real Estate listings to this number of bedrooms. Ignored for categories that do not offer a bedroom filter.",
            "default": ""
          },
          "condition": {
            "title": "Condition",
            "enum": [
              "",
              "new",
              "used",
              "resale",
              "under-construction"
            ],
            "type": "string",
            "description": "Restrict results to new, resale/used, or under-construction items where Bazaraki offers a condition filter (mainly Real Estate and some goods). `used` and `resale` mean the same thing.",
            "default": ""
          },
          "startUrls": {
            "title": "Listing or search URLs (mode=byUrls)",
            "type": "array",
            "description": "Full Bazaraki listing URLs (e.g. `https://www.bazaraki.com/adv/6659275_iphone/`) and/or category or search URLs (filters are kept). A bare numeric ID cannot be fetched because Bazaraki's routing needs the URL's slug.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "includeDetails": {
            "title": "Fetch full detail page per listing",
            "type": "boolean",
            "description": "When on, fetches each listing's detail data for the full description, labeled characteristics, coordinates, seller profile, views/favorites and the complete photo gallery. Slower but much 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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}