{
  "openapi": "3.0.1",
  "info": {
    "title": "AI Search Brand Monitor: ChatGPT, Perplexity & AI Overviews",
    "description": "Measure brand visibility in Perplexity, ChatGPT, Gemini, Claude and Google AI Overviews. GEO score, mentions, citations, competitor share of voice, change vs last run, and country views. Failed checks are free.",
    "version": "1.8",
    "x-build-id": "GOQ5UW5JmzA8jf7bs"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/khadinakbar~ai-search-brand-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-khadinakbar-ai-search-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/khadinakbar~ai-search-brand-monitor/runs": {
      "post": {
        "operationId": "runs-sync-khadinakbar-ai-search-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/khadinakbar~ai-search-brand-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-khadinakbar-ai-search-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": [
          "brandName"
        ],
        "properties": {
          "brandName": {
            "title": "Brand name",
            "type": "string",
            "description": "Use this field when the user provides their brand, company, product, or tool name to monitor (e.g., 'Ahrefs', 'HubSpot', 'Notion'). This is the primary brand to track across AI search results. Do NOT use this for competitor names — use the competitors field for those."
          },
          "brandDomain": {
            "title": "Brand domain",
            "type": "string",
            "description": "The primary website domain of the brand (e.g., 'ahrefs.com', 'hubspot.com'); a full address such as 'https://www.ahrefs.com/' also works. Used to detect when the brand's website or a subdomain is cited as a source. Leave empty if you only want to track text mentions: citation fields are then empty."
          },
          "brandAliases": {
            "title": "Brand aliases",
            "type": "array",
            "description": "Alternate names, acronyms, or handles the brand is known by (e.g., ['Ahrefs', 'ahrefs.com']). The actor will search for all of these in AI responses, not just the primary brand name. Useful for brands with common abbreviations.",
            "items": {
              "type": "string"
            }
          },
          "competitors": {
            "title": "Competitor brands to track",
            "type": "array",
            "description": "Use this field when the user wants to track competitor co-mentions — which competing brands appear in the same AI responses as their brand. Provide a list of competitor names (e.g., ['Semrush', 'Moz', 'Majestic']). Up to 10 competitors. Each response will show which of these were mentioned alongside your brand.",
            "items": {
              "type": "string"
            }
          },
          "platforms": {
            "title": "AI platforms to query",
            "type": "array",
            "description": "Use this field when the user says 'only check Perplexity', 'include Claude', or names specific platforms. Valid values: 'perplexity' (Sonar with native citations), 'chatgpt' (OpenAI web search), 'claude' (Claude Haiku 4.5 with live web results), 'gemini' (Gemini 2.5 Flash with live web search). Also valid: 'grok' (xAI Grok with live web results), 'deepseek' (DeepSeek with live web results), 'google_aio' (Google AI Overviews — billed only when Google shows an AI Overview and its source pages can be verified; allow a few minutes). Defaults to Perplexity, ChatGPT, and Gemini. Add 'claude' explicitly for deep audits.",
            "items": {
              "type": "string"
            },
            "default": [
              "perplexity",
              "chatgpt",
              "gemini"
            ]
          },
          "queryTemplates": {
            "title": "Query template categories",
            "type": "array",
            "description": "Use customQueries instead when the user provides specific questions. For standard checks, select from: 'best_tools' (category roundups), 'alternatives' (what are alternatives to X), 'recommendations' (should I use X), 'reviews' (user sentiment), 'comparisons' (X vs competitors). Defaults to best_tools, alternatives, recommendations.",
            "items": {
              "type": "string"
            },
            "default": [
              "best_tools",
              "alternatives",
              "recommendations"
            ]
          },
          "customQueries": {
            "title": "Custom queries",
            "type": "array",
            "description": "Exact questions or prompts to submit to the selected AI platforms (e.g., 'Which SEO tool has the best backlink database?'). Choose Query source = Custom queries only to run these prompts without any built-in template queries. In the combined mode, custom queries run first and remaining capacity can be filled by selected templates.",
            "items": {
              "type": "string"
            }
          },
          "querySelectionMode": {
            "title": "Query source",
            "enum": [
              "templates_and_custom",
              "custom_only",
              "templates_only"
            ],
            "type": "string",
            "description": "Controls which queries this run uses. Choose 'Custom queries only' when you want only the exact prompts in Custom queries; selected template categories are ignored, including the form defaults. Choose 'Templates only' for recurring template checks, or combine both sources when you want broader coverage.",
            "default": "templates_and_custom"
          },
          "maxQueriesPerPlatform": {
            "title": "Max queries to run",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Maximum number of unique queries to submit per platform. Each completed query × platform check = one brand-query-checked event ($0.08; $0.07 on Silver plans and above), including answers with no sources (citation_status 'no_links'); failed and unverified checks are free. Default is 3 (9 checks with the 3 default platforms = ~$0.72, or ~$0.63 on Silver plans and above; fits within agent-payment ceilings). Use 5 for standard audits, 10 for deep audits. Maximum 20.",
            "default": 3
          },
          "country": {
            "title": "Country",
            "enum": [
              "US",
              "GB",
              "CA",
              "AU",
              "DE",
              "FR",
              "ES",
              "IT",
              "NL",
              "IN",
              "BR",
              "MX",
              "JP",
              "SG",
              "AE",
              "ZA",
              "IE",
              "NZ",
              "SE",
              "PL"
            ],
            "type": "string",
            "description": "Use this field when the user wants answers as seen from a specific country (for example 'check what UK users see'). Two-letter code such as US, GB, CA, AU, DE, FR, ES, IT, NL, IN, BR, MX, JP, SG, AE, ZA, IE, NZ, SE, PL. Defaults to US. Applied through each platform's location setting where available and through the question wording for the rest.",
            "default": "US"
          },
          "repeatIndex": {
            "title": "Sample number",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Use this field when the same questions are checked several times to see how steady the answers are. Which sample this run is (1 to 10). It is copied onto every result as repeat_index so repeated samples of one question stay separate. It changes nothing else and costs nothing extra. Defaults to 1.",
            "default": 1
          },
          "trendMode": {
            "title": "Compare with the previous run",
            "type": "boolean",
            "description": "Use this field when the user runs the same brand on a schedule and wants to see change over time. When on (default), the run compares its GEO score, mention rate and share of voice with the last run for the same brand and country, and reports the change in the summary record. No extra charge.",
            "default": true
          },
          "responseFormat": {
            "title": "Response detail level",
            "enum": [
              "detailed",
              "concise"
            ],
            "type": "string",
            "description": "Controls how much AI response text is stored per check. 'detailed' (default) keeps the first 800 chars of each AI response — best for human review and trend analysis. 'concise' keeps only the first 200 chars and trims mention context — best for AI agents (3× smaller token footprint per record). Output schema is otherwise identical.",
            "default": "detailed"
          },
          "industry": {
            "title": "Industry / category",
            "type": "string",
            "description": "Your brand's industry or product category (e.g., 'SEO', 'CRM', 'email marketing', 'AI writing'). Used to make query templates more specific and relevant. If left empty, queries will use generic category language."
          },
          "webhookUrl": {
            "title": "Webhook URL (optional)",
            "type": "string",
            "description": "An optional HTTPS URL to receive a POST request when the actor run completes. The payload will be the full run summary JSON including GEO score, mention rates, and recommendations. Useful for triggering downstream automation in Make.com, Zapier, n8n, or Slack."
          },
          "demoMode": {
            "title": "Demo / health check mode",
            "type": "boolean",
            "description": "Set to true to run a health check without making any AI API calls. The actor will exit successfully with an informational message. Useful for testing actor connectivity and Apify scheduling without consuming API credits.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}