{
  "openapi": "3.0.1",
  "info": {
    "title": "AI Visibility Checker | Brand Mentions, GEO & AEO",
    "description": "Track brand mentions, citations, competitor rank and share of voice in AI API answers. Works with OpenAI, Gemini and Claude using your own keys. Compare runs and export reports. $0.01 per answer plus provider costs; Gemini has no live search.",
    "version": "1.0",
    "x-build-id": "ptdLsdk129l6fth6S"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/bottyprojects~ai-visibility-checker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-bottyprojects-ai-visibility-checker",
        "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/bottyprojects~ai-visibility-checker/runs": {
      "post": {
        "operationId": "runs-sync-bottyprojects-ai-visibility-checker",
        "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/bottyprojects~ai-visibility-checker/run-sync": {
      "post": {
        "operationId": "run-sync-bottyprojects-ai-visibility-checker",
        "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": [
          "brandName",
          "queries"
        ],
        "properties": {
          "brandName": {
            "title": "Brand or business name",
            "type": "string",
            "description": "Business, brand, product or shop name to detect in answers; not a private individual. Common spacing and hyphen variants match automatically."
          },
          "brandUrls": {
            "title": "Your URLs (website, Etsy shop, Amazon store …)",
            "type": "array",
            "description": "URLs used for citation matching. Own domains include subdomains; marketplace URLs match your shop, store or specified listing. Bare marketplace domains are ignored.",
            "items": {
              "type": "string"
            }
          },
          "brandAliases": {
            "title": "Other names (aliases)",
            "type": "array",
            "description": "Additional business or product names that count as mentions. Shop names from supplied Etsy URLs are added automatically.",
            "items": {
              "type": "string"
            }
          },
          "competitors": {
            "title": "Competitors (optional)",
            "type": "array",
            "description": "One competitor per line: Name | domain | alias:Other name. URLs match citations; names match mentions. A shop URL alone is also accepted.",
            "items": {
              "type": "string"
            }
          },
          "queries": {
            "title": "Buyer queries",
            "type": "array",
            "description": "Up to 200 buyer questions, one per line. Avoid your brand name for an unbiased mention check. Each selected engine receives each query; samples multiply checks.",
            "items": {
              "type": "string"
            }
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "free",
              "live"
            ],
            "type": "string",
            "description": "Free mode uses your Gemini key without web search; the $0.01 Actor fee per successful answer still applies. Provider free-tier eligibility and quotas vary; EEA/Switzerland/UK require paid Gemini access. Free-tier prompts may be used for model improvement: do not submit personal or confidential data. Free mode ignores engine/model selections below. Live mode uses your selected engines and keys; Gemini still never uses search grounding.",
            "default": "free"
          },
          "engines": {
            "title": "AI engines",
            "type": "array",
            "description": "Live mode: select OpenAI, Gemini or Claude. Engines without a buyer-supplied key are skipped. Gemini uses built-in knowledge only; API answers are not consumer-app results.",
            "items": {
              "type": "string",
              "enum": [
                "chatgpt",
                "gemini",
                "claude"
              ],
              "enumTitles": [
                "OpenAI API (models behind ChatGPT) + web search",
                "Gemini (built-in knowledge, no web search)",
                "Claude (Anthropic API + web search)"
              ]
            },
            "default": [
              "chatgpt",
              "gemini",
              "claude"
            ]
          },
          "geminiApiKey": {
            "title": "Gemini API key",
            "type": "string",
            "description": "Your own Gemini API key, entered only in this secret field. Gemini never uses Search grounding. Provider eligibility, regional restrictions and quotas apply; never put keys in queries."
          },
          "openaiApiKey": {
            "title": "OpenAI API key",
            "type": "string",
            "description": "Your own OpenAI API key, entered only in this secret field. Provider token and search charges are separate from the Actor fee."
          },
          "anthropicApiKey": {
            "title": "Anthropic (Claude) API key",
            "type": "string",
            "description": "Your own Anthropic API key, entered only in this secret field. Enable web search for your organisation if required. Provider charges are separate."
          },
          "openaiModel": {
            "title": "OpenAI model",
            "type": "string",
            "description": "Live mode: a model available to your key that supports the OpenAI Responses API and web_search tool. API results can differ from consumer apps.",
            "default": "gpt-5-mini"
          },
          "geminiModel": {
            "title": "Gemini model",
            "type": "string",
            "description": "Live mode: a Gemini model available to your key. Built-in knowledge only; Google Search grounding is disabled in every mode.",
            "default": "gemini-3.8-flash"
          },
          "claudeModel": {
            "title": "Claude model",
            "type": "string",
            "description": "Live mode: a Claude model available to your key that supports the web search tool.",
            "default": "claude-haiku-5-5"
          },
          "promptTemplate": {
            "title": "Prompt template",
            "type": "string",
            "description": "Use {query} where each buyer question should appear. Default {query} sends the question unchanged.",
            "default": "{query}"
          },
          "samplesPerQuery": {
            "title": "Samples per query",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Ask each question 1–5 times per engine. Each successful sample costs $0.01 plus any provider charges; more samples help assess answer variation.",
            "default": 1
          },
          "country": {
            "title": "Searcher country",
            "type": "string",
            "description": "Optional two-letter country code for approximate OpenAI/Claude search location, where supported. Does not change Gemini into live search."
          },
          "freeModels": {
            "title": "Free mode: Gemini models to try, in order",
            "type": "array",
            "description": "Free mode: try these Gemini models in order; fall back when a model is unavailable or reaches quota. Availability and free-tier eligibility depend on your key.",
            "default": [
              "gemini-3.8-flash",
              "gemini-3.6-flash",
              "gemini-3.5-flash-lite"
            ],
            "items": {
              "type": "string"
            }
          },
          "freeModeDelaySecs": {
            "title": "Free mode: seconds between requests",
            "minimum": 0,
            "maximum": 120,
            "type": "integer",
            "description": "Free mode: seconds between Gemini requests (0–120). Longer spacing may help with per-minute quotas but does not increase daily limits.",
            "default": 6
          },
          "forceWebSearch": {
            "title": "Always search the web",
            "type": "boolean",
            "description": "Live mode: require OpenAI web search when enabled; otherwise let the model decide. Claude decides whether to search. Gemini never searches.",
            "default": true
          },
          "trackerId": {
            "title": "Tracker ID",
            "type": "string",
            "description": "Reuse this ID for comparable checks across runs. Letters, digits, hyphens and underscores only. Built-in-knowledge and live-search results are tracked separately.",
            "default": "default"
          },
          "onlyChanges": {
            "title": "Only output changes",
            "type": "boolean",
            "description": "Output changed answers and first-run baselines only, plus the summary. Every successful check is still charged even if its unchanged row is omitted.",
            "default": false
          },
          "includeFullAnswer": {
            "title": "Include full answer text",
            "type": "boolean",
            "description": "Store full AI answer text in each answer row. Off by default: store only a snippet. Review retention and privacy before enabling.",
            "default": false
          },
          "snippetLength": {
            "title": "Snippet length",
            "minimum": 50,
            "maximum": 2000,
            "type": "integer",
            "description": "Answer snippet characters (50–2,000), around the first brand mention or at the start if no mention.",
            "default": 300
          },
          "maxConcurrencyPerEngine": {
            "title": "Parallel requests per engine",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Live mode: parallel requests per engine (1–5). Lower if your provider rate-limits requests. Free mode always runs one request at a time.",
            "default": 2
          },
          "outputErrors": {
            "title": "Output error rows",
            "type": "boolean",
            "description": "Include an uncharged error row for failed checks, such as rejected keys or quota limits. Provider-side billing may still depend on its terms.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}