{
  "openapi": "3.0.1",
  "info": {
    "title": "LLM Brand Visibility and Citation Tracker",
    "description": "Keyword by AI-engine visibility grid: brand mentions, rank in the answer list, share of voice, citations, sentiment and competitor leaderboard across ChatGPT, Perplexity, Gemini and optional Claude, with country and trend vs last run. Model access included.",
    "version": "1.1",
    "x-build-id": "gncMXaya2emSRVeDd"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/khadinakbar~llm-visibility-tracker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-khadinakbar-llm-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/khadinakbar~llm-visibility-tracker/runs": {
      "post": {
        "operationId": "runs-sync-khadinakbar-llm-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/khadinakbar~llm-visibility-tracker/run-sync": {
      "post": {
        "operationId": "run-sync-khadinakbar-llm-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": "Brand or product name",
            "type": "string",
            "description": "REQUIRED. The brand, product, company, or tool name to track in LLM answers (e.g., 'Notion', 'Ahrefs', 'HubSpot', 'Stripe'). This is the only required input — everything else has sensible defaults. Do NOT put competitor names here; use the 'competitors' field for those. Aliases accepted: brandName, company, product, name, tool."
          },
          "domain": {
            "title": "Brand website domain",
            "type": "string",
            "description": "Optional but recommended. The brand's primary domain (e.g., 'notion.so', 'ahrefs.com'). Used to detect when an LLM cites the brand's own site as a source. Without this, citation tracking is text-only. Aliases accepted: brandDomain, website, url, homepage."
          },
          "aliases": {
            "title": "Brand aliases (alternate names)",
            "type": "array",
            "description": "Optional. Other names the brand is known by (e.g., ['Notion', 'Notion HQ', 'Notion AI']). The actor treats any alias mention as a brand mention. Useful for brands with abbreviations or sub-product names. Aliases accepted: brandAliases, alternateNames, otherNames.",
            "items": {
              "type": "string"
            }
          },
          "competitors": {
            "title": "Competitor brands to compare",
            "type": "array",
            "description": "Optional but high-value. Up to 10 competitor brand names (e.g., ['Coda', 'ClickUp', 'Asana']). Drives the share_of_voice_pct metric and competitor co-mention tracking. If omitted, share-of-voice is not calculated. Aliases accepted: competitorBrands, competitorNames, rivals.",
            "items": {
              "type": "string"
            }
          },
          "category": {
            "title": "Product category or industry",
            "type": "string",
            "description": "Optional. The category the brand competes in (e.g., 'project management', 'SEO tools', 'CRM', 'AI writing assistant'). Used to make the auto-generated prompts more specific and natural. Leave blank to use generic phrasing. Aliases accepted: industry, niche, vertical."
          },
          "llms": {
            "title": "Which LLMs to query",
            "type": "array",
            "description": "Optional. The LLMs to query — defaults to ChatGPT, Perplexity, and Gemini. Valid values: 'chatgpt' (OpenAI web search), 'claude' (Anthropic Claude Haiku 4.5 with web_search tool), 'perplexity' (Perplexity Sonar with native citations), 'gemini' (Gemini 2.5 Flash with live web search). Add 'claude' explicitly for deep audits. Aliases accepted: platforms, engines, aiPlatforms, models.",
            "items": {
              "type": "string"
            },
            "default": [
              "chatgpt",
              "perplexity",
              "gemini"
            ]
          },
          "mode": {
            "title": "Audit depth",
            "enum": [
              "quick",
              "standard",
              "deep"
            ],
            "type": "string",
            "description": "Optional. Audit depth preset: 'quick' (3 prompts × selected LLMs), 'standard' (5 prompts × selected LLMs, default), or 'deep' (10 prompts × selected LLMs). Default LLMs are ChatGPT, Perplexity, and Gemini; include Claude explicitly when you need premium deep coverage. Overridden by maxPrompts if both are set.",
            "default": "standard"
          },
          "promptIntents": {
            "title": "Prompt intent categories",
            "type": "array",
            "description": "Optional. Categories of prompts to auto-generate. Defaults to a balanced mix. Available intents: 'recommendation' (best/top X for use case), 'alternatives' (alternatives to brand), 'how_to' (how do I [task] using [category]), 'comparison' (X vs Y), 'use_case' (which X should I pick for Y), 'review' (is X any good?), 'pricing' (is X worth the money?). If you provide 'customPrompts', those are used in addition to the auto-generated ones. Aliases accepted: queryTemplates, intents, promptCategories.",
            "items": {
              "type": "string"
            },
            "default": [
              "recommendation",
              "alternatives",
              "how_to",
              "use_case"
            ]
          },
          "customPrompts": {
            "title": "Custom prompts (real questions users ask)",
            "type": "array",
            "description": "Optional. Specific prompts to send to each LLM, in the natural phrasing your customers use (e.g., 'What's the best note-taking app for engineers?', 'Should I switch from Evernote to Notion?'). These run IN ADDITION to auto-generated prompts. If you ONLY want to run custom prompts, also set promptIntents to []. Aliases accepted: prompts, customQueries, queries, questions.",
            "items": {
              "type": "string"
            }
          },
          "maxPrompts": {
            "title": "Max prompts per LLM (overrides mode)",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Optional override. Hard cap on how many unique prompts to send to each LLM. Each prompt × LLM = one paid check. Leave blank to use the 'mode' preset. Aliases accepted: maxQueries, maxQueriesPerPlatform, limit."
          },
          "webhookUrl": {
            "title": "Webhook URL (optional)",
            "type": "string",
            "description": "Optional. HTTPS URL that receives a POST with the full run summary (visibility_index, share_of_voice_pct, per-LLM scores, recommendations) when the run completes. Use it to push results into Make.com, Zapier, n8n, Slack, or your own dashboard. Aliases accepted: webhook, callbackUrl, notifyUrl."
          },
          "demoMode": {
            "title": "Health check / dry-run mode",
            "type": "boolean",
            "description": "Optional. When true, runs a connectivity check without calling any LLM and exits successfully. Use this to validate scheduling and wiring without spending credits. Aliases accepted: dryRun, healthCheck, testMode.",
            "default": false
          },
          "country": {
            "title": "Country (optional)",
            "enum": [
              "",
              "US",
              "GB",
              "CA",
              "AU",
              "DE",
              "FR",
              "ES",
              "IT",
              "NL",
              "SE",
              "BR",
              "MX",
              "IN",
              "JP",
              "KR",
              "SG",
              "AE",
              "ZA",
              "PL",
              "IE"
            ],
            "type": "string",
            "description": "Optional. Two-letter country code to check answers for people in that country (US, GB, CA, AU, DE, FR, ES, IT, NL, SE, BR, MX, IN, JP, KR, SG, AE, ZA, PL, IE). ChatGPT uses the location in its web search; Perplexity and Gemini are asked to answer for that country. Leave empty for a global check. Aliases accepted: countryCode, market.",
            "default": ""
          },
          "trackTrend": {
            "title": "Compare with last run",
            "type": "boolean",
            "description": "Optional. When true (default), the summary shows the change in visibility index, mention rate and share of voice versus your previous run for the same brand and country. History is kept in a named key-value store in your own account. Alias: trend.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}