{
  "openapi": "3.0.1",
  "info": {
    "title": "AI Search Visibility Tracker | ChatGPT, Perplexity, Claude",
    "description": "See if ChatGPT, Perplexity and Claude recommend your brand. Ask real buyer questions, get mention rate, rank vs competitors, cited sources and share of voice. Schedule it to catch changes.",
    "version": "1.0",
    "x-build-id": "LestZIEs5jZImFz2q"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/trev0n~ai-search-visibility-tracker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-trev0n-ai-search-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/trev0n~ai-search-visibility-tracker/runs": {
      "post": {
        "operationId": "runs-sync-trev0n-ai-search-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/trev0n~ai-search-visibility-tracker/run-sync": {
      "post": {
        "operationId": "run-sync-trev0n-ai-search-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": "Brand or product name as people write it, e.g. \"Notion\". You can add spellings after a colon: \"Notion: Notion AI, notion.so\"."
          },
          "brandDomains": {
            "title": "Your website domains",
            "type": "array",
            "description": "Used to detect when an AI answer cites your own site, e.g. notion.so.",
            "items": {
              "type": "string"
            }
          },
          "brandAliases": {
            "title": "Other names of your brand",
            "type": "array",
            "description": "Product names, old names or common misspellings that also count as a mention.",
            "items": {
              "type": "string"
            }
          },
          "competitors": {
            "title": "Competitors",
            "type": "array",
            "description": "One per line. A name (\"Asana\"), a domain (\"asana.com\") or both (\"Asana: asana.com\"). For names that are everyday words, enter the domain only (\"Monday.com\").",
            "items": {
              "type": "string"
            }
          },
          "prompts": {
            "title": "Questions to ask",
            "maxItems": 200,
            "type": "array",
            "description": "The questions your customers type into ChatGPT. Do not name your brand in them, ask like a buyer would.",
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "Keywords (questions written for you)",
            "maxItems": 100,
            "type": "array",
            "description": "Category keywords like \"project management tools\" or \"CRM for startups\". Each becomes buyer questions such as \"What are the best project management tools?\".",
            "items": {
              "type": "string"
            }
          },
          "language": {
            "title": "Language of the generated questions",
            "enum": [
              "en",
              "pl",
              "de",
              "es",
              "fr",
              "it",
              "pt",
              "nl"
            ],
            "type": "string",
            "description": "Used for the questions written from keywords. Your own questions are asked as you typed them.",
            "default": "en"
          },
          "questionsPerKeyword": {
            "title": "Questions per keyword",
            "minimum": 1,
            "maximum": 3,
            "type": "integer",
            "description": "How many different buyer questions to write for each keyword (1 to 3).",
            "default": 1
          },
          "engines": {
            "title": "AI assistants",
            "type": "array",
            "description": "Which assistants to ask. Each question asked to one assistant is one check.",
            "items": {
              "type": "string",
              "enum": [
                "chatgpt",
                "perplexity",
                "claude"
              ],
              "enumTitles": [
                "ChatGPT (with web search)",
                "Perplexity",
                "Claude (with web search)"
              ]
            },
            "default": [
              "chatgpt",
              "perplexity",
              "claude"
            ]
          },
          "country": {
            "title": "Country of the searcher",
            "type": "string",
            "description": "Two-letter country code like US, GB, DE, PL. AI assistants search the web from this country, so local brands show up as they would for local buyers.",
            "default": "US"
          },
          "repeats": {
            "title": "Ask each question how many times",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "AI answers vary from one ask to the next. Asking 2 or 3 times gives a steadier mention rate. Each ask is one check.",
            "default": 1
          },
          "maxChecks": {
            "title": "Max checks per run",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Hard limit on questions × assistants × repeats in one run (at most 500).",
            "default": 40
          },
          "trackChanges": {
            "title": "Compare with the previous run",
            "type": "boolean",
            "description": "Shows NEW_MENTION, LOST_MENTION, RANK_UP or RANK_DOWN for each question. Schedule the actor weekly to watch your AI visibility over time.",
            "default": true
          },
          "stateKey": {
            "title": "Tracking name",
            "type": "string",
            "description": "Runs with the same tracking name are compared with each other. Empty = the brand name."
          },
          "includeAnswerText": {
            "title": "Include the full answer",
            "type": "boolean",
            "description": "Keep the complete text of every AI answer in the results.",
            "default": true
          },
          "maxConcurrency": {
            "title": "Parallel checks",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many questions are asked at the same time.",
            "default": 4
          },
          "openaiApiKey": {
            "title": "Your OpenAI API key (optional)",
            "type": "string",
            "description": "Use your own key and pay the lower \"own key\" price per check. Empty = we use ours."
          },
          "perplexityApiKey": {
            "title": "Your Perplexity API key (optional)",
            "type": "string",
            "description": "Use your own key and pay the lower \"own key\" price per check."
          },
          "anthropicApiKey": {
            "title": "Your Anthropic API key (optional)",
            "type": "string",
            "description": "Use your own key and pay the lower \"own key\" price per check."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}