{
  "openapi": "3.0.1",
  "info": {
    "title": "BORME Scraper — Spain New Companies & Registry Acts",
    "description": "Daily feed of new Spanish companies from the official BORME: incorporations with corporate purpose, address and capital, plus dissolutions, insolvencies and capital changes. Schedule weekdays with Only-new and pay only for new acts. $1.50/1K.",
    "version": "0.1",
    "x-build-id": "uytLxC29uOis1gSfx"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/icarodata~borme-feed/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-icarodata-borme-feed",
        "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~borme-feed/runs": {
      "post": {
        "operationId": "runs-sync-icarodata-borme-feed",
        "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~borme-feed/run-sync": {
      "post": {
        "operationId": "run-sync-icarodata-borme-feed",
        "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": {
          "startDate": {
            "title": "Start date",
            "type": "string",
            "description": "First publication date to include, YYYY-MM-DD. Leave empty (together with end date) to use the most recent published BORME edition."
          },
          "endDate": {
            "title": "End date",
            "type": "string",
            "description": "Last publication date to include, YYYY-MM-DD. Leave empty to use the start date, or the most recent edition if both dates are empty."
          },
          "provinces": {
            "title": "Provinces",
            "type": "array",
            "description": "Optional INE province codes. Leave empty to include every provincial block published in the selected editions.",
            "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": []
          },
          "actTypes": {
            "title": "Act types",
            "type": "array",
            "description": "Company act types to keep. Appointments (nombramientos, ceses, revocations) are optional and off by default. Even if you enable them, natural-person names are stripped from the text.",
            "items": {
              "type": "string",
              "enum": [
                "constitution",
                "dissolution",
                "bankruptcy",
                "capital_change",
                "appointment"
              ],
              "enumTitles": [
                "Constitutions (constitución)",
                "Dissolutions and extinctions",
                "Bankruptcy / concurso",
                "Capital increases and reductions",
                "Appointments, cessations and revocations (names redacted)"
              ]
            },
            "default": [
              "constitution",
              "dissolution",
              "bankruptcy",
              "capital_change"
            ]
          },
          "keyword": {
            "title": "Keyword",
            "type": "string",
            "description": "Optional case-insensitive filter applied to the company name and the redacted act text (for example a CNAE activity or a street).",
            "default": ""
          },
          "maxItems": {
            "title": "Maximum acts",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum number of company acts to save in this run.",
            "default": 100
          },
          "onlyNewSinceLastRun": {
            "title": "Only new since last run",
            "type": "boolean",
            "description": "If enabled, acts already seen for the same search are skipped. State is stored in the named key-value store 'borme-feed-state' so scheduled runs only return (and bill) new acts. Unchanged acts are not charged.",
            "default": false
          },
          "screenSanctions": {
            "title": "Screen companies against EU/UN/UK sanctions (optional pack)",
            "type": "boolean",
            "description": "Off by default (same output as before). When on, this Actor sends the unique new company names (and CIF when present) to icarodata/eu-sanctions-screening and merges the result into a 'sanctions' object. That Actor bills its own pay-per-event price on your account ($0.005 per name plus a tiny start fee), in addition to this Actor's act event. Natural-person officer names are redacted in this feed and are never sent. Screening aid only, not legal advice.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}