{
  "openapi": "3.0.1",
  "info": {
    "title": "AI Search AEO Monitor — AIO, Perplexity & ChatGPT ($15-$18/1K)",
    "description": "Track brand mentions, citations, SOV & organic AIO displacement across Google AI Overviews ($18/1K Gold), Perplexity, ChatGPT & Gemini ($15/1K BYOK, 256MB). Native MCP (/mcp), real-time Standby REST API, or weekly trendMode batch. $0 on failures.",
    "version": "0.1",
    "x-build-id": "mTxv4y1p4jJtwNCqQ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/studio001~ai-search-aeo-brand-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-studio001-ai-search-aeo-brand-monitor",
        "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/studio001~ai-search-aeo-brand-monitor/runs": {
      "post": {
        "operationId": "runs-sync-studio001-ai-search-aeo-brand-monitor",
        "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/studio001~ai-search-aeo-brand-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-studio001-ai-search-aeo-brand-monitor",
        "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": [
          "queries"
        ],
        "properties": {
          "queries": {
            "title": "Search Queries / Prompts",
            "type": "array",
            "description": "List of search queries to monitor across selected AI search engines.",
            "items": {
              "type": "string"
            }
          },
          "brandNames": {
            "title": "Your Brand Names or Domains",
            "type": "array",
            "description": "Brand names or domains to monitor (case-insensitive matching across AI answer text, citations, and organic SERP links).",
            "default": [
              "HubSpot",
              "Salesforce"
            ],
            "items": {
              "type": "string"
            }
          },
          "competitorBrands": {
            "title": "Competitor Brands or Domains",
            "type": "array",
            "description": "Optional competitor brands/domains used to compute competitive Share-of-Voice % (brand_mentions / total_category_mentions).",
            "default": [
              "Zoho",
              "Pipedrive"
            ],
            "items": {
              "type": "string"
            }
          },
          "gl": {
            "title": "Google Country Code (gl)",
            "type": "string",
            "description": "Two-letter country code for Google AI Overview locale (default: us).",
            "default": "us"
          },
          "hl": {
            "title": "Google Language Code (hl)",
            "type": "string",
            "description": "Language code for Google Search queries (default: en).",
            "default": "en"
          },
          "engines": {
            "title": "Target AI Engines",
            "type": "array",
            "description": "Choose one or more AI engines: google_aio, perplexity, chatgpt, gemini.",
            "items": {
              "type": "string",
              "enum": [
                "google_aio",
                "perplexity",
                "chatgpt",
                "gemini"
              ],
              "enumTitles": [
                "Google AI Overview (Managed / Zero-Key)",
                "Perplexity Sonar (Managed or BYOK)",
                "ChatGPT Web Search (BYOK OpenRouter / OpenAI)",
                "Google Gemini Search Grounding (BYOK OpenRouter / Gemini)"
              ]
            },
            "default": [
              "google_aio"
            ]
          },
          "fallbackToUnblockerOnLazyAio": {
            "title": "Unblocker Fallback on Lazy Google AIO",
            "type": "boolean",
            "description": "When GOOGLE_SERP returns a lazy /async/folsrch placeholder without inline AI Overview after retry, optionally try 1 shot via Apify Web Unblocker.",
            "default": false
          },
          "trendMode": {
            "title": "Enable Weekly Trend Diff Mode",
            "type": "boolean",
            "description": "Persist previous snapshots in a named Key-Value Store and output trend_delta (brand gain/loss, SOV delta %, new & lost citation URLs).",
            "default": false
          },
          "trendStoreName": {
            "title": "Trend Snapshot Store Name",
            "type": "string",
            "description": "Named Apify Key-Value Store used when trendMode is enabled.",
            "default": "studio001-aeo-trends"
          },
          "openrouterApiKey": {
            "title": "OpenRouter API Key (Optional BYOK)",
            "type": "string",
            "description": "Optional OpenRouter key supporting perplexity, chatgpt, and gemini engines via BYOK."
          },
          "perplexityApiKey": {
            "title": "Perplexity API Key (Optional BYOK)",
            "type": "string",
            "description": "Optional official Perplexity Sonar API key for BYOK mode."
          },
          "openaiApiKey": {
            "title": "OpenAI API Key (Optional BYOK)",
            "type": "string",
            "description": "Optional official OpenAI API key for ChatGPT native web search (BYOK mode)."
          },
          "geminiApiKey": {
            "title": "Google Gemini API Key (Optional BYOK)",
            "type": "string",
            "description": "Optional official Google AI Studio Gemini API key for Search Grounding (BYOK mode)."
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Apify Proxy configuration. Uses GOOGLE_SERP group by default for Google AI Overview queries.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "GOOGLE_SERP"
              ]
            }
          },
          "maxConcurrency": {
            "title": "Max Concurrent Checks",
            "minimum": 1,
            "maximum": 4,
            "type": "integer",
            "description": "Bounded parallel engine requests (1-4).",
            "default": 3
          },
          "maxTotalChargeUsd": {
            "title": "Max Total Charge (USD)",
            "minimum": 0,
            "type": "number",
            "description": "Optional hard Pay-Per-Event spending cap (USD) per run."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}