{
  "openapi": "3.0.1",
  "info": {
    "title": "AI Brand Visibility Tracker: ChatGPT, Claude & Perplexity API",
    "description": "Track how often ChatGPT, Claude and Perplexity mention your brand vs competitors: rank in the answer, cited URLs, sentiment. Bring your own API keys. $8 per 1,000 answers.",
    "version": "0.1",
    "x-build-id": "hKATRKHmXCjwQKPvB"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/devdarfy~ai-brand-visibility-tracker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-devdarfy-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/devdarfy~ai-brand-visibility-tracker/runs": {
      "post": {
        "operationId": "runs-sync-devdarfy-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/devdarfy~ai-brand-visibility-tracker/run-sync": {
      "post": {
        "operationId": "run-sync-devdarfy-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",
        "required": [
          "brand",
          "prompts"
        ],
        "properties": {
          "brand": {
            "title": "Brand name",
            "type": "string",
            "description": "The brand you want to find in AI answers, written the way people say it (e.g. Notion, HubSpot). Matching is case-insensitive and whole-word.",
            "default": "Apify"
          },
          "brandDomains": {
            "title": "Brand website domains",
            "type": "array",
            "description": "Your domains, e.g. example.com. An answer that cites a URL on one of these domains (subdomains included) counts as a citation of your brand; the domain written in the text also counts as a mention.",
            "default": [
              "apify.com"
            ],
            "items": {
              "type": "string"
            }
          },
          "brandAliases": {
            "title": "Other names of the brand",
            "type": "array",
            "description": "Other spellings or product names that should count as a mention of your brand (e.g. \"HubSpot CRM\", \"Hub Spot\").",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "competitors": {
            "title": "Competitors",
            "type": "array",
            "description": "One competitor per line. Add aliases and domains after a | sign: \"Bright Data | Luminati | brightdata.com\". Each answer row says whether, where and how often every competitor was mentioned or cited.",
            "default": [
              "Bright Data | brightdata.com",
              "Zyte | zyte.com",
              "ScrapingBee | scrapingbee.com",
              "Oxylabs | oxylabs.io"
            ],
            "items": {
              "type": "string"
            }
          },
          "prompts": {
            "title": "Prompts (questions to ask)",
            "type": "array",
            "description": "Questions your customers might ask an AI assistant, one per line. Write {brand} to insert the brand name (e.g. \"Is {brand} worth it?\"). Every prompt is sent to every provider that has an API key; each answer is one dataset row.",
            "default": [
              "What are the best web scraping platforms?",
              "Which tool can I use to scrape a website without writing code?",
              "What is a good alternative to Bright Data for web scraping?"
            ],
            "items": {
              "type": "string"
            }
          },
          "samplesPerPrompt": {
            "title": "Answers per prompt",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "AI answers vary from one request to the next. Ask each prompt this many times per provider to measure a more stable visibility rate. Each answer is billed as one row.",
            "default": 1
          },
          "openaiApiKey": {
            "title": "OpenAI API key (ChatGPT models)",
            "type": "string",
            "description": "From platform.openai.com > API keys. Used for the Responses API with the web search tool."
          },
          "anthropicApiKey": {
            "title": "Anthropic API key (Claude models)",
            "type": "string",
            "description": "From platform.claude.com > API keys. Used for the Messages API with the web search tool."
          },
          "perplexityApiKey": {
            "title": "Perplexity API key (Sonar)",
            "type": "string",
            "description": "From perplexity.ai > API settings. Sonar always searches the web and returns its sources."
          },
          "openaiModel": {
            "title": "OpenAI model",
            "type": "string",
            "description": "Any OpenAI model that supports the Responses API and the web_search tool. Default: gpt-6-luna (OpenAI's lowest-priced model when this Actor was built).",
            "default": "gpt-6-luna"
          },
          "anthropicModel": {
            "title": "Claude model",
            "type": "string",
            "description": "Any Claude model id, e.g. claude-haiku-5-5 (lowest price), claude-sonnet-5-5 or claude-opus-5-5.",
            "default": "claude-haiku-5-5"
          },
          "anthropicEffort": {
            "title": "Claude effort",
            "enum": [
              "low",
              "medium",
              "high",
              "auto"
            ],
            "type": "string",
            "description": "How much the Claude model thinks before answering. Low keeps token cost down and is enough for this kind of question. Ignored on older models that do not support it.",
            "default": "low"
          },
          "perplexityModel": {
            "title": "Perplexity model",
            "type": "string",
            "description": "Sonar model id, e.g. sonar or sonar-pro.",
            "default": "sonar"
          },
          "webSearch": {
            "title": "Let ChatGPT and Claude search the web",
            "type": "boolean",
            "description": "On: OpenAI and Claude answer with live web search and cite sources, like ChatGPT search does for users. Off: they answer from their training data only (cheaper, no citations). Perplexity always searches.",
            "default": true
          },
          "maxSearchesPerAnswer": {
            "title": "Max web searches per Claude answer",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Upper limit of searches Claude may run for one answer. Anthropic bills web searches separately to your account.",
            "default": 2
          },
          "maxOutputTokens": {
            "title": "Max answer length (tokens)",
            "minimum": 100,
            "maximum": 8000,
            "type": "integer",
            "description": "Upper limit on the length of each answer, including model reasoning where the provider counts it. Longer answers mention more brands but cost more.",
            "default": 1200
          },
          "timeoutSecs": {
            "title": "Timeout per request (seconds)",
            "minimum": 10,
            "maximum": 600,
            "type": "integer",
            "description": "A request that takes longer is cancelled and retried.",
            "default": 120
          },
          "maxRetries": {
            "title": "Retries per request",
            "minimum": 0,
            "maximum": 6,
            "type": "integer",
            "description": "Retries after a timeout, network error, rate limit (429) or provider overload (5xx), with exponential back-off and Retry-After. A rejected key, missing quota or unknown model is not retried: that provider stops after one error row.",
            "default": 3
          },
          "concurrency": {
            "title": "Parallel requests per provider",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Lower this if your API account has low 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}