{
  "openapi": "3.0.1",
  "info": {
    "title": "AI Visibility Tracker: ChatGPT, Perplexity, Gemini, Claude",
    "description": "See how often ChatGPT, Perplexity, Gemini and Claude mention, rank and cite your brand vs competitors for the questions your customers ask. Visibility score, share of voice, content gaps and a shareable HTML report.",
    "version": "0.1",
    "x-build-id": "kQ1upJvgGck4CyJhf"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/borjagvo~ai-visibility-tracker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-borjagvo-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/borjagvo~ai-visibility-tracker/runs": {
      "post": {
        "operationId": "runs-sync-borjagvo-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/borjagvo~ai-visibility-tracker/run-sync": {
      "post": {
        "operationId": "run-sync-borjagvo-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",
        "required": [
          "brand"
        ],
        "properties": {
          "brand": {
            "title": "Your brand",
            "type": "string",
            "description": "The brand, product or company to track, exactly as people write it (e.g. Notion)."
          },
          "brandDomains": {
            "title": "Your website domain(s)",
            "type": "array",
            "description": "Used to detect when AI answers cite your site as a source (e.g. notion.so). Subdomains are included automatically.",
            "items": {
              "type": "string"
            }
          },
          "brandAliases": {
            "title": "Other names for your brand (optional)",
            "type": "array",
            "description": "Alternative spellings or product names that should count as a mention (e.g. Notion AI, Notion Labs).",
            "items": {
              "type": "string"
            }
          },
          "competitors": {
            "title": "Competitors",
            "type": "array",
            "description": "One per line. Optionally add the domain and aliases separated by \"|\": \"Asana | asana.com\" or \"Monday | monday.com | monday.com Work OS\".",
            "items": {
              "type": "string"
            }
          },
          "prompts": {
            "title": "Prompts (questions your customers ask AI)",
            "type": "array",
            "description": "Unbranded questions people ask AI assistants when looking for a solution like yours. 10–50 prompts give a reliable picture.",
            "items": {
              "type": "string"
            }
          },
          "engines": {
            "title": "AI engines",
            "type": "array",
            "description": "Which AI assistants to check. Each prompt is asked to every selected engine with live web search enabled.",
            "items": {
              "type": "string",
              "enum": [
                "chatgpt",
                "perplexity",
                "gemini",
                "claude"
              ],
              "enumTitles": [
                "ChatGPT (OpenAI)",
                "Perplexity",
                "Gemini (Google)",
                "Claude (Anthropic)"
              ]
            },
            "default": [
              "chatgpt",
              "perplexity",
              "gemini",
              "claude"
            ]
          },
          "country": {
            "title": "Country",
            "type": "string",
            "description": "Two-letter country code used to localize web search (US, GB, DE, ES, FR, IN…).",
            "default": "US"
          },
          "city": {
            "title": "City (optional)",
            "type": "string",
            "description": "Localize answers further, useful for local businesses (e.g. Madrid)."
          },
          "language": {
            "title": "Answer language",
            "type": "string",
            "description": "ISO code of the language answers should be written in, or \"auto\" to follow the prompt's language.",
            "default": "auto"
          },
          "runsPerPrompt": {
            "title": "Runs per prompt",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "AI answers vary between runs. Ask each prompt 2–3 times for more stable percentages.",
            "default": 1
          },
          "topic": {
            "title": "Topic for prompt ideas",
            "type": "string",
            "description": "Describe your category (e.g. \"project management software for small teams\") to auto-generate realistic prompts."
          },
          "generatePrompts": {
            "title": "Number of prompts to generate",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "Generated prompts are added to the ones you entered. Requires a paid Apify plan or your own API key.",
            "default": 0
          },
          "caseSensitive": {
            "title": "Case-sensitive matching",
            "type": "boolean",
            "description": "Turn on if your brand is also a common word (e.g. \"Linear\", \"Notion\") to only count capitalized mentions.",
            "default": false
          },
          "includeAnswerText": {
            "title": "Include full AI answers",
            "type": "boolean",
            "description": "Store each AI answer's full text next to the analysis.",
            "default": true
          },
          "maxConcurrency": {
            "title": "Parallel requests",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many AI answers to request at the same time.",
            "default": 4
          },
          "chatgptModel": {
            "title": "ChatGPT model",
            "type": "string",
            "description": "OpenAI model used for the ChatGPT engine.",
            "default": "gpt-6.1-sol"
          },
          "perplexityModel": {
            "title": "Perplexity model",
            "type": "string",
            "description": "sonar or sonar-pro.",
            "default": "sonar"
          },
          "geminiModel": {
            "title": "Gemini model",
            "type": "string",
            "description": "Gemini model with Google Search grounding.",
            "default": "gemini-3.8-flash"
          },
          "claudeModel": {
            "title": "Claude model",
            "type": "string",
            "description": "Anthropic model used for the Claude engine, e.g. claude-opus-5-5, claude-sonnet-5-5 or claude-haiku-4-5.",
            "default": "claude-opus-5-5"
          },
          "openaiApiKey": {
            "title": "OpenAI API key",
            "type": "string",
            "description": "Optional. With your own key you only pay a small analysis fee per answer and API costs go to your OpenAI account."
          },
          "perplexityApiKey": {
            "title": "Perplexity API key",
            "type": "string",
            "description": "Optional."
          },
          "geminiApiKey": {
            "title": "Google Gemini API key",
            "type": "string",
            "description": "Optional."
          },
          "anthropicApiKey": {
            "title": "Anthropic API key",
            "type": "string",
            "description": "Optional."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}