{
  "openapi": "3.0.1",
  "info": {
    "title": "BOE Subastas Scraper: Spain Property Auctions",
    "description": "Scrape Spain's official BOE Subastas portal (subastas.boe.es) without a browser. Search by province or town. Extract auctions with tasación, discount vs appraisal, deposit %, days until close, risk flags, cadastral links, expanded lots, an AUCTION_REPORT, and monitor mode.",
    "version": "0.1",
    "x-build-id": "MmIgLZIC1jwub6b3B"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/kareninatech~boe-subastas-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-kareninatech-boe-subastas-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/kareninatech~boe-subastas-scraper/runs": {
      "post": {
        "operationId": "runs-sync-kareninatech-boe-subastas-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/kareninatech~boe-subastas-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-kareninatech-boe-subastas-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": {
          "province": {
            "title": "Province",
            "type": "string",
            "description": "A Spanish province as you would type it: Madrid, Barcelona, Valencia, Málaga, Sevilla, A Coruña... Type Spain or all for the whole country.",
            "default": "Madrid"
          },
          "municipality": {
            "title": "Municipality",
            "type": "string",
            "description": "A town or city name, for example Alcalá de Henares or Torrevieja. Combined with the province when both are set."
          },
          "location": {
            "title": "Location (optional shorthand)",
            "type": "string",
            "description": "Type a province, a town, or 'Madrid, Alcalá de Henares'. When you fill this, it is used together with (or instead of) the fields above."
          },
          "locations": {
            "title": "More locations",
            "type": "array",
            "description": "Extra places to search in the same run. max_items is shared between all searches.",
            "items": {
              "type": "string"
            }
          },
          "asset_type": {
            "title": "Asset type",
            "enum": [
              "inmuebles",
              "vehiculos",
              "muebles",
              "all"
            ],
            "type": "string",
            "description": "What to search for, for example housing, vehicles or other assets.",
            "default": "inmuebles"
          },
          "property_subtype": {
            "title": "Property or vehicle subtype (optional)",
            "enum": [
              "",
              "vivienda",
              "local",
              "garaje",
              "trastero",
              "nave",
              "solar",
              "finca rustica",
              "turismos",
              "industriales"
            ],
            "type": "string",
            "description": "Narrower type when you selected property or vehicles. Leave empty for every subtype."
          },
          "status": {
            "title": "Status",
            "enum": [
              "abierta",
              "proxima",
              "concluida",
              "finalizada",
              "suspendida",
              "cancelada",
              "all"
            ],
            "type": "string",
            "description": "Auction status. 'Open' is Celebrándose. Concluded and finalised searches default to the last 30 days so BOE does not reject the query as too broad.",
            "default": "abierta"
          },
          "auction_type": {
            "title": "Auction origin",
            "enum": [
              "all",
              "judicial",
              "notarial",
              "aeat",
              "other_tax",
              "administrative",
              "social_security"
            ],
            "type": "string",
            "description": "Who is running the auction. Other tax offices are regional haciendas (Recaudación Tributaria). There may be no open Social Security auctions on a given day.",
            "default": "all"
          },
          "min_value": {
            "title": "Min auction value (€)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only auctions whose valor de subasta is at least this amount. Applied after the detail pages are read."
          },
          "max_value": {
            "title": "Max auction value (€)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only auctions whose valor de subasta is at most this amount."
          },
          "end_date_from": {
            "title": "End date from (YYYY-MM-DD)",
            "type": "string",
            "description": "Only auctions scheduled to close on or after this date."
          },
          "end_date_to": {
            "title": "End date to (YYYY-MM-DD)",
            "type": "string",
            "description": "Only auctions scheduled to close on or before this date."
          },
          "search_url": {
            "title": "BOE search URL (optional)",
            "type": "string",
            "description": "Paste a search page from subastas.boe.es with your filters already set. When you use URLs, the filters above are ignored."
          },
          "start_urls": {
            "title": "More search or auction URLs",
            "type": "array",
            "description": "Extra subastas.boe.es search pages or detalleSubasta.php links.",
            "items": {
              "type": "string"
            }
          },
          "auction_ids": {
            "title": "Auction IDs",
            "type": "array",
            "description": "Official identifiers such as SUB-JA-2026-260951. The Actor opens those auctions directly.",
            "items": {
              "type": "string"
            }
          },
          "max_items": {
            "title": "Max auctions",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum number of dataset rows to return. With one_row_per_lot this is a row limit, not an auction limit.",
            "default": 40
          },
          "max_pages": {
            "title": "Max search pages",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Safety cap on BOE result pages (each page has up to 200 auctions). Default 50."
          },
          "include_lots": {
            "title": "Fetch every lot",
            "type": "boolean",
            "description": "When an auction has several lots, open each lot and include its value, deposit, cadastral reference and risk flags. Turn off to only read lot 1 (faster).",
            "default": true
          },
          "one_row_per_lot": {
            "title": "One dataset row per lot",
            "type": "boolean",
            "description": "By default there is one row per auction and the lots array is filled in. Turn this on to emit a separate row for every lot.",
            "default": false
          },
          "ending_soon_hours": {
            "title": "Ending-soon window (hours)",
            "minimum": 1,
            "maximum": 720,
            "type": "integer",
            "description": "Auctions that close within this many hours are flagged ending_soon. Default 48.",
            "default": 48
          },
          "monitor_mode": {
            "title": "Monitor mode",
            "type": "boolean",
            "description": "Remember auctions between runs and only emit new or changed ones (status, close date, bid or auction value). Unchanged auctions are skipped.",
            "default": false
          },
          "monitor_key": {
            "title": "Monitor key",
            "type": "string",
            "description": "Optional name for the memory store (default: 'default'). Use a different key for each saved search so they do not overwrite each other."
          },
          "emit_removed": {
            "title": "Emit removed auctions",
            "type": "boolean",
            "description": "In monitor mode, also emit a row for auctions that were in the last run but are no longer in a complete search. Only happens when every result page was reached.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Optional. The official site usually works from a datacenter IP without a proxy."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}