{
  "openapi": "3.0.1",
  "info": {
    "title": "AI Brand Tracker: ChatGPT/Claude/Gemini/Grok/Perplexity/Google",
    "description": "Track brand mentions and citations in ChatGPT, Claude, Gemini, Grok, Perplexity and Google AI Overviews. GEO reports, competitors and weekly changes. $0.035/check; engine/API usage billed separately.",
    "version": "0.1",
    "x-build-id": "9lrzivD1ty9QYASdG"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/xyventures~ai-visibility-tracker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-xyventures-ai-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/xyventures~ai-visibility-tracker/runs": {
      "post": {
        "operationId": "runs-sync-xyventures-ai-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/xyventures~ai-visibility-tracker/run-sync": {
      "post": {
        "operationId": "run-sync-xyventures-ai-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",
        "properties": {
          "brand": {
            "title": "Brand",
            "type": "string",
            "description": "Required in simple mode. A whole-word name to track; e.g. HubSpot."
          },
          "brandDomain": {
            "title": "Brand domain",
            "type": "string",
            "description": "Public domain used for citation matching. Subdomains count; empty disables brand citation matching."
          },
          "brandAliases": {
            "title": "Brand aliases",
            "type": "array",
            "description": "Alternative names counted with the brand. Whole-word, case-insensitive.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "competitors": {
            "title": "Competitors",
            "type": "array",
            "description": "Each entry is Name or Name | domain.com. No additional fee for competitor analysis.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "prompts": {
            "title": "Buyer questions",
            "maxItems": 100,
            "type": "array",
            "description": "Single-line questions, maximum 100 per project including generated prompts. At least one is required unless generation is enabled.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "category": {
            "title": "Category",
            "type": "string",
            "description": "Required when generatePrompts is enabled; e.g. CRM."
          },
          "generatePrompts": {
            "title": "Generate buyer questions",
            "type": "boolean",
            "description": "Append deterministic templates, without an AI API call.",
            "default": false
          },
          "maxGeneratedPrompts": {
            "title": "Maximum generated questions",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Take up to this many available templates. The combined prompt list must stay at or below 100.",
            "default": 10
          },
          "engines": {
            "title": "Answer engines",
            "type": "array",
            "description": "Claude, Grok and Google AI Mode are opt-in. Defaults/Store prefill are unchanged. Claude/Grok use APIs + Exa web search, not claude.ai/grok.com. Reserve one request with search allowances, then re-check before retry; insufficient budget skips. Gemini requires a $0.50 child cap plus safety headroom. No Copilot/Bing.",
            "items": {
              "type": "string",
              "enum": [
                "chatgpt",
                "perplexity",
                "gemini",
                "google_ai_overviews",
                "google_ai_mode",
                "claude",
                "grok"
              ],
              "enumTitles": [
                "ChatGPT",
                "Perplexity",
                "Gemini",
                "Google AI Overviews",
                "Google AI Mode",
                "Claude (API + web)",
                "Grok (API + web)"
              ]
            },
            "default": [
              "chatgpt",
              "perplexity",
              "gemini",
              "google_ai_overviews"
            ]
          },
          "claudeModel": {
            "title": "Claude API model",
            "enum": [
              "anthropic/claude-haiku-5.5",
              "anthropic/claude-sonnet-5.5"
            ],
            "type": "string",
            "description": "Claude API + Exa, not claude.ai. 2026-11-15: one-attempt reservation for a 2000-character ASCII prompt + 3×4000 search tokens + 1000 framing + 1024 output, paid/Free: Haiku $0.00903/$0.09030; Sonnet $0.04757/$0.47570. Maximum encoded-prompt reservations $0.01003/$0.10030 and $0.06757/$0.67570. Typical 2000 total input tokens cost about $0.00772/$0.07720 Haiku. Actual search can exceed allowances: count actual cost, warn once, gate later requests. Retry needs a new reservation. Start/platform and $0.035 tracker fees extra.",
            "default": "anthropic/claude-haiku-5.5"
          },
          "grokModel": {
            "title": "Grok API model",
            "enum": [
              "x-ai/grok-4.3",
              "x-ai/grok-4.7"
            ],
            "type": "string",
            "description": "Grok API + Exa, not grok.com. 2026-11-15: one-attempt reservation for a 2000-character ASCII prompt + 3×4000 search tokens + 1000 framing + 1024 output, paid/Free: 4.3 $0.02852/$0.28520; 4.7 $0.04347/$0.43470. Maximum encoded-prompt reservations $0.04102/$0.41020 and $0.06347/$0.63470. Typical 2000 total input tokens cost about $0.01206/$0.12060 for 4.3. Actual search can exceed allowances: count actual cost, warn once, gate later requests. Retry needs a new reservation. Start/platform and $0.035 tracker fees extra.",
            "default": "x-ai/grok-4.3"
          },
          "apiWebSearch": {
            "title": "Web search for Claude/Grok APIs",
            "type": "boolean",
            "description": "Claude/Grok only. Default on: one Exa auto search, at most 3 results; no native/X search. Reserve 4000 tokens per result + 1000 framing, not a hard search-text limit. Actual overruns are counted and warned, stopping later requests once budget is exhausted. Off: model-only answers with no guaranteed citations. Output cap 1024. Country/language are metadata only.",
            "default": true
          },
          "country": {
            "title": "Requested country",
            "type": "string",
            "description": "Two-letter country code. ChatGPT, Perplexity, Gemini and AI Mode accept it. Google AI Overviews, Claude and Grok do not expose country control through these adapters.",
            "default": "US"
          },
          "language": {
            "title": "Requested language (metadata)",
            "type": "string",
            "description": "Language code, metadata only for all engines; write prompts in your preferred language.",
            "default": "en"
          },
          "trackChanges": {
            "title": "Compare with previous complete run",
            "type": "boolean",
            "description": "Store last complete summary/check metrics in an Actor-created named key-value store on your account. Identical inputs are required for deltas.",
            "default": true
          },
          "trackingId": {
            "title": "Tracking ID",
            "type": "string",
            "description": "Stable project identifier; defaults to a hash of brand. Use distinct IDs for multiple projects with the same brand."
          },
          "maxChecks": {
            "title": "Hard check cap",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Global maximum attempted prompt × engine × brand checks, including agency mode. Truncates in project/prompt/engine order before calling engines.",
            "default": 100
          },
          "maxEngineSpendUsd": {
            "title": "Maximum engine spend (USD)",
            "minimum": 0.1,
            "type": "number",
            "description": "Global engine-event spend gate, default $5; tracker fees separate. Child engines retain existing divided caps and headroom. Claude/Grok reserve one request's prompt + 3×4000 result tokens + 1000 framing + 1024 output + Exa fee, 10× Free; retry requires a fresh budget check. Settle actual usage.cost; 4xx without cost settles at $0, other missing cost retains reservation. Overruns warn once and stop later API requests, but in-flight calls can exceed this gate. Default $5 fits 5 prompts × Claude/Grok on Free under allowances. Proxy start ($0.001 Free/$0.00001 paid), platform/idle and child overshoot are extra.",
            "default": 5
          },
          "agencyName": {
            "title": "Agency name",
            "type": "string",
            "description": "Optional report header for basic white-labeling; all text is HTML-escaped."
          },
          "projects": {
            "title": "Agency projects (JSON)",
            "minItems": 1,
            "maxItems": 100,
            "type": "array",
            "description": "1–100 project objects. Each uses simple-mode fields with its own defaults, including claudeModel, grokModel and apiWebSearch, and requires brand plus prompts or generation. Top-level simple fields are ignored; maxChecks, maxEngineSpendUsd and agencyName remain global. Optional project maxChecks adds a per-project cap.",
            "items": {
              "type": "object"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}