{
  "openapi": "3.0.1",
  "info": {
    "title": "AI Brand Visibility & GEO Rank Tracker",
    "description": "Monitor brand mentions, Share of Voice (SOV), competitor recommendations, sentiment, and citation sources across AI search engines (Perplexity, ChatGPT, Gemini, Claude). Uses your own API keys. Essential for Generative Engine Optimization (GEO).",
    "version": "1.0",
    "x-build-id": "7EXdvcX0rNSa0ghQR"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/kamerozkan~ai-brand-visibility-tracker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-kamerozkan-ai-brand-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/kamerozkan~ai-brand-visibility-tracker/runs": {
      "post": {
        "operationId": "runs-sync-kamerozkan-ai-brand-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/kamerozkan~ai-brand-visibility-tracker/run-sync": {
      "post": {
        "operationId": "run-sync-kamerozkan-ai-brand-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",
        "properties": {
          "brandName": {
            "title": "Target Brand Name",
            "type": "string",
            "description": "The exact brand, company, or product name you want to monitor (e.g. 'Linear', 'Shopify', 'Stripe')."
          },
          "brandDomain": {
            "title": "Target Brand Domain",
            "type": "string",
            "description": "Your brand's primary website domain to track direct citation links (e.g. 'linear.app', 'shopify.com')."
          },
          "brandAliases": {
            "title": "Brand Aliases / Alternative Names",
            "type": "array",
            "description": "Other common names or variations used for your brand.",
            "items": {
              "type": "string"
            }
          },
          "competitors": {
            "title": "Competitor Brands to Benchmark",
            "type": "array",
            "description": "List of competitors to monitor for co-mentions and calculate relative Share of Voice (SOV).",
            "items": {
              "type": "string"
            }
          },
          "industry": {
            "title": "Industry / Product Category",
            "type": "string",
            "description": "Industry or software category used to generate automated recommendation prompts (e.g. 'project management', 'CRM', 'accounting')."
          },
          "platforms": {
            "title": "AI Platforms to Audit",
            "type": "array",
            "description": "AI engines to query. Each engine needs your own API key below: without a key it is not queried and you get free DuckDuckGo search rows instead, marked as not being AI answers.",
            "items": {
              "type": "string",
              "enum": [
                "perplexity",
                "chatgpt",
                "gemini",
                "claude"
              ],
              "enumTitles": [
                "Perplexity AI",
                "ChatGPT (OpenAI)",
                "Google Gemini",
                "Claude (Anthropic)"
              ]
            },
            "default": [
              "perplexity",
              "chatgpt",
              "gemini"
            ]
          },
          "customQueries": {
            "title": "Custom Search Queries (Prompts)",
            "type": "array",
            "description": "Specific search queries or buyer prompts to submit to each AI engine.",
            "items": {
              "type": "string"
            }
          },
          "queryTemplates": {
            "title": "Automated Query Categories",
            "type": "array",
            "description": "Automatically generates category-specific prompts if custom queries are not provided.",
            "items": {
              "type": "string",
              "enum": [
                "best_tools",
                "alternatives",
                "recommendations"
              ],
              "enumTitles": [
                "Best Tools in Category",
                "Competitor Alternatives",
                "Software Recommendations"
              ]
            },
            "default": [
              "best_tools",
              "alternatives",
              "recommendations"
            ]
          },
          "maxQueriesPerPlatform": {
            "title": "Max Queries per Platform",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Maximum number of queries to execute per selected AI platform.",
            "default": 3
          },
          "openaiApiKey": {
            "title": "OpenAI API Key (needed for real ChatGPT answers)",
            "type": "string",
            "description": "Provide your own OpenAI API key to execute queries directly with your account models."
          },
          "perplexityApiKey": {
            "title": "Perplexity API Key (needed for real Perplexity answers)",
            "type": "string",
            "description": "Provide your own Perplexity API key to query Sonar models with real-time web citations."
          },
          "geminiApiKey": {
            "title": "Google Gemini API Key (needed for real Gemini answers)",
            "type": "string",
            "description": "Provide your own Google Gemini API key to query Gemini 1.5 with Google Search grounding."
          },
          "anthropicApiKey": {
            "title": "Anthropic Claude API Key (needed for real Claude answers)",
            "type": "string",
            "description": "Provide your own Anthropic API key to query Claude 3.5 models."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}