{
  "openapi": "3.0.1",
  "info": {
    "title": "COOKINON · Tienes banner de cookies. ¿Seguro que bloquea algo?",
    "description": "Audita webs espanolas contra la Guia de Cookies de la AEPD. Abre la web tres veces (sin tocar nada, tras rechazar y tras aceptar) y detecta si instala cookies sin permiso. 25 comprobaciones, riesgo en euros y como arreglarlo.",
    "version": "1.0",
    "x-build-id": "6B73kraKZQa58pbtY"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/aurorasys~spain-cookie-compliance-auditor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-aurorasys-spain-cookie-compliance-auditor",
        "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-cookie-compliance-auditor/runs": {
      "post": {
        "operationId": "runs-sync-aurorasys-spain-cookie-compliance-auditor",
        "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-cookie-compliance-auditor/run-sync": {
      "post": {
        "operationId": "run-sync-aurorasys-spain-cookie-compliance-auditor",
        "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",
        "required": [
          "webs"
        ],
        "properties": {
          "webs": {
            "title": "Las webs que quieres auditar",
            "type": "array",
            "description": "Una por linea. Solo webs que lleves tu o para las que tengas permiso. Ejemplo: miempresa.es",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "solo_lo_grave": {
            "title": "Solo lo mas grave (version corta y gratis)",
            "type": "boolean",
            "description": "Marcado, te dice el semaforo y el fallo mas grave. Sin marcar, te da las 25 comprobaciones con su prueba y como arreglarlas.",
            "default": false
          },
          "marca": {
            "title": "Tu marca en el informe",
            "type": "string",
            "description": "Si eres una agencia y vas a mandarle el informe a tu cliente, pon aqui tu nombre.",
            "default": ""
          },
          "maximo": {
            "title": "Como mucho, cuantas webs",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Cada web se abre tres veces, asi que tarda. Ponle un tope si es la primera vez.",
            "default": 20
          },
          "tope_gasto": {
            "title": "Tope de gasto (USD)",
            "minimum": 0,
            "maximum": 200,
            "type": "integer",
            "description": "Me paro antes de pasar de aqui. 0 = sin tope. Util la primera vez, para no llevarte sustos.",
            "default": 0
          },
          "plan_de_arreglo": {
            "title": "El plan de arreglo (de rojo a verde, en orden)",
            "type": "boolean",
            "description": "Te dice que arreglar primero para quitar mas riesgo con menos trabajo, y cuanto tarda cada cosa.",
            "default": false
          },
          "que_me_viene_encima": {
            "title": "¿Que leyes le obligan y que le viene encima?",
            "type": "boolean",
            "description": "Todas las normas que afectan a una web espanola, con sus fechas. Incluye las que entran en vigor proximamente.",
            "default": false
          },
          "donde_pierdo_dinero": {
            "title": "¿Donde esta perdiendo dinero?",
            "type": "boolean",
            "description": "Herramientas de pago que lleva puestas, cuanto retrasan la web y que le falta para Google.",
            "default": false
          },
          "auditar_rgpd": {
            "title": "Auditar tambien el RGPD (no solo las cookies)",
            "type": "boolean",
            "description": "12 comprobaciones mas: formularios, consentimiento y la politica de privacidad punto por punto contra el articulo 13 del RGPD.",
            "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}