{
  "openapi": "3.0.1",
  "info": {
    "title": "AI Answer Visibility Tracker: GPT-5, Perplexity, Gemini",
    "description": "Give it your brand, competitors and buyer questions, get whether Perplexity, Gemini and GPT-5 mention you, plus list rank, sentiment, cited sources and share of voice per brand. Official model APIs. $0.01 per answer plus model cost (about $0.005 for Perplexity).",
    "version": "0.1",
    "x-build-id": "Mo7Nlz08XmzK5cbzp"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/opstoolkit~ai-answer-visibility/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-opstoolkit-ai-answer-visibility",
        "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/opstoolkit~ai-answer-visibility/runs": {
      "post": {
        "operationId": "runs-sync-opstoolkit-ai-answer-visibility",
        "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/opstoolkit~ai-answer-visibility/run-sync": {
      "post": {
        "operationId": "run-sync-opstoolkit-ai-answer-visibility",
        "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",
        "properties": {
          "brandName": {
            "title": "Your brand name",
            "type": "string",
            "description": "The brand to track, written as people write it in an answer. Example: HubSpot. Needed for a real run. If brand, prompts and category are all empty, the Actor runs a demo with Crawlee instead."
          },
          "brandDomain": {
            "title": "Your website domain",
            "type": "string",
            "description": "Your website's domain, without a path. Example: hubspot.com. Used to tell when an answer cites your site, and a mention of the domain in the answer text counts as a brand mention. Optional."
          },
          "brandAliases": {
            "title": "Other names for your brand",
            "type": "array",
            "description": "Product names, old names or common spellings, one per entry. Example: [\"HubSpot CRM\"]. Case, accents, spaces and hyphens are already handled, so 'Hub Spot' and 'hubspot' match 'HubSpot' without listing them. Default: none.",
            "items": {
              "type": "string"
            }
          },
          "competitors": {
            "title": "Competitors",
            "type": "array",
            "description": "Competitors to track, one per entry, up to 40. A name alone works: \"Pipedrive\". To add other names and a website, use: Name | other name, other name | domain.com. Example: [\"Pipedrive | pipedrive.com\", \"Salesforce | Salesforce Sales Cloud | salesforce.com\"]. Only listed brands get a rank and a share of voice.",
            "items": {
              "type": "string"
            }
          },
          "prompts": {
            "title": "Prompts",
            "type": "array",
            "description": "Questions a buyer would ask an AI assistant, one per entry, up to 200 per run and 2,000 characters each. Example: [\"What is the best CRM for a small marketing agency?\"]. Do not name your brand in them, or every answer will mention it. Optional when you give a category.",
            "items": {
              "type": "string"
            }
          },
          "category": {
            "title": "Category (to write prompts for you)",
            "type": "string",
            "description": "Optional. A product category such as 'CRM software' or 'web scraping library'. The Actor adds buyer-style questions from fixed English templates, for example 'What is the best CRM software?'. They run after your own prompts."
          },
          "keywords": {
            "title": "Keywords for the written prompts",
            "type": "array",
            "description": "Optional, used only with a category. Each one becomes a question like 'Which CRM software do you recommend for small agencies?'. Write each as it would end that sentence. Example: [\"for small agencies\", \"with email automation\"].",
            "items": {
              "type": "string"
            }
          },
          "maxGeneratedPrompts": {
            "title": "How many prompts to write",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Upper limit for prompts made from the category, from 1 to 20. Default 5. Your own prompts are not counted in it.",
            "default": 5
          },
          "models": {
            "title": "AI models",
            "type": "array",
            "description": "Models to ask, by id. Every prompt is asked to every model. Allowed: perplexity-sonar (web search with sources, about $0.005 per answer), gemini-flash-lite-search (Google Search, no source list, about $0.03 to $0.05), gpt-5-mini (no search, about $0.002), gemini-flash-lite (no search, about $0.002), gpt-5-nano (no search, under $0.001). Default: [\"perplexity-sonar\"]. Search models look things up on the web like the consumer apps. Models without search answer from training. The model cost is billed by Apify on top of the check price, see the README.",
            "items": {
              "type": "string",
              "enum": [
                "perplexity-sonar",
                "gemini-flash-lite-search",
                "gpt-5-mini",
                "gemini-flash-lite",
                "gpt-5-nano"
              ],
              "enumTitles": [
                "Perplexity Sonar, web search with sources (about $0.005 per answer)",
                "Google Gemini 3.1 Flash-Lite, Google Search grounding, no source list (about $0.03 to $0.05)",
                "OpenAI GPT-5 mini, no search (about $0.002)",
                "Google Gemini 3.1 Flash-Lite, no search (about $0.002)",
                "OpenAI GPT-5 nano, no search (under $0.001)"
              ]
            },
            "default": [
              "perplexity-sonar"
            ]
          },
          "runsPerPrompt": {
            "title": "Runs per prompt",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many times each prompt is asked to each model, from 1 to 10. Default 1. AI answers change from one ask to the next, so use 3 to 5 to measure how often your brand shows up. Each run is one check. Total checks = prompts x models x runs, up to 2,000 per run.",
            "default": 1
          },
          "customModels": {
            "title": "Other OpenRouter models",
            "type": "array",
            "description": "Optional, for advanced use. Any model ID from openrouter.ai/models, for example [\"x-ai/grok-4.3\"]. Add ':online' at the end to give it web search, for example \"anthropic/claude-haiku-4.5:online\". Billed at that model's OpenRouter price. Some models are not available through Apify's AI proxy.",
            "items": {
              "type": "string"
            }
          },
          "country": {
            "title": "Country",
            "type": "string",
            "description": "Optional. Where the buyer is: a two-letter code (US, GB, DE) or a country name. The model is told where the user is, Perplexity also searches from there, and written prompts mention the country. Default: not set."
          },
          "language": {
            "title": "Answer language",
            "type": "string",
            "description": "Optional. A language name or code, for example German or de. The model is asked to answer in it. Write your prompts in that language too for answers closest to what local buyers see. Default: not set."
          },
          "matchCase": {
            "title": "Match brand names case-sensitively",
            "type": "boolean",
            "description": "Turn on when a brand name is also an ordinary word, such as Notion, Monday or Apple, so 'notion' in a sentence does not count. Default false.",
            "default": false
          },
          "fuzzyMatching": {
            "title": "Catch small misspellings",
            "type": "boolean",
            "description": "Counts one-letter typos of names with 7 or more letters, such as 'Salesforse'. Only capitalised words count, and the first and last letter must match. Default true. Each match says how it was found in `matchTypes`.",
            "default": true
          },
          "maxConcurrency": {
            "title": "Checks in parallel",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many questions are sent to the models at the same time, from 1 to 10. Default 4. A higher value finishes big runs sooner.",
            "default": 4
          },
          "saveRawResponses": {
            "title": "Save raw API responses",
            "type": "boolean",
            "description": "Stores each full model response in the key-value store as RAW-0001, RAW-0002 and so on. Useful when you want to check a result by hand. Default false.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}