{
  "openapi": "3.0.1",
  "info": {
    "title": "AI Search Visibility Tracker for ChatGPT, Claude & Perplexity",
    "description": "Track your brand in AI answers: how often ChatGPT, Claude and Perplexity mention you and your competitors, in which rank, and whether your site is cited. GEO and AEO share of voice for marketing teams. Official APIs with your own keys, pay per answer.",
    "version": "0.1",
    "x-build-id": "uExnpGXNLRQNdFiE0"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/forgeloop~ai-brand-visibility/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-forgeloop-ai-brand-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/forgeloop~ai-brand-visibility/runs": {
      "post": {
        "operationId": "runs-sync-forgeloop-ai-brand-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/forgeloop~ai-brand-visibility/run-sync": {
      "post": {
        "operationId": "run-sync-forgeloop-ai-brand-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",
        "required": [
          "brandName",
          "prompts"
        ],
        "properties": {
          "brandName": {
            "title": "Brand name",
            "type": "string",
            "description": "The brand you want to track, as people write it, for example HubSpot. Matching ignores upper and lower case and never counts hits inside longer words."
          },
          "brandAliases": {
            "title": "Brand aliases",
            "type": "array",
            "description": "Other names that count as a mention of your brand: product names, old names, common spellings. Example: HubSpot CRM, Hubspot Sales Hub.",
            "items": {
              "type": "string"
            }
          },
          "brandDomain": {
            "title": "Brand domain",
            "type": "string",
            "description": "Your website domain, for example hubspot.com. A cited source on this domain or any subdomain (blog.hubspot.com) counts as a citation of your brand. Leave empty to measure mentions only."
          },
          "competitors": {
            "title": "Competitors",
            "type": "array",
            "description": "Optional. Brands to compare with, as a JSON list. Each entry has a name, optional aliases and an optional domain: [{\"name\": \"Pipedrive\", \"aliases\": [\"Pipedrive CRM\"], \"domain\": \"pipedrive.com\"}]. A plain name like \"Zoho CRM\" also works. Up to 29 competitors. Plain strings also work: [\"Pipedrive\", \"Zoho CRM\"]. Add short forms as aliases, because answers often use them (\"Teams\" for \"Microsoft Teams\")."
          },
          "prompts": {
            "title": "Prompts",
            "type": "array",
            "description": "Questions a customer might ask an AI assistant, one per line. Write them like a buyer, without your brand name, for example \"best CRM for small businesses\". Up to 500 prompts. Format: a list of strings.",
            "items": {
              "type": "string"
            }
          },
          "openaiApiKey": {
            "title": "OpenAI API key",
            "type": "string",
            "description": "Your own OpenAI API key. Needed for the OpenAI answers. OpenAI bills you directly for every answer, including the web search tool fee. The key is stored encrypted, sent only to api.openai.com, and never logged or written to the output."
          },
          "perplexityApiKey": {
            "title": "Perplexity API key",
            "type": "string",
            "description": "Your own Perplexity API key. Needed for the Perplexity answers. Perplexity bills you directly for every answer, including search fees. The key is stored encrypted, sent only to api.perplexity.ai, and never logged or written to the output."
          },
          "anthropicApiKey": {
            "title": "Anthropic API key (Claude)",
            "type": "string",
            "description": "Your own Anthropic API key from console.anthropic.com. Needed for the Claude answers. Anthropic bills you directly for every answer, including the web search fee (10 USD per 1,000 searches at the time of writing). The key is stored encrypted, sent only to api.anthropic.com, and never logged or written to the output."
          },
          "providers": {
            "title": "Providers",
            "type": "array",
            "description": "Which AI assistants to ask. A selected provider without an API key is skipped with a warning. Each provider needs its key field: openaiApiKey, anthropicApiKey or perplexityApiKey. Answers per run = prompts x repetitions x providers with a key.",
            "items": {
              "type": "string",
              "enum": [
                "openai",
                "perplexity",
                "anthropic"
              ],
              "enumTitles": [
                "OpenAI (GPT models with web search)",
                "Perplexity (Sonar with web search)",
                "Claude (Anthropic models with web search)"
              ]
            },
            "default": [
              "openai",
              "perplexity",
              "anthropic"
            ]
          },
          "openaiModel": {
            "title": "OpenAI model",
            "type": "string",
            "description": "Model for the OpenAI Responses API with the web_search tool. The default gpt-6.1-terra balances quality and cost. gpt-6-luna is cheaper, gpt-6.1-sol and gpt-6-astra are stronger and cost more on your OpenAI bill.",
            "default": "gpt-6.1-terra"
          },
          "perplexityModel": {
            "title": "Perplexity model",
            "type": "string",
            "description": "Model for the Perplexity Agent API with web search. The default perplexity/sonar is Perplexity's own search model. You can also give an effort level (fast, low, medium, high) or another model in provider/model form. Old Sonar names like sonar-pro are mapped to their current equivalent.",
            "default": "perplexity/sonar"
          },
          "anthropicModel": {
            "title": "Claude model",
            "type": "string",
            "description": "Model for the Anthropic Messages API with the web search tool. The default claude-opus-5-5 is the current Opus model. claude-sonnet-5-5 and claude-haiku-5-5 are cheaper on your Anthropic bill.",
            "default": "claude-opus-5-5"
          },
          "repetitions": {
            "title": "Repetitions per prompt",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "How often each prompt is asked per provider. AI answers vary from run to run, so 3 to 5 repetitions give more stable rates. Every repetition is one answer: one charge here and one request on your provider bill.",
            "default": 1
          },
          "country": {
            "title": "Country",
            "type": "string",
            "description": "Optional two-letter country code like US, DE or GB. Passed to the web search as the approximate user location, so results lean toward that market."
          },
          "language": {
            "title": "Answer language",
            "type": "string",
            "description": "Optional two-letter language code like en, de or fr. The assistants are asked to answer in this language. Write the prompts in the same language for realistic results."
          },
          "forceWebSearch": {
            "title": "Always search the web",
            "type": "boolean",
            "description": "On: OpenAI must run a web search before answering, and Claude is told to search first, so answers come with sources. Off: the model decides, like in a chat app, and some answers come from model knowledge without citations. Perplexity models search by design.",
            "default": true
          },
          "caseSensitive": {
            "title": "Case-sensitive matching",
            "type": "boolean",
            "description": "Turn on when a brand name is also a common word, for example Monday or Notion, so only the exact spelling counts. Off matches any case.",
            "default": false
          },
          "timeoutSeconds": {
            "title": "Timeout per request (seconds)",
            "minimum": 20,
            "maximum": 600,
            "type": "integer",
            "description": "Give up on one request after this many seconds. Search answers usually take 5 to 60 seconds. Timeouts, rate limits and server errors are retried up to 3 times with backoff.",
            "default": 120
          },
          "maxConcurrency": {
            "title": "Parallel requests",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many requests run at the same time across providers. Lower it when 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}