{
  "openapi": "3.0.1",
  "info": {
    "title": "Spain Regional Public Tenders – Licitaciones autonómicas",
    "description": "Spanish public tenders / licitaciones España: regional platforms via official PLACSP open data. Filter by CPV, region, amount, keywords. Only-new alerts.",
    "version": "0.1",
    "x-build-id": "rCKdDdjhtwiPnGXFr"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/carprr~spain-regional-public-tenders/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-carprr-spain-regional-public-tenders",
        "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/carprr~spain-regional-public-tenders/runs": {
      "post": {
        "operationId": "runs-sync-carprr-spain-regional-public-tenders",
        "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/carprr~spain-regional-public-tenders/run-sync": {
      "post": {
        "operationId": "run-sync-carprr-spain-regional-public-tenders",
        "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": {
          "palabrasClave": {
            "title": "Keywords · Palabras clave",
            "type": "array",
            "description": "Returns tenders whose subject contains at least one of these words or phrases. Case- and accent-insensitive. Text is matched literally in the language of publication (Spanish, Catalan, Basque, Galician), so add variants if needed. · Devuelve las licitaciones cuyo objeto contiene al menos una de estas palabras o frases. No distingue mayúsculas ni tildes. Se compara con el texto en su idioma original: añade variantes en catalán, euskera o gallego si las necesitas.",
            "items": {
              "type": "string"
            }
          },
          "comunidades": {
            "title": "Regions (place of performance) · Comunidades autónomas",
            "uniqueItems": true,
            "type": "array",
            "description": "Region where the contract is performed, by the tender's NUTS code (ES51 = Catalonia, ES21 = Basque Country, ES30 = Madrid…). Empty = all. Tenders without a NUTS code are excluded when this filter is used. · Comunidad autónoma donde se ejecuta el contrato, según el código NUTS. Vacío = todas. Las licitaciones sin código NUTS se excluyen cuando se usa este filtro.",
            "items": {
              "type": "string",
              "enum": [
                "ES61",
                "ES24",
                "ES12",
                "ES53",
                "ES70",
                "ES13",
                "ES41",
                "ES42",
                "ES51",
                "ES52",
                "ES43",
                "ES11",
                "ES30",
                "ES62",
                "ES22",
                "ES21",
                "ES23",
                "ES63",
                "ES64"
              ],
              "enumTitles": [
                "Andalucía",
                "Aragón",
                "Asturias",
                "Illes Balears",
                "Canarias",
                "Cantabria",
                "Castilla y León",
                "Castilla-La Mancha",
                "Cataluña",
                "Comunitat Valenciana",
                "Extremadura",
                "Galicia",
                "Comunidad de Madrid",
                "Región de Murcia",
                "Navarra",
                "País Vasco",
                "La Rioja",
                "Ceuta",
                "Melilla"
              ]
            }
          },
          "cpv": {
            "title": "CPV codes (prefixes) · Códigos CPV (prefijos)",
            "type": "array",
            "description": "CPV code prefixes (EU Common Procurement Vocabulary), 2 to 8 digits. For example, \"72\" returns all IT services and \"45233\" road works. · Prefijos de código CPV (vocabulario común de contratos públicos), de 2 a 8 dígitos. Por ejemplo, «72» devuelve todos los servicios informáticos y «45233» las obras de carreteras.",
            "items": {
              "type": "string",
              "pattern": "^[0-9]{2,8}$"
            }
          },
          "estado": {
            "title": "Tender status · Estado de la licitación",
            "uniqueItems": true,
            "type": "array",
            "description": "Statuses to return. Empty = all. To get only tenders still open for bids, choose PUB. Codes: PRE = prior notice, PUB = open for bids, EV = pending award, ADJ = awarded, RES = resolved, ANUL = cancelled. · Estados que se devuelven. Vacío = todos. Para recibir solo licitaciones a las que aún se puede presentar oferta, elige «En plazo» (PUB).",
            "items": {
              "type": "string",
              "enum": [
                "PRE",
                "PUB",
                "EV",
                "ADJ",
                "RES",
                "ANUL"
              ],
              "enumTitles": [
                "PRE · Anuncio previo (prior notice)",
                "PUB · En plazo (open for bids)",
                "EV · Pendiente de adjudicación (pending award)",
                "ADJ · Adjudicada (awarded)",
                "RES · Resuelta (resolved)",
                "ANUL · Anulada (cancelled)"
              ]
            }
          },
          "importeMin": {
            "title": "Minimum amount excl. VAT (EUR) · Importe mínimo sin IVA",
            "minimum": 0,
            "type": "number",
            "description": "Minimum base budget excluding taxes, in euros. Tenders without an amount are excluded when this filter is used. · Presupuesto base sin impuestos mínimo. Las licitaciones sin importe se excluyen cuando se usa este filtro."
          },
          "importeMax": {
            "title": "Maximum amount excl. VAT (EUR) · Importe máximo sin IVA",
            "minimum": 0,
            "type": "number",
            "description": "Maximum base budget excluding taxes, in euros. Must be greater than or equal to the minimum. Tenders without an amount are excluded when this filter is used. · Presupuesto base sin impuestos máximo; debe ser mayor o igual que el mínimo. Las licitaciones sin importe se excluyen cuando se usa este filtro."
          },
          "fechaDesde": {
            "title": "Updated since · Actualizadas desde",
            "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
            "type": "string",
            "description": "Returns only tenders published or updated on or after this date (YYYY-MM-DD). Empty = the most recent ones, up to the limits below. · Devuelve solo licitaciones publicadas o actualizadas desde esta fecha (AAAA-MM-DD). Vacío = las más recientes hasta alcanzar los límites."
          },
          "soloNovedades": {
            "title": "Only new tenders (alert mode) · Solo novedades (modo alerta)",
            "type": "boolean",
            "description": "Remembers the tenders already delivered in earlier runs with exactly the same filters and returns only tenders not delivered before. Meant for scheduled runs. Later status changes of an already delivered tender are not sent again. · Recuerda las licitaciones ya entregadas en ejecuciones anteriores con exactamente los mismos filtros y devuelve solo las que no se habían entregado. Pensado para ejecuciones programadas. No reenvía los cambios de estado de una licitación ya entregada.",
            "default": false
          },
          "maxResultados": {
            "title": "Maximum results · Máximo de resultados",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum number of tenders delivered (and charged) in this run. · Número máximo de licitaciones que se entregan (y se cobran) en esta ejecución.",
            "default": 20
          },
          "maxPaginas": {
            "title": "Maximum feed pages · Máximo de páginas del feed",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum number of pages of the official feed to scan, newest first. Each page holds up to 500 tenders. Raise it for very restrictive filters or an old \"Updated since\" date. · Páginas del feed oficial que se revisan como máximo, de la más reciente hacia atrás. Cada página contiene hasta 500 licitaciones. Súbelo si usas filtros muy restrictivos o una «fechaDesde» lejana.",
            "default": 10
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}