{
  "openapi": "3.0.1",
  "info": {
    "title": "AI Visibility Tracker: ChatGPT, Claude, Gemini & Perplexity",
    "description": "AI visibility tracker for GEO and AEO: see if ChatGPT, Claude, Gemini, Perplexity and Google AI Overviews name your brand, with position vs competitors, sentiment, share of voice, cited sources and change since the last run. Full answers, no API keys, no subscription.",
    "version": "0.1",
    "x-build-id": "wQ5y9QegFsxeEhyKb"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/betterscaperever~ai-visibility-tracker-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-betterscaperever-ai-visibility-tracker-scraper",
        "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/betterscaperever~ai-visibility-tracker-scraper/runs": {
      "post": {
        "operationId": "runs-sync-betterscaperever-ai-visibility-tracker-scraper",
        "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/betterscaperever~ai-visibility-tracker-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-betterscaperever-ai-visibility-tracker-scraper",
        "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",
          "prompts"
        ],
        "properties": {
          "brand": {
            "title": "Brand",
            "type": "string",
            "description": "The brand name to look for in the AI answers."
          },
          "prompts": {
            "title": "Prompts",
            "type": "array",
            "description": "The questions your customers would ask an AI assistant, one per line. Each prompt is asked to every selected engine.",
            "items": {
              "type": "string"
            }
          },
          "competitors": {
            "title": "Competitors",
            "type": "array",
            "description": "Competitor brand names. Used to rank your brand's position and to compute share of voice.",
            "items": {
              "type": "string"
            }
          },
          "engines": {
            "title": "AI engines",
            "uniqueItems": true,
            "type": "array",
            "description": "Which AI assistants to ask. One answer is produced per prompt and engine. Google AI Overview is read from Google's results page by Apify's own scraper, which is billed separately.",
            "items": {
              "type": "string",
              "enum": [
                "chatgpt",
                "claude",
                "gemini",
                "perplexity",
                "google_ai_overview"
              ],
              "enumTitles": [
                "ChatGPT (OpenAI)",
                "Claude (Anthropic)",
                "Gemini (Google)",
                "Perplexity",
                "Google AI Overview"
              ]
            },
            "default": [
              "chatgpt",
              "claude",
              "gemini",
              "perplexity"
            ]
          },
          "modelTier": {
            "title": "Model quality",
            "enum": [
              "fast",
              "flagship"
            ],
            "type": "string",
            "description": "Fast uses each provider's low-cost model and keeps the AI model cost low. Flagship uses the models closest to what people get in the consumer apps and costs several times more.",
            "default": "fast"
          },
          "brandAliases": {
            "title": "Other spellings of your brand",
            "type": "array",
            "description": "Alternative names that should count as your brand, for example the legal name or a product name.",
            "items": {
              "type": "string"
            }
          },
          "brandDomain": {
            "title": "Your website",
            "type": "string",
            "description": "For example hubspot.com. When set, each answer reports whether your site is among the cited sources."
          },
          "country": {
            "title": "Country",
            "pattern": "^[A-Za-z]{2}$",
            "type": "string",
            "description": "Two-letter country code (IT, US, DE...) used as the search location. Applied to ChatGPT, Claude and Gemini only."
          },
          "runsPerPrompt": {
            "title": "Runs per prompt",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "AI answers change from one request to the next. Ask each prompt several times for a more reliable mention rate. Each run is charged.",
            "default": 1
          },
          "analyzeSentiment": {
            "title": "Sentiment of each mention",
            "type": "boolean",
            "description": "For every answer that names your brand, classify whether it is portrayed as positive, neutral or negative. Uses one short extra AI request per answer, on a low-cost model.",
            "default": true
          },
          "trackHistory": {
            "title": "Compare with the previous run",
            "type": "boolean",
            "description": "Keep the key numbers of each run and report what changed since the last run with the same brand, prompts, engines, model quality and country. Only metrics are stored, never answer text.",
            "default": true
          },
          "includeAnswerText": {
            "title": "Include the full answer text",
            "type": "boolean",
            "description": "Turn off to keep the dataset small when you only need the metrics.",
            "default": true
          },
          "maxConcurrency": {
            "title": "Max parallel requests",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many answers to request at the same time.",
            "default": 5
          },
          "maxModelCostUsd": {
            "title": "Max AI model cost per run (USD)",
            "minimum": 0,
            "type": "number",
            "description": "AI model usage is billed separately from this Actor's price, so the run's \"Maximum cost per run\" does not limit it. The run stops asking new questions before the billed AI model cost would pass this amount, including the 10x rate Apify's OpenRouter Actor charges on the free plan. 0 = no limit.",
            "default": 2
          },
          "openRouterApiKey": {
            "title": "Your own OpenRouter API key (optional)",
            "type": "string",
            "description": "Leave empty to have the AI model usage billed to your Apify account automatically. Paste an OpenRouter key (it starts with sk-or-) to have it billed to your OpenRouter account instead: useful on the Apify free plan, where automatic billing costs ten times more. Keys from OpenAI, Anthropic, Google or Perplexity do not work. The key is stored encrypted and is sent only to OpenRouter."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}