{
  "openapi": "3.0.1",
  "info": {
    "title": "BOE Subastas Scraper — Spain Property & Vehicle Auctions",
    "description": "Official Spanish public auctions from subastas.boe.es: judicial, notarial, AEAT and Seguridad Social. Appraisal value, deposit, dates, province and city. Schedule daily with Only-new and pay only for new auctions. $2.50 per 1,000.",
    "version": "0.1",
    "x-build-id": "lAEeJ45QBDpPAOLZO"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/icarodata~boe-subastas/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-icarodata-boe-subastas",
        "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/icarodata~boe-subastas/runs": {
      "post": {
        "operationId": "runs-sync-icarodata-boe-subastas",
        "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/icarodata~boe-subastas/run-sync": {
      "post": {
        "operationId": "run-sync-icarodata-boe-subastas",
        "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": {
          "provinces": {
            "title": "Provinces",
            "type": "array",
            "description": "INE province codes to search. Leave empty to search all provinces. The official portal accepts one province per query; the Actor loops when several are selected.",
            "items": {
              "type": "string",
              "enum": [
                "01",
                "02",
                "03",
                "04",
                "05",
                "06",
                "07",
                "08",
                "09",
                "10",
                "11",
                "12",
                "13",
                "14",
                "15",
                "16",
                "17",
                "18",
                "19",
                "20",
                "21",
                "22",
                "23",
                "24",
                "25",
                "26",
                "27",
                "28",
                "29",
                "30",
                "31",
                "32",
                "33",
                "34",
                "35",
                "36",
                "37",
                "38",
                "39",
                "40",
                "41",
                "42",
                "43",
                "44",
                "45",
                "46",
                "47",
                "48",
                "49",
                "50",
                "51",
                "52"
              ],
              "enumTitles": [
                "Araba/Álava (01)",
                "Albacete (02)",
                "Alicante/Alacant (03)",
                "Almería (04)",
                "Ávila (05)",
                "Badajoz (06)",
                "Illes Balears (07)",
                "Barcelona (08)",
                "Burgos (09)",
                "Cáceres (10)",
                "Cádiz (11)",
                "Castellón/Castelló (12)",
                "Ciudad Real (13)",
                "Córdoba (14)",
                "A Coruña (15)",
                "Cuenca (16)",
                "Girona (17)",
                "Granada (18)",
                "Guadalajara (19)",
                "Gipuzkoa (20)",
                "Huelva (21)",
                "Huesca (22)",
                "Jaén (23)",
                "León (24)",
                "Lleida (25)",
                "La Rioja (26)",
                "Lugo (27)",
                "Madrid (28)",
                "Málaga (29)",
                "Murcia (30)",
                "Navarra (31)",
                "Ourense (32)",
                "Asturias (33)",
                "Palencia (34)",
                "Las Palmas (35)",
                "Pontevedra (36)",
                "Salamanca (37)",
                "Santa Cruz de Tenerife (38)",
                "Cantabria (39)",
                "Segovia (40)",
                "Sevilla (41)",
                "Soria (42)",
                "Tarragona (43)",
                "Teruel (44)",
                "Toledo (45)",
                "Valencia/València (46)",
                "Valladolid (47)",
                "Bizkaia (48)",
                "Zamora (49)",
                "Zaragoza (50)",
                "Ceuta (51)",
                "Melilla (52)"
              ]
            },
            "default": []
          },
          "assetType": {
            "title": "Asset type",
            "enum": [
              "",
              "property",
              "vehicle",
              "other"
            ],
            "type": "string",
            "description": "Type of asset being auctioned.",
            "default": "property"
          },
          "status": {
            "title": "Status",
            "enum": [
              "",
              "upcoming",
              "open",
              "closed"
            ],
            "type": "string",
            "description": "Auction status on the official portal. Closed covers auctions concluded on the portal and those finalized by the managing authority.",
            "default": "open"
          },
          "auctionTypes": {
            "title": "Auction types",
            "type": "array",
            "description": "Origin of the auction on the official portal. Seguridad Social auctions are detected from the authority name when present.",
            "items": {
              "type": "string",
              "enum": [
                "judicial",
                "notarial",
                "aeat",
                "other_tax",
                "administrative_general",
                "seguridad_social"
              ],
              "enumTitles": [
                "Judicial",
                "Notarial",
                "AEAT (Spanish Tax Agency)",
                "Other tax administrations",
                "General administrative auctions",
                "Seguridad Social"
              ]
            },
            "default": []
          },
          "minAppraisalValue": {
            "title": "Minimum appraisal value (EUR)",
            "minimum": 0,
            "type": "number",
            "description": "Keep auctions whose appraisal (tasación) is at least this amount in euros. If tasación is missing or zero, the official auction value (valor subasta) is used instead."
          },
          "maxAppraisalValue": {
            "title": "Maximum appraisal value (EUR)",
            "minimum": 0,
            "type": "number",
            "description": "Keep auctions whose appraisal (tasación) is at most this amount in euros. If tasación is missing or zero, the official auction value (valor subasta) is used instead."
          },
          "maxItems": {
            "title": "Maximum auctions",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum number of auctions to save in this run.",
            "default": 50
          },
          "onlyNewSinceLastRun": {
            "title": "Only new since last run",
            "type": "boolean",
            "description": "If enabled, auctions already seen for the same search are skipped. State is stored in the named key-value store 'boe-subastas-state' so scheduled runs only return (and bill) new auctions. Unchanged auctions are not charged.",
            "default": false
          },
          "enrichWithCatastro": {
            "title": "Enrich with Spain Property Enricher (optional pack)",
            "type": "boolean",
            "description": "Off by default (same output as before). When on, this Actor calls icarodata/spain-property-enricher once for the cadastral references found in the auctions and merges use, surfaces, year built and coordinates. The enricher bills its own pay-per-event price on your account ($0.004 per property plus a tiny start fee), in addition to this Actor's auction event. Auctions without a cadastral reference are not sent. Up to 5 units per parcel. Attribution: Fuente: Dirección General del Catastro.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}