{
  "openapi": "3.0.1",
  "info": {
    "title": "AI Overviews Tracker — Brand Visibility in AI Answers",
    "description": "Track whether your brand appears in Google AI Overviews and in ChatGPT, Perplexity and Gemini answers: mention rate, recommendation, sentiment, share of voice and cited sources for any keyword.",
    "version": "2.0",
    "x-build-id": "l2wgcKP3flv0UtMJc"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/khadinakbar~ai-overviews-tracker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-khadinakbar-ai-overviews-tracker",
        "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-overviews-tracker/runs": {
      "post": {
        "operationId": "runs-sync-khadinakbar-ai-overviews-tracker",
        "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-overviews-tracker/run-sync": {
      "post": {
        "operationId": "run-sync-khadinakbar-ai-overviews-tracker",
        "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",
          "keywords"
        ],
        "properties": {
          "brandName": {
            "title": "Brand / product name to track",
            "type": "string",
            "description": "Your brand, product, or company name as people write it in sentences (for example 'HubSpot' or 'Notion'). The Actor checks every AI answer for this exact name. For domain-only tracking use the brandDomain field below."
          },
          "keywords": {
            "title": "Commercial keywords to query",
            "type": "array",
            "description": "Commercial keywords to check, one per line. Each keyword becomes one natural question sent to every selected engine. Example: 'best CRM software', 'email marketing tools'. Up to 20 keywords per run.",
            "items": {
              "type": "string"
            }
          },
          "competitors": {
            "title": "Competitor brand names (optional)",
            "type": "array",
            "description": "Competitor brand names to compare against your brand in AI overviews. The actor tracks whether each competitor is mentioned, recommended, and at what position — and computes share of voice (your brand's mentions vs total brand+competitor mentions). Example: ['Salesforce', 'Pipedrive', 'Monday.com']. NOT domains — enter brand names as they appear in sentences. Leave empty to skip competitor comparison.",
            "items": {
              "type": "string"
            }
          },
          "brandDomain": {
            "title": "Your website domain (optional)",
            "type": "string",
            "description": "Your site, for example 'hubspot.com'. When set, every row says whether your domain is one of the sources the engine cited (field brand_domain_cited). Helps when the answer links to you without naming the brand."
          },
          "platforms": {
            "title": "AI platforms to query",
            "type": "array",
            "description": "Which engines to check. 'google-aio' reads the AI Overview box Google shows above the results (asked once per keyword, exactly as people type it; rows where Google shows no overview are saved free of charge). 'perplexity', 'chatgpt' and 'gemini' read those assistants' answers with live web search. 'claude' is optional and checks one sampled query per run. Default: google-aio, perplexity, chatgpt, gemini.",
            "items": {
              "type": "string"
            },
            "default": [
              "google-aio",
              "perplexity",
              "chatgpt",
              "gemini"
            ]
          },
          "queryTemplates": {
            "title": "Query template categories",
            "type": "array",
            "description": "Built-in purchase-intent query templates to generate for each keyword. Options: 'best_of' (best [keyword] solutions in 2026), 'comparison' (how do leading [keyword] platforms compare), 'how_to_choose' (how to select the right [keyword] for your business), 'buyer_intent' (what [keyword] do most companies use), 'feature_query' (what features matter in a good [keyword]), 'versus' (your brand vs alternatives for [keyword] — requires brandName). Defaults to best_of, comparison, how_to_choose.",
            "items": {
              "type": "string"
            },
            "default": [
              "best_of",
              "comparison",
              "how_to_choose"
            ]
          },
          "customQueries": {
            "title": "Custom queries (optional)",
            "type": "array",
            "description": "Your own full questions, sent as written to every selected engine for every keyword. Supports {keyword} and {brand} placeholders, for example 'What do analysts say about {brand} for {keyword}?'. Plain English questions only, not URLs.",
            "items": {
              "type": "string"
            }
          },
          "maxQueriesPerKeyword": {
            "title": "Max queries per keyword",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many different questions to ask per keyword (1-10). Default 1, so a keyword costs one check per engine. Every question on every engine is one billed check, except Google rows with no overview, which are free. Raise to 3 for wider coverage.",
            "default": 1
          },
          "countryCode": {
            "title": "Country for Google",
            "type": "string",
            "description": "Two-letter country code used for the Google AI Overview check, for example 'us', 'gb', 'de'. Default 'us'.",
            "default": "us"
          },
          "languageCode": {
            "title": "Language for Google",
            "type": "string",
            "description": "Two-letter language code used for the Google AI Overview check. Default 'en'.",
            "default": "en"
          },
          "maxConcurrency": {
            "title": "Parallel checks (optional)",
            "minimum": 1,
            "maximum": 12,
            "type": "integer",
            "description": "How many checks run at the same time (1-12). Leave empty and the Actor picks 6 to 12 from the size of the run, so big runs do not get slower."
          },
          "responseFormat": {
            "title": "Response format",
            "enum": [
              "concise",
              "detailed"
            ],
            "type": "string",
            "description": "Controls the length of the overview_excerpt field stored per result. 'concise' stores the first 300 characters of the AI response — faster to review and lower storage. 'detailed' stores the first 550 characters — better for reading the full brand context and competitor mentions. Does not affect what is tracked or scored — only the excerpt length.",
            "default": "detailed"
          },
          "webhookUrl": {
            "title": "Webhook URL (optional)",
            "type": "string",
            "description": "Optional HTTPS address that receives the run summary as JSON when the run finishes (works with Make, Zapier, n8n and Slack webhooks)."
          },
          "demoMode": {
            "title": "Demo / health check mode",
            "type": "boolean",
            "description": "Set to true to verify the actor is functional without making any AI API calls and without consuming credits. The actor exits immediately with a success message. Use for integration testing, scheduling health checks, or MCP tool validation in CI pipelines. Set to false (default) for real brand visibility tracking runs.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}