{
  "openapi": "3.0.1",
  "info": {
    "title": "AI Visibility Tracker - ChatGPT, Claude, Gemini & Perplexity",
    "description": "Track how AI assistants talk about your brand: ask ChatGPT, Claude, Gemini and Perplexity (live web search, your own API keys) the questions buyers ask, and get mention rate, rank, cited sources and share of voice against competitors, with changes since the last run.",
    "version": "1.0",
    "x-build-id": "1hNkC7v2pKk7qByuq"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/sonic_scraper~ai-visibility-tracker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-sonic_scraper-ai-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/sonic_scraper~ai-visibility-tracker/runs": {
      "post": {
        "operationId": "runs-sync-sonic_scraper-ai-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/sonic_scraper~ai-visibility-tracker/run-sync": {
      "post": {
        "operationId": "run-sync-sonic_scraper-ai-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": "Your brand",
            "type": "string",
            "description": "The brand to track, as people write it, e.g. 'Notion'."
          },
          "brandAliases": {
            "title": "Other names for your brand",
            "type": "array",
            "description": "Product names or spellings that also count as a mention, e.g. 'Notion AI'.",
            "items": {
              "type": "string"
            }
          },
          "brandDomains": {
            "title": "Your website domains",
            "type": "array",
            "description": "Domains that count as your brand being cited as a source, e.g. notion.com. Subdomains are included.",
            "items": {
              "type": "string"
            }
          },
          "competitors": {
            "title": "Competitors",
            "type": "array",
            "description": "One per line, optionally with domains after '|': 'Confluence | atlassian.com'. Aliases in brackets: 'ClickUp (Click Up) | clickup.com'.",
            "items": {
              "type": "string"
            }
          },
          "prompts": {
            "title": "Questions to ask",
            "type": "array",
            "description": "The questions your buyers ask AI assistants, e.g. 'What is the best wiki tool for a startup?'.",
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "Topics (generates questions)",
            "type": "array",
            "description": "Each topic becomes 3 neutral questions: 'What are the best {topic}?', 'Which {topic} would you recommend, and why?' and 'Compare the top {topic} options for a small business.'",
            "items": {
              "type": "string"
            }
          },
          "anthropicApiKey": {
            "title": "Anthropic API key (Claude)",
            "type": "string",
            "description": "Your key from console.anthropic.com. Claude answers with live web search; you pay Anthropic for tokens and searches."
          },
          "openaiApiKey": {
            "title": "OpenAI API key (ChatGPT)",
            "type": "string",
            "description": "Your key from platform.openai.com. Uses the Responses API with the web_search tool."
          },
          "geminiApiKey": {
            "title": "Google Gemini API key",
            "type": "string",
            "description": "Your key from Google AI Studio. Uses Grounding with Google Search."
          },
          "perplexityApiKey": {
            "title": "Perplexity API key",
            "type": "string",
            "description": "Your key from the Perplexity API console. Uses Sonar, which always searches the web."
          },
          "engines": {
            "title": "Engines",
            "type": "array",
            "description": "Limit the run to these engines. By default every engine you gave a key for is used.",
            "items": {
              "type": "string",
              "enum": [
                "claude",
                "chatgpt",
                "gemini",
                "perplexity"
              ],
              "enumTitles": [
                "Claude",
                "ChatGPT (OpenAI)",
                "Gemini",
                "Perplexity"
              ]
            }
          },
          "claudeModel": {
            "title": "Claude model",
            "enum": [
              "claude-opus-5-5",
              "claude-sonnet-5-5",
              "claude-haiku-5-5"
            ],
            "type": "string",
            "description": "Opus 5.5 gives the most representative answers; Sonnet 5.5 and Haiku 5.5 cost you less per answer.",
            "default": "claude-opus-5-5"
          },
          "openaiModel": {
            "title": "OpenAI model",
            "type": "string",
            "description": "Any OpenAI model that supports the web_search tool.",
            "default": "gpt-6.2-astra"
          },
          "geminiModel": {
            "title": "Gemini model",
            "type": "string",
            "description": "Any Gemini model that supports Grounding with Google Search.",
            "default": "gemini-4-hydrogen"
          },
          "perplexityModel": {
            "title": "Perplexity model",
            "type": "string",
            "description": "A Sonar model, e.g. 'sonar'.",
            "default": "sonar"
          },
          "samplesPerPrompt": {
            "title": "Samples per question",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Ask each question this many times per engine. AI answers vary; 3 samples give a more reliable mention rate.",
            "default": 1
          },
          "country": {
            "title": "Country",
            "type": "string",
            "description": "Two-letter country code for localized search (Claude and ChatGPT), e.g. US, GB, DE."
          },
          "city": {
            "title": "City",
            "type": "string",
            "description": "Optional city for localized search, used with country."
          },
          "maxSearchesPerAnswer": {
            "title": "Max web searches per answer (Claude)",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Caps Claude's web searches per answer, and so your search cost.",
            "default": 3
          },
          "stateKey": {
            "title": "Tracking name",
            "type": "string",
            "description": "Give a scheduled task a name to get changes since its previous run (mention rate, citation rate, share of voice, rank)."
          },
          "includeAnswerText": {
            "title": "Include answer text",
            "type": "boolean",
            "description": "Save each full AI answer in the row.",
            "default": true
          },
          "maxAnswers": {
            "title": "Max answers",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Upper limit on answers per run (questions x engines x samples).",
            "default": 200
          },
          "maxConcurrency": {
            "title": "Parallel requests per engine",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Lower it if your API key has tight rate limits.",
            "default": 3
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}