{
  "openapi": "3.0.1",
  "info": {
    "title": "Google AI Overviews, Perplexity & ChatGPT GEO Monitor",
    "description": "Monitor Generative Engine Optimization (GEO) brand visibility, citation URLs, Share of Voice, sentiment & competitors across Google AI Overviews, Perplexity, OpenAI Web Search, and DuckDuckGo grounding. Supports BYOK API or HTTP fallback, weekly delta alerts, Looker Studio & n8n.",
    "version": "1.0",
    "x-build-id": "OTYffoK6itrsq0Er6"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/vesper_studio~ai-search-geo-visibility-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-vesper_studio-ai-search-geo-visibility-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/vesper_studio~ai-search-geo-visibility-monitor/runs": {
      "post": {
        "operationId": "runs-sync-vesper_studio-ai-search-geo-visibility-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/vesper_studio~ai-search-geo-visibility-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-vesper_studio-ai-search-geo-visibility-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": [
          "prompts",
          "brandName"
        ],
        "properties": {
          "prompts": {
            "title": "Buyer-intent prompts / queries",
            "type": "array",
            "description": "List of buyer-intent questions or commercial search prompts to test across AI search engines (e.g., 'best CRM software for startups', 'HubSpot vs Salesforce pricing').",
            "default": [
              "best CRM software for small business",
              "HubSpot vs Salesforce for mid-market teams"
            ],
            "items": {
              "type": "string"
            }
          },
          "brandName": {
            "title": "Primary brand name",
            "type": "string",
            "description": "Your brand or client's primary brand name to track across AI answers.",
            "default": "HubSpot"
          },
          "brandDomains": {
            "title": "Brand domains",
            "type": "array",
            "description": "Owned domains (and subdomains) to detect in cited source URLs (e.g., 'hubspot.com', 'academy.hubspot.com').",
            "default": [
              "hubspot.com"
            ],
            "items": {
              "type": "string"
            }
          },
          "brandAliases": {
            "title": "Brand aliases & product names",
            "type": "array",
            "description": "Alternative names, product lines, or common spellings for the brand (e.g., 'HubSpot CRM', 'Marketing Hub').",
            "default": [
              "HubSpot CRM"
            ],
            "items": {
              "type": "string"
            }
          },
          "competitors": {
            "title": "Competitors to benchmark",
            "type": "array",
            "description": "Competitors to measure Share of Voice against. Each entry can be a simple string ('Salesforce') or an object { \"name\": \"Salesforce\", \"domains\": [\"salesforce.com\"], \"aliases\": [\"SFDC\", \"Sales Cloud\"] }.",
            "default": [
              {
                "name": "Salesforce",
                "domains": [
                  "salesforce.com"
                ],
                "aliases": [
                  "SFDC",
                  "Sales Cloud"
                ]
              },
              {
                "name": "Pipedrive",
                "domains": [
                  "pipedrive.com"
                ],
                "aliases": []
              },
              {
                "name": "Zoho CRM",
                "domains": [
                  "zoho.com"
                ],
                "aliases": [
                  "Zoho"
                ]
              }
            ]
          },
          "engines": {
            "title": "AI search engines",
            "type": "array",
            "description": "Engines to query. Provide BYOK API keys below for native production extraction on Google AI Overviews, Perplexity, and OpenAI Web Search. Without API keys, direct HTTP runs cleanly without solving CAPTCHAs and (when fallbackToPublicSearch is enabled) falls back to honest live public web-search grounding labeled `status: fallback_grounding` / `answerSource: public_search_fallback`. 'duckduckgo_search' runs zero-key live web grounding.",
            "items": {
              "type": "string",
              "enum": [
                "google_ai_overview",
                "perplexity",
                "openai_web_search",
                "duckduckgo_search"
              ],
              "enumTitles": [
                "Google AI Overviews (SerpApi / Google CSE / Direct HTTP)",
                "Perplexity (Sonar API / Direct HTTP)",
                "OpenAI Web Search (Responses & Search API / Direct HTTP)",
                "DuckDuckGo Web Grounding (Zero-Key Live HTTP)"
              ]
            },
            "default": [
              "google_ai_overview",
              "perplexity",
              "openai_web_search",
              "duckduckgo_search"
            ]
          },
          "country": {
            "title": "Country (ISO 3166-1 alpha-2)",
            "type": "string",
            "description": "Two-letter country code for localized search results (e.g., 'us', 'fr', 'gb', 'de').",
            "default": "us"
          },
          "language": {
            "title": "Language (ISO 639-1)",
            "type": "string",
            "description": "Two-letter language code for prompts and Google hl parameter (e.g., 'en', 'fr', 'es', 'de').",
            "default": "en"
          },
          "onlyChanges": {
            "title": "Delta mode (only push changed visibility states)",
            "type": "boolean",
            "description": "When enabled, compares current run against the Key-Value Store snapshot from the previous run and only pushes rows where visibilityGained, visibilityLost, newCompetitorAppeared, or cited domains changed.",
            "default": false
          },
          "stateKey": {
            "title": "Delta state KV store name (optional)",
            "type": "string",
            "description": "Named Apify Key-Value Store used to persist weekly delta snapshots across runs (alphanumeric and hyphens). Override per client/campaign if sharing one Actor across multiple clients.",
            "default": "geo-visibility-state"
          },
          "includeRawAnswer": {
            "title": "Include AI answer text",
            "type": "boolean",
            "description": "Include the full/truncated AI answer text in each dataset row for qualitative audits.",
            "default": true
          },
          "fallbackToPublicSearch": {
            "title": "Honest public web-search fallback when keyless direct HTTP is gated",
            "type": "boolean",
            "description": "When enabled (default), if a direct engine endpoint (Google, Perplexity, ChatGPT) is gated and no BYOK API key is provided, automatically fall back to live keyless public web-search grounding (Ecosia organic + DuckDuckGo Lite + Wikipedia) clearly labeled `status: fallback_grounding` and `answerSource: public_search_fallback`. Disable to strictly emit `blocked_requires_api_or_proxy`.",
            "default": true
          },
          "openaiApiKey": {
            "title": "OpenAI API Key (BYOK - optional)",
            "type": "string",
            "description": "Optional OpenAI API key for OpenAI Web Search (Responses API / Search models). Stored securely as a secret."
          },
          "openaiModel": {
            "title": "OpenAI Web Search model",
            "type": "string",
            "description": "OpenAI model used when openaiApiKey is supplied (e.g., 'gpt-4o-mini', 'gpt-4.1-mini', 'gpt-4o-mini-search-preview').",
            "default": "gpt-4o-mini"
          },
          "perplexityApiKey": {
            "title": "Perplexity Sonar API Key (BYOK - optional)",
            "type": "string",
            "description": "Optional Perplexity API key for Sonar web-grounded citations. Stored securely as a secret."
          },
          "perplexityModel": {
            "title": "Perplexity Sonar model",
            "type": "string",
            "description": "Perplexity Sonar model used when perplexityApiKey is supplied (e.g., 'sonar', 'sonar-pro').",
            "default": "sonar"
          },
          "serpApiKey": {
            "title": "SerpApi Key for Google AI Overviews (BYOK - optional)",
            "type": "string",
            "description": "Optional SerpApi key for live Google Search + Google AI Overview text_blocks and references."
          },
          "googleCseKey": {
            "title": "Google Custom Search API Key (BYOK - optional)",
            "type": "string",
            "description": "Optional Google Custom Search JSON API key (fallback grounding when serpApiKey is not set)."
          },
          "googleCseCx": {
            "title": "Google Custom Search Engine ID (cx - optional)",
            "type": "string",
            "description": "Programmable Search Engine ID (cx) paired with googleCseKey."
          },
          "maxConcurrency": {
            "title": "Max concurrent checks",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Maximum concurrent prompt-engine requests (1-10). Keep 2-4 for 256 MB memory.",
            "default": 4
          },
          "proxyConfiguration": {
            "title": "Proxy configuration (optional)",
            "type": "object",
            "description": "Optional Apify Proxy configuration for direct HTTP adapters (residential proxies recommended if querying direct Google SERPs without SerpApi)."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}