{
  "openapi": "3.0.1",
  "info": {
    "title": "Competitor Intelligence AI Agent — Pricing, Plans & Changes",
    "description": "Enter competitor domains; the AI agent reads their pricing, product, customers, integrations, changelog and careers pages and returns plans, prices, free trials, positioning, customers, launches and open roles with sources, a comparison matrix and pricing-change alerts. $0.01/site.",
    "version": "0.1",
    "x-build-id": "dzVBuet7qmcetzvra"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/actor-forge~competitor-intel-agent/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-actor-forge-competitor-intel-agent",
        "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/actor-forge~competitor-intel-agent/runs": {
      "post": {
        "operationId": "runs-sync-actor-forge-competitor-intel-agent",
        "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/actor-forge~competitor-intel-agent/run-sync": {
      "post": {
        "operationId": "run-sync-actor-forge-competitor-intel-agent",
        "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": "Competitor domains",
            "type": "array",
            "description": "Competitor websites, as domains (acme.com) or page URLs (acme.com/pricing works too). For each one the agent reads the home page, finds the pricing, features/product, customers, integrations, changelog/blog and careers pages from the site's own links, and returns one structured profile. Up to 20 per run.",
            "items": {
              "type": "string"
            }
          },
          "yourDomain": {
            "title": "Your own domain (optional)",
            "type": "string",
            "description": "Optional. Your own website, analysed the same way and marked isYourDomain: true, so the comparison matrix shows you next to your competitors. It counts as one analysed site."
          },
          "maxPagesPerSite": {
            "title": "Max pages per site",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "Pages read per site, including the home page, in this priority order: pricing, features/product, customers, integrations, changelog, careers, blog. 3 = home + pricing + features. More pages give more fields but use more AI tokens (the per-site fee is the same).",
            "default": 6
          },
          "includeComparison": {
            "title": "Add a comparison row",
            "type": "boolean",
            "description": "When 2 or more sites are analysed, add one free row of type \"comparison\": a side-by-side matrix (pricing model, plan count, entry price per month, free trial, free plan, integrations, customers, open roles, launches) plus plain-English highlights.",
            "default": true
          },
          "monitorName": {
            "title": "Monitor name (change tracking)",
            "type": "string",
            "description": "Optional. Turns on change tracking: each site's pricing, plans, tagline, launches and open roles are saved in your key-value store \"af-competitor-intel-<name>\", and every later run with the same name reports what changed (price changes, plans added or removed, free trial or free plan added or removed, new launches). Schedule the actor weekly with the same name to get pricing-change alerts. Letters, digits and dashes."
          },
          "fetchAtsJobCounts": {
            "title": "Exact open-role counts from job boards",
            "type": "boolean",
            "description": "When a site links a public Greenhouse, Lever or Ashby job board, read the board's public job list for an exact open-roles count (one small request, no AI tokens).",
            "default": true
          },
          "model": {
            "title": "AI model",
            "type": "string",
            "description": "Any OpenRouter model id. Default google/gemini-2.5-flash-lite: cheap, fast and good at extraction. google/gemini-2.5-flash or openai/gpt-4o-mini are smarter but cost more. Tokens are billed to your Apify account at OpenRouter rates.",
            "default": "google/gemini-2.5-flash-lite"
          },
          "maxLlmCostUsd": {
            "title": "Max AI token cost per run (USD)",
            "minimum": 0,
            "maximum": 100,
            "type": "number",
            "description": "Hard cap on the AI token charges this run may cause on your Apify account (estimated, including the 10× free-plan rate when it applies). Before each site the worst-case cost (its prompt plus maxOutputTokens) is reserved; the run stops cleanly when the next site would pass the cap. Separate from the actor's own per-site fee.",
            "default": 0.2
          },
          "maxInputTokensPerSite": {
            "title": "Max input tokens per site",
            "minimum": 2000,
            "maximum": 60000,
            "type": "integer",
            "description": "All pages of one site are sent to the model in a single call, cut to about this many tokens in total (the pricing page gets the largest share). Lower = cheaper; raise it for sites with very long pricing or integrations pages.",
            "default": 12000
          },
          "maxOutputTokens": {
            "title": "Max output tokens per site",
            "minimum": 500,
            "maximum": 8000,
            "type": "integer",
            "description": "max_tokens for the model's answer per site. 3,000 fits about 10 plans with features plus 40 integrations. If an answer is cut off, the complete parts are kept and the row has a note.",
            "default": 3000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}