{
  "openapi": "3.0.1",
  "info": {
    "title": "Booli Scraper | Sweden Till salu & Slutpriser",
    "description": "Scrape Booli.se Sweden property data — till salu (for sale), slutpriser (sold prices), nyproduktion, mäklare agents, agencies & BRF. Filter by area, price, rooms & living area. Export Excel/CSV/JSON as a Booli API alternative.",
    "version": "0.1",
    "x-build-id": "gxpqK1XGgQShxcOZK"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lentic_clockss~booli-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lentic_clockss-booli-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/lentic_clockss~booli-scraper/runs": {
      "post": {
        "operationId": "runs-sync-lentic_clockss-booli-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/lentic_clockss~booli-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-lentic_clockss-booli-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": {
          "areaIds": {
            "title": "Area IDs",
            "type": "array",
            "description": "Booli areaIds. Default [2]=Stockholms län. Multiple IDs → one worker call per area, then dedupe.",
            "items": {
              "type": "integer"
            },
            "default": [
              2
            ]
          },
          "location": {
            "title": "Location",
            "type": "string",
            "description": "Area name/slug resolved by worker (e.g. stockholm, goteborg).",
            "default": ""
          },
          "areaSlug": {
            "title": "Area slug",
            "type": "string",
            "description": "Alias of location; also used for /sok/maklare/{areaSlug}.",
            "default": ""
          },
          "channel": {
            "title": "Channel",
            "enum": [
              "till-salu",
              "slutpriser",
              "nyproduktion",
              "maklare",
              "maklarbyra",
              "brf",
              "sale",
              "sold",
              "projects",
              "agents"
            ],
            "type": "string",
            "description": "Listing / agent / BRF channels.",
            "default": "till-salu"
          },
          "objectType": {
            "title": "Object type",
            "type": "string",
            "description": "e.g. Lägenhet, Villa, Radhus, Kedjehus-Parhus-Radhus, Tomt/Mark.",
            "default": ""
          },
          "tenureForm": {
            "title": "Tenure form",
            "type": "string",
            "description": "e.g. Bostadsrätt, Äganderätt, Hyresrätt.",
            "default": ""
          },
          "minListPrice": {
            "title": "Min list price (SEK)",
            "type": "integer",
            "description": "Optional minListPrice filter."
          },
          "maxListPrice": {
            "title": "Max list price (SEK)",
            "type": "integer",
            "description": "Optional maxListPrice filter."
          },
          "minSoldPrice": {
            "title": "Min sold price (SEK)",
            "type": "integer",
            "description": "slutpriser filter."
          },
          "maxSoldPrice": {
            "title": "Max sold price (SEK)",
            "type": "integer",
            "description": "slutpriser filter."
          },
          "minRooms": {
            "title": "Min rooms",
            "type": "number",
            "description": "Minimum rooms filter."
          },
          "maxRooms": {
            "title": "Max rooms",
            "type": "number",
            "description": "Maximum rooms filter."
          },
          "minLivingArea": {
            "title": "Min living area (m²)",
            "type": "integer",
            "description": "Optional minimum living area in square meters."
          },
          "maxLivingArea": {
            "title": "Max living area (m²)",
            "type": "integer",
            "description": "Optional maximum living area in square meters."
          },
          "minPlotArea": {
            "title": "Min plot area (m²)",
            "type": "integer",
            "description": "Optional minimum plot area in square meters."
          },
          "maxPlotArea": {
            "title": "Max plot area (m²)",
            "type": "integer",
            "description": "Optional maximum plot area in square meters."
          },
          "minConstructionYear": {
            "title": "Min construction year",
            "type": "integer",
            "description": "Optional minimum construction year filter."
          },
          "maxConstructionYear": {
            "title": "Max construction year",
            "type": "integer",
            "description": "Optional maximum construction year filter."
          },
          "minSoldDate": {
            "title": "Min sold date",
            "type": "string",
            "description": "YYYYMMDD or YYYY-MM-DD (slutpriser)."
          },
          "maxSoldDate": {
            "title": "Max sold date",
            "type": "string",
            "description": "YYYYMMDD or YYYY-MM-DD (slutpriser)."
          },
          "isNewConstruction": {
            "title": "New construction only",
            "type": "boolean",
            "description": "When true, only include new construction listings."
          },
          "sort": {
            "title": "Sort",
            "type": "string",
            "description": "e.g. listPrice, published, livingArea, rooms, soldPrice, soldDate, listSqmPrice.",
            "default": ""
          },
          "ascending": {
            "title": "Ascending",
            "type": "boolean",
            "description": "Sort ascending when sort is set.",
            "default": false
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum records to emit for this run.",
            "default": 15
          },
          "maxPages": {
            "title": "Max pages",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum SERP pages to scrape (worker-side).",
            "default": 1
          },
          "detailUrls": {
            "title": "Detail URLs",
            "type": "array",
            "description": "Optional detail URLs. maklarbyra without URLs scrapes /maklarbyraer; brf without URLs discovers coops via area listings.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "enrichDetails": {
            "title": "Enrich details",
            "type": "boolean",
            "description": "Open each SERP card LDP / agent profile for lead fields (phone/email). Default on.",
            "default": true
          },
          "enrichHousingCoop": {
            "title": "Enrich housing coop (BRF)",
            "type": "boolean",
            "description": "Follow listing housingCoop → BRF page and merge.",
            "default": false
          },
          "imageLimit": {
            "title": "Image limit",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "Max images per listing (0-20).",
            "default": 5
          },
          "includeRaw": {
            "title": "Include raw Apollo",
            "type": "boolean",
            "description": "Attach raw Apollo/next payload fragments for debugging.",
            "default": false
          },
          "provider": {
            "title": "Scrape provider",
            "type": "string",
            "description": "Leave empty so the worker uses egress SCRAPE_PROVIDER (zyte for Booli SERP). Do not default to patchright — that overrides Zyte and hits Cloudflare."
          },
          "workerBaseUrl": {
            "title": "Worker base URL",
            "type": "string",
            "description": "Override Cloud Run worker base URL (defaults to WORKER_BASE_URL)."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}