{
  "openapi": "3.0.1",
  "info": {
    "title": "Competitor Watch (Italy)",
    "description": "Scopri cosa hanno fatto i tuoi concorrenti in Italia: appalti e affidamenti su ANAC, aggiudicazioni UE su TED, notizie da Google News e, se li attivi, recensioni app e modifiche alle pagine web che scegli, con data, fonte, link e un riassunto AI facoltativo.",
    "version": "0.1",
    "x-build-id": "ootIXVfHgDZxEcoz0"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/kupilux~competitor-watch/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-kupilux-competitor-watch",
        "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/kupilux~competitor-watch/runs": {
      "post": {
        "operationId": "runs-sync-kupilux-competitor-watch",
        "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/kupilux~competitor-watch/run-sync": {
      "post": {
        "operationId": "run-sync-kupilux-competitor-watch",
        "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": [
          "competitors"
        ],
        "properties": {
          "competitors": {
            "title": "Concorrenti",
            "type": "array",
            "description": "Elenco dei concorrenti da monitorare (da 1 a 20).",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "title": "Nome",
                  "type": "string",
                  "description": "Ragione sociale o nome commerciale.",
                  "editor": "textfield"
                },
                "vatOrTaxCode": {
                  "title": "Partita IVA / codice fiscale",
                  "type": "string",
                  "description": "Consigliato per evitare omonimi.",
                  "editor": "textfield"
                },
                "aliases": {
                  "title": "Alias",
                  "type": "array",
                  "description": "Altre grafie del nome (es. forme abbreviate o S.p.A.).",
                  "editor": "stringList",
                  "items": {
                    "type": "string"
                  }
                },
                "websiteUrls": {
                  "title": "URL da monitorare",
                  "type": "array",
                  "description": "Fino a 5 pagine (prezzi, blog, careers, prodotti).",
                  "editor": "stringList",
                  "items": {
                    "type": "string"
                  }
                },
                "appStoreApp": {
                  "title": "App Store (ID o link)",
                  "type": "string",
                  "description": "Facoltativo: scheda app iOS del concorrente, per le recensioni app.",
                  "editor": "textfield"
                },
                "googlePlayApp": {
                  "title": "Google Play (package o link)",
                  "type": "string",
                  "description": "Facoltativo: scheda app Android del concorrente, per le recensioni app.",
                  "editor": "textfield"
                }
              },
              "required": [
                "name"
              ]
            }
          },
          "sinceDays": {
            "title": "Ultimi giorni",
            "minimum": 1,
            "maximum": 92,
            "type": "integer",
            "description": "Quanti giorni indietro analizzare (1–92). Ignorato se imposti le date sotto.",
            "default": 30
          },
          "dateFrom": {
            "title": "Data da",
            "pattern": "^(\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$",
            "type": "string",
            "description": "Data di inizio (formato AAAA-MM-GG). Facoltativa."
          },
          "dateTo": {
            "title": "Data a",
            "pattern": "^(\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$",
            "type": "string",
            "description": "Data di fine inclusa (formato AAAA-MM-GG). Facoltativa."
          },
          "locations": {
            "title": "Zone",
            "type": "array",
            "description": "Facoltativo: limita a comuni, province o regioni italiane.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "eventTypes": {
            "title": "Tipi di evento",
            "type": "array",
            "description": "Quali tipi di segnale includere nel risultato.",
            "items": {
              "type": "string",
              "enum": [
                "tender_won",
                "direct_award",
                "news",
                "app_review",
                "website_change"
              ],
              "enumTitles": [
                "Appalto vinto",
                "Affidamento diretto",
                "Notizia",
                "Recensione app",
                "Modifica sito web"
              ]
            },
            "default": [
              "tender_won",
              "direct_award",
              "news",
              "website_change"
            ]
          },
          "includeAiSummary": {
            "title": "Riassunto AI",
            "type": "boolean",
            "description": "Breve riassunto per ogni evento e filtro omonimi sulle notizie.",
            "default": true
          },
          "maxResults": {
            "title": "Risultati massimi",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Numero massimo di righe nel dataset finale.",
            "default": 100
          },
          "maxResultsPerCompetitor": {
            "title": "Risultati massimi per concorrente",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Tetto per concorrente, così uno solo non occupa tutto l’output."
          },
          "onlyNew": {
            "title": "Solo eventi nuovi",
            "type": "boolean",
            "description": "Restituisce solo eventi non già visti nelle esecuzioni precedenti.",
            "default": false
          },
          "memoryKeyValueStoreId": {
            "title": "Store di memoria",
            "type": "string",
            "description": "Scegli uno store: serve per ricordare cosa hai già visto e accorgersi delle modifiche ai siti tra un'esecuzione e l'altra."
          },
          "includeAppReviews": {
            "title": "Recensioni app",
            "type": "boolean",
            "description": "Recupera recensioni dagli store se hai indicato le app dei concorrenti. Costi aggiuntivi secondo il listino di App Reviews Intelligence sul tuo account Apify.",
            "default": false
          },
          "appReviewsMaxPerApp": {
            "title": "Max recensioni per app",
            "minimum": 5,
            "maximum": 200,
            "type": "integer",
            "description": "Limite per contenere costi e durata (5–200).",
            "default": 40
          },
          "appReviewsSinceDays": {
            "title": "Recensioni — ultimi giorni",
            "minimum": 1,
            "maximum": 92,
            "type": "integer",
            "description": "Finestra temporale per le recensioni se non usi le date in alto."
          },
          "appReviewsCountry": {
            "title": "Paese store",
            "type": "string",
            "description": "Mercato dello store (es. it). Default: it.",
            "default": "it"
          },
          "matchMode": {
            "title": "Modalità di match",
            "enum": [
              "prefer_tax_code",
              "name_and_aliases"
            ],
            "type": "string",
            "description": "Come riconoscere il concorrente nelle fonti ufficiali.",
            "default": "prefer_tax_code"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}