{
  "openapi": "3.0.1",
  "info": {
    "title": "Si alguien registra tu marca, te enteras el mismo dia",
    "description": "Vigila el BOPI de la OEPM y te avisa cuando alguien solicita una marca parecida a la tuya. Casa por parecido escrito y por sonido, no solo por el nombre exacto. Tienes DOS MESES para oponerte: esto te lo dice el primer dia. Pagas por aviso, sin cuota.",
    "version": "1.0",
    "x-build-id": "zUR2RpvlaLgBlLhYA"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/aurorasys~spain-trademark-watch-oepm/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-aurorasys-spain-trademark-watch-oepm",
        "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-trademark-watch-oepm/runs": {
      "post": {
        "operationId": "runs-sync-aurorasys-spain-trademark-watch-oepm",
        "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-trademark-watch-oepm/run-sync": {
      "post": {
        "operationId": "run-sync-aurorasys-spain-trademark-watch-oepm",
        "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": [
          "marcas"
        ],
        "properties": {
          "marcas": {
            "title": "Tus marcas (una por linea, con su clase)",
            "type": "array",
            "description": "Ejemplo: AURELIA:33  ·  MYTHEAS:42,9. Sin esto no hay nada que comparar.",
            "items": {
              "type": "string"
            }
          },
          "oepm_usuario": {
            "title": "Tu correo de la OEPM (BOPI)",
            "type": "string",
            "description": "Con esto MARCA se descarga el boletin SOLO cada dia. Registro gratuito en sede.oepm.gob.es/bopiweb (boton REGISTRAR)."
          },
          "oepm_clave": {
            "title": "Tu contrasena de la OEPM",
            "type": "string",
            "description": "Se guarda cifrada. Solo se usa para entrar y bajar el boletin."
          },
          "oepm_fecha": {
            "title": "Fecha del boletin (dd-mm-aaaa)",
            "type": "string",
            "description": "Vacio = el de hoy."
          },
          "mis_titulares": {
            "title": "Nombres de tus empresas (para no avisarte de tus propias marcas)",
            "type": "array",
            "description": "Si una solicitud nueva es TUYA, no es un conflicto y no se cobra.",
            "items": {
              "type": "string"
            }
          },
          "carpeta_boletines": {
            "title": "Carpeta con varios boletines (puesta al dia)",
            "type": "string",
            "description": "Una carpeta de tu ordenador con boletines del BOPI ya descargados, para revisar varios de golpe. Util para ponerte al dia si llevas semanas sin mirar."
          },
          "competidores": {
            "title": "Competidores a vigilar (opcional)",
            "type": "array",
            "description": "Si alguno de estos registra una marca nueva, te avisa.",
            "items": {
              "type": "string"
            }
          },
          "consultar_clases": {
            "title": "Informe de viabilidad: en que clases",
            "type": "string",
            "description": "Un nombre que estas pensando registrar: te digo en que clases de Niza hay ya marcas parecidas. Sirve para elegir clase antes de pagar la tasa."
          },
          "consultar_nombre": {
            "title": "Informe de viabilidad: nombre que quieres registrar",
            "type": "string",
            "description": "Comprueba si un nombre concreto esta libre en el BOPI antes de gastarte el dinero en registrarlo."
          },
          "contacto": {
            "title": "Tu correo de contacto",
            "type": "string",
            "description": "Tu correo o telefono. Sale al pie del informe, para que quien lo reciba sepa a quien contestar."
          },
          "cookie": {
            "title": "Cookie de sesion de la OEPM",
            "type": "string",
            "description": "Solo si la descarga pide sesion."
          },
          "corte": {
            "title": "A partir de que parecido avisar (0-100)",
            "minimum": 40,
            "maximum": 100,
            "type": "integer",
            "description": "Cuanto tienen que parecerse dos marcas para que te avise, de 0 a 100. Con 70 caza los parecidos de verdad sin llenarte de ruido. Bajalo si quieres hilar mas fino.",
            "default": 70
          },
          "despacho": {
            "title": "Nombre de tu despacho (sale en el correo)",
            "type": "string",
            "description": "El nombre de tu despacho o empresa. Sale en la cabecera del informe, para reenviarlo tal cual a tu cliente."
          },
          "euipo_xml": {
            "title": "Volcado de la EUIPO (XML, opcional)",
            "type": "string",
            "description": "Sin esto NO se cubren las marcas de la Union Europea, que tambien protegen en Espana."
          },
          "fecha": {
            "title": "Fecha de referencia (AAAA-MM-DD)",
            "type": "string",
            "description": "Para calcular los dias que quedan. Por defecto, hoy."
          },
          "meses_aviso": {
            "title": "Con cuantos meses avisar de las renovaciones",
            "type": "integer",
            "description": "Con cuantos meses de antelacion te aviso de que una marca tuya caduca. Doce da tiempo de sobra a renovarla sin agobios.",
            "default": 12
          },
          "pie_correo": {
            "title": "Tu pie de firma para el correo",
            "type": "string",
            "description": "Un texto tuyo al final del correo: tu firma, un aviso legal o lo que quieras anadir."
          },
          "titular": {
            "title": "Tu nombre fiscal (para los papeles legales)",
            "type": "string",
            "description": "El nombre con el que tienes registradas tus marcas. Sirve para reconocer cuales son tuyas dentro del boletin."
          },
          "xml_pegado": {
            "title": "O pega aqui el XML directamente",
            "type": "string",
            "description": "El XML de un boletin del BOPI pegado aqui directamente. Para probar el producto sin darme tus claves de la OEPM."
          },
          "xml_url": {
            "title": "URL del BOPI (XML o ZIP)",
            "type": "string",
            "description": "Descarga del portal OpenData de la OEPM. Requiere registro previo gratuito."
          },
          "fecha_boletin": {
            "title": "De que dia es el boletin",
            "type": "string",
            "description": "La fecha del boletin que me estas dando, en formato DD/MM/AAAA. El XML del BOPI no la lleva dentro, y sin ella no puedo decirte cuantos dias te quedan para oponerte. Si dejo que me lo descargue yo de la OEPM, este campo no hace falta."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}