{
  "openapi": "3.0.1",
  "info": {
    "title": "Competitor Content Radar",
    "description": "Monitor competitor websites and detect new pages, content updates, and topic shifts with AI-powered analysis. Get intelligent summaries, webhook notifications, and track changes over time. Perfect for SEO teams, content strategists, and competitive intelligence.",
    "version": "1.1",
    "x-build-id": "dTMt8m9smwQLcx3dL"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/intelligence-automation~competitor-content-radar/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-intelligence-automation-competitor-content-radar",
        "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/intelligence-automation~competitor-content-radar/runs": {
      "post": {
        "operationId": "runs-sync-intelligence-automation-competitor-content-radar",
        "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/intelligence-automation~competitor-content-radar/run-sync": {
      "post": {
        "operationId": "run-sync-intelligence-automation-competitor-content-radar",
        "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": [
          "competitorUrls",
          "maxResults",
          "maxCharge"
        ],
        "properties": {
          "competitorUrls": {
            "title": "Competitor URLs",
            "minItems": 1,
            "type": "array",
            "description": "List of competitor website URLs to monitor (homepage or blog section)",
            "default": [
              {
                "url": "https://example.com/"
              }
            ],
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxPagesPerSite": {
            "title": "Max Pages per Site",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of pages to crawl per competitor site (0 = unlimited)",
            "default": 100
          },
          "crawlDepth": {
            "title": "Crawl Depth",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Maximum depth to crawl from start URLs (0 = only start URLs, 1 = start URLs + their links, etc.)",
            "default": 2
          },
          "includePatterns": {
            "title": "Include URL Patterns",
            "type": "array",
            "description": "URL patterns to include (e.g., ['**/blog/**', '**/articles/**']). Leave empty to include all URLs.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "excludePatterns": {
            "title": "Exclude URL Patterns",
            "type": "array",
            "description": "URL patterns to exclude (e.g., ['**/category/**', '**/tag/**'])",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "useSitemap": {
            "title": "Use Sitemap",
            "type": "boolean",
            "description": "Discover and use sitemap.xml to find URLs (in addition to crawling)",
            "default": false
          },
          "minLastModified": {
            "title": "Minimum Last Modified Date",
            "type": "string",
            "description": "Only process pages modified after this date (ISO 8601 format, e.g., 2024-01-01T00:00:00Z). Leave empty to process all pages.",
            "default": ""
          },
          "openaiApiKey": {
            "title": "OpenAI API Key (Optional)",
            "type": "string",
            "description": "OpenAI API key (starts with 'sk-') for AI summarization of changes. Optional - the Actor works without it but won't generate AI summaries. Get your key at https://platform.openai.com/api-keys. The key is stored securely and hidden in logs. For better security, use environment variable OPENAI_API_KEY instead."
          },
          "useOpenAITopics": {
            "title": "Use OpenAI for Topic Extraction",
            "type": "boolean",
            "description": "Use OpenAI to extract topics (more accurate but uses API credits). Requires openaiApiKey. If disabled, uses basic keyword extraction.",
            "default": false
          },
          "openaiModel": {
            "title": "OpenAI Model",
            "enum": [
              "gpt-4o-mini",
              "gpt-4",
              "gpt-3.5-turbo"
            ],
            "type": "string",
            "description": "OpenAI model to use for summaries and topic extraction. gpt-4o-mini is recommended for cost-effectiveness.",
            "default": "gpt-4o-mini"
          },
          "webhookUrl": {
            "title": "Webhook URL (Deprecated)",
            "type": "string",
            "description": "Single webhook URL (deprecated - use webhookUrls instead)",
            "default": ""
          },
          "webhookUrls": {
            "title": "Webhook URLs",
            "type": "array",
            "description": "List of webhook URLs to send change notifications (e.g., Slack, Discord webhooks)",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "minChangeThreshold": {
            "title": "Minimum Change Threshold",
            "minimum": 0,
            "maximum": 1,
            "type": "number",
            "description": "Minimum content similarity difference (0-1) to consider as a significant change",
            "default": 0.1
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Proxy settings for anti-bot protection",
            "default": {
              "useApifyProxy": false
            }
          },
          "respectRobotsTxt": {
            "title": "Respect robots.txt",
            "type": "boolean",
            "description": "Respect robots.txt rules when crawling (recommended: true)",
            "default": true
          },
          "cleanupOldEntries": {
            "title": "Cleanup Old Entries",
            "type": "boolean",
            "description": "Remove unchanged entries older than specified days from dataset (0 = disabled)",
            "default": false
          },
          "cleanupDays": {
            "title": "Cleanup Days",
            "minimum": 1,
            "type": "integer",
            "description": "Remove unchanged entries older than this many days (only if cleanupOldEntries is true)",
            "default": 30
          },
          "customUserAgent": {
            "title": "Custom User Agent",
            "type": "string",
            "description": "Custom user agent string (leave empty to use default realistic user agent)",
            "default": ""
          },
          "requestTimeout": {
            "title": "Request Timeout (seconds)",
            "minimum": 10,
            "maximum": 300,
            "type": "integer",
            "description": "Timeout for each page request (default: 60, increase for slow sites)",
            "default": 60
          },
          "maxResults": {
            "title": "Max Results (Required)",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Maximum number of dataset items. Actor stops when this limit is reached. REQUIRED for cost protection.",
            "default": 100
          },
          "maxCharge": {
            "title": "Max Charge in USD (Required)",
            "minimum": 0.01,
            "maximum": 1000,
            "type": "number",
            "description": "Maximum cost in USD. Actor stops when estimated cost reaches this limit. REQUIRED for cost protection. Pricing: $0.00005 per start + $0.00001 per result.",
            "default": 1
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}