{
  "openapi": "3.0.1",
  "info": {
    "title": "AI Visibility Tracker: ChatGPT Search & LLM Brand Mentions",
    "description": "Check if ChatGPT search (GPT-6), Grok 4.7 and DeepSeek V4 Pro mention and cite your brand. LLM visibility for GEO/AEO: mention rank, citations, competitors, share of voice. Add Perplexity, Gemini and AI Overviews with your own keys.",
    "version": "0.1",
    "x-build-id": "iaiP1JakpId09RetK"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/qlufiq~ai-answer-visibility-tracker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-qlufiq-ai-answer-visibility-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/qlufiq~ai-answer-visibility-tracker/runs": {
      "post": {
        "operationId": "runs-sync-qlufiq-ai-answer-visibility-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/qlufiq~ai-answer-visibility-tracker/run-sync": {
      "post": {
        "operationId": "run-sync-qlufiq-ai-answer-visibility-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",
          "prompts"
        ],
        "properties": {
          "brandName": {
            "title": "Brand name",
            "type": "string",
            "description": "The brand you want to track, e.g. \"Notion\"."
          },
          "brandDomain": {
            "title": "Brand domain",
            "type": "string",
            "description": "Your website domain. Used to detect when AI engines cite your site, e.g. \"notion.so\"."
          },
          "brandDomains": {
            "title": "Additional brand domains",
            "type": "array",
            "description": "Other domains you own, e.g. help center or docs sites (\"notion.site\"). Citations to any of them (and their subdomains) count as your brand being cited.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "brandAliases": {
            "title": "Brand aliases",
            "type": "array",
            "description": "Other names the brand appears as (product names, abbreviations).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "prompts": {
            "title": "Prompts",
            "type": "array",
            "description": "Questions your customers ask AI assistants. Each prompt is checked on every selected engine.",
            "items": {
              "type": "string"
            }
          },
          "competitors": {
            "title": "Competitors",
            "type": "array",
            "description": "List of competitors as JSON objects: {\"name\": \"Coda\", \"domain\": \"coda.io\", \"domains\": [\"coda.help\"], \"aliases\": []}.",
            "default": []
          },
          "engines": {
            "title": "AI engines",
            "type": "array",
            "description": "Which engines to check. ChatGPT search (GPT-6), Grok 4.7, DeepSeek V4 Pro and GLM-5.3 work out of the box. Perplexity, Gemini and Google AI Overviews need your own API key (see 'Bring your own API keys').",
            "items": {
              "type": "string",
              "enum": [
                "chatgpt",
                "grok_knowledge",
                "deepseek_knowledge",
                "glm_knowledge",
                "perplexity",
                "gemini",
                "google_aio"
              ],
              "enumTitles": [
                "ChatGPT search, GPT-6 (live web, with citations)",
                "Grok 4.7 model knowledge (no web search)",
                "DeepSeek V4 Pro model knowledge (no web search)",
                "GLM-5.3 model knowledge (no web search)",
                "Perplexity Sonar (needs your Perplexity key)",
                "Gemini + Google Search (needs your Gemini key)",
                "Google AI Overviews (needs your SerpApi key)"
              ]
            },
            "default": [
              "chatgpt",
              "grok_knowledge",
              "deepseek_knowledge"
            ]
          },
          "repeats": {
            "title": "Repeats per prompt",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "AI answers vary between runs. Repeat each check up to 5 times to measure stability.",
            "default": 1
          },
          "country": {
            "title": "Country",
            "type": "string",
            "description": "Two-letter country code used for location-aware search (ChatGPT search, Perplexity, Google AI Overviews).",
            "default": "us"
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Language code, e.g. en, id, de.",
            "default": "en"
          },
          "sentiment": {
            "title": "Classify sentiment",
            "type": "boolean",
            "description": "Classify how each answer talks about your brand (positive / neutral / negative).",
            "default": false
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many checks run in parallel. A ChatGPT search check takes about 25–30 seconds.",
            "default": 4
          },
          "openaiApiKey": {
            "title": "Your OpenAI API key (optional, BYOK)",
            "type": "string",
            "description": "Optional. With your own OpenAI key, ChatGPT search runs on the official OpenAI API at the BYOK price."
          },
          "perplexityApiKey": {
            "title": "Your Perplexity API key (optional, BYOK)",
            "type": "string",
            "description": "Required for the Perplexity engine."
          },
          "geminiApiKey": {
            "title": "Your Gemini API key (optional, BYOK)",
            "type": "string",
            "description": "Required for the Gemini engine."
          },
          "serpapiApiKey": {
            "title": "Your SerpApi key (optional, BYOK)",
            "type": "string",
            "description": "Required for the Google AI Overviews engine."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}