{
  "openapi": "3.0.1",
  "info": {
    "title": "Spain Public Tender Alerts by CPV | Licitaciones por CPV",
    "description": "Esto no es un extractor de licitaciones; los hay y son buenos. Esto es lo contrario: de 800 licitaciones al día te deja las tres que encajan con tu CPV, tu provincia y tu tamaño, y te dice por qué.\n\nalertas de licitaciones públicas · licitaciones por CPV · alertas licitaciones por provincia",
    "version": "1.0",
    "x-build-id": "TsCdpaY1GW49Y2TbB"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/aurorasys~spain-public-tender-alerts-cpv/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-aurorasys-spain-public-tender-alerts-cpv",
        "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/aurorasys~spain-public-tender-alerts-cpv/runs": {
      "post": {
        "operationId": "runs-sync-aurorasys-spain-public-tender-alerts-cpv",
        "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/aurorasys~spain-public-tender-alerts-cpv/run-sync": {
      "post": {
        "operationId": "run-sync-aurorasys-spain-public-tender-alerts-cpv",
        "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": {
          "familias": {
            "title": "De que va tu empresa",
            "type": "array",
            "description": "Elige una o varias. Es la forma facil: por dentro esto son los codigos CPV, pero no hace falta que te los sepas.",
            "items": {
              "type": "string",
              "enum": [
                "catering",
                "consultoria",
                "cultura",
                "energia",
                "formacion",
                "informatica",
                "jardineria",
                "limpieza",
                "obras",
                "sanitario",
                "seguridad",
                "social",
                "suministros",
                "transporte"
              ],
              "enumTitles": [
                "Comidas y catering",
                "Consultoria y servicios profesionales",
                "Cultura y deporte",
                "Energia y climatizacion",
                "Formacion y educacion",
                "Informatica y telecomunicaciones",
                "Jardineria y medio ambiente",
                "Limpieza",
                "Obras y construccion",
                "Sanitario y farmacia",
                "Seguridad y vigilancia",
                "Servicios sociales",
                "Suministros y material",
                "Transporte y vehiculos"
              ]
            },
            "default": []
          },
          "codigos_cpv": {
            "title": "O tus codigos CPV exactos (si te los sabes)",
            "type": "array",
            "description": "Por ejemplo 45212290. Puedes ponerlos con guion, como vienen en los pliegos. Si pones solo los dos primeros digitos (45), te llega toda esa division.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "provincias": {
            "title": "En que provincias trabajas",
            "type": "array",
            "description": "Dejalo vacio para verlas todas. Lo que no diga provincia te llegara igual, marcado.",
            "items": {
              "type": "string",
              "enum": [
                "a coruna",
                "alava",
                "albacete",
                "alicante",
                "almeria",
                "asturias",
                "avila",
                "badajoz",
                "baleares",
                "barcelona",
                "burgos",
                "caceres",
                "cadiz",
                "cantabria",
                "castellon",
                "ceuta",
                "ciudad real",
                "cordoba",
                "cuenca",
                "girona",
                "granada",
                "guadalajara",
                "guipuzcoa",
                "huelva",
                "huesca",
                "jaen",
                "la rioja",
                "las palmas",
                "leon",
                "lleida",
                "lugo",
                "madrid",
                "malaga",
                "melilla",
                "murcia",
                "navarra",
                "ourense",
                "palencia",
                "pontevedra",
                "salamanca",
                "segovia",
                "sevilla",
                "soria",
                "tarragona",
                "tenerife",
                "teruel",
                "toledo",
                "valencia",
                "valladolid",
                "vizcaya",
                "zamora",
                "zaragoza"
              ],
              "enumTitles": [
                "A Coruna",
                "Alava",
                "Albacete",
                "Alicante",
                "Almeria",
                "Asturias",
                "Avila",
                "Badajoz",
                "Baleares",
                "Barcelona",
                "Burgos",
                "Caceres",
                "Cadiz",
                "Cantabria",
                "Castellon",
                "Ceuta",
                "Ciudad Real",
                "Cordoba",
                "Cuenca",
                "Girona",
                "Granada",
                "Guadalajara",
                "Guipuzcoa",
                "Huelva",
                "Huesca",
                "Jaen",
                "La Rioja",
                "Las Palmas",
                "Leon",
                "Lleida",
                "Lugo",
                "Madrid",
                "Malaga",
                "Melilla",
                "Murcia",
                "Navarra",
                "Ourense",
                "Palencia",
                "Pontevedra",
                "Salamanca",
                "Segovia",
                "Sevilla",
                "Soria",
                "Tarragona",
                "Tenerife",
                "Teruel",
                "Toledo",
                "Valencia",
                "Valladolid",
                "Vizcaya",
                "Zamora",
                "Zaragoza"
              ]
            },
            "default": []
          },
          "importe_minimo": {
            "title": "Importe minimo (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "0 = sin minimo. Para no ver contratos que se te quedan pequenos.",
            "default": 0
          },
          "importe_maximo": {
            "title": "Importe maximo (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "0 = sin maximo. Para no ver contratos que se te van de tamano.",
            "default": 0
          },
          "dias": {
            "title": "Cuantos dias hacia atras",
            "minimum": 1,
            "maximum": 90,
            "type": "integer",
            "description": "7 esta bien para el dia a dia. La primera vez pon 30 para ver un mes entero.",
            "default": 7
          },
          "competidores": {
            "title": "Empresas que quieres vigilar",
            "type": "array",
            "description": "Nombres o CIF. Te avisa cuando una de ellas gana algo, y con que baja lo gano. Asi sabes a que precio se esta cerrando lo tuyo.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "incluir_adjudicaciones": {
            "title": "Incluir las ya adjudicadas (para ver precios)",
            "type": "boolean",
            "description": "No te puedes presentar, pero te dicen a cuanto se cerraron contratos como el tuyo.",
            "default": true
          },
          "solo_nuevo": {
            "title": "Solo lo que no me hayas avisado ya",
            "type": "boolean",
            "description": "Recomendado si lo programas a diario. Si una licitacion cambia (le prorrogan el plazo o la adjudican) SI te vuelve a llegar.",
            "default": true
          },
          "maximo": {
            "title": "Como mucho, cuantos avisos",
            "minimum": 0,
            "maximum": 500,
            "type": "integer",
            "description": "Cuantas licitaciones te aviso como mucho en cada pasada. Es tu freno de mano: al llegar a este numero paro y no se cobra mas. Por defecto 25. Ponlo a 0 solo si sabes lo que haces: sin filtro de CPV una pasada puede traer mas de mil.",
            "default": 25
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}