{
  "openapi": "3.0.1",
  "info": {
    "title": "AI Brand Visibility: ChatGPT, Claude, Gemini & Perplexity",
    "description": "Track if ChatGPT, Claude, Gemini and Perplexity mention your brand and competitors: mention rank, sentiment, cited URLs and domains, share of voice. Uses your own API keys via the official APIs. Failed answers are free.",
    "version": "0.1",
    "x-build-id": "qeVIhPA6xGsuAweqO"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/fjordlabs~ai-brand-visibility/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-fjordlabs-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/fjordlabs~ai-brand-visibility/runs": {
      "post": {
        "operationId": "runs-sync-fjordlabs-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/fjordlabs~ai-brand-visibility/run-sync": {
      "post": {
        "operationId": "run-sync-fjordlabs-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": [
          "brands"
        ],
        "properties": {
          "prompts": {
            "title": "Prompts",
            "type": "array",
            "description": "Questions your customers might ask an AI assistant. Each prompt is sent once to every provider you add a key for (one result row per prompt x provider).",
            "items": {
              "type": "string"
            }
          },
          "brands": {
            "title": "Your brand(s)",
            "type": "array",
            "description": "Your brand, one per line. Add aliases and your domain after a | like \"Acme | Acme Inc | acme.com\". The domain is matched in the answer text and in cited URLs.",
            "items": {
              "type": "string"
            }
          },
          "competitors": {
            "title": "Competitors",
            "type": "array",
            "description": "Competitor brands in the same format (\"Name | alias | domain.com\"). Used for mention order and share of voice.",
            "items": {
              "type": "string"
            }
          },
          "openaiApiKey": {
            "title": "OpenAI API key (ChatGPT)",
            "type": "string",
            "description": "Your own key from platform.openai.com. Stored encrypted by Apify, never logged or output. OpenAI bills you for the tokens."
          },
          "anthropicApiKey": {
            "title": "Anthropic API key (Claude)",
            "type": "string",
            "description": "Your own key from console.anthropic.com. Stored encrypted, never logged or output."
          },
          "geminiApiKey": {
            "title": "Google Gemini API key",
            "type": "string",
            "description": "Your own key from aistudio.google.com. Stored encrypted, never logged or output."
          },
          "perplexityApiKey": {
            "title": "Perplexity API key",
            "type": "string",
            "description": "Your own key from perplexity.ai/settings/api. Perplexity always searches the web and returns its sources. Stored encrypted, never logged or output."
          },
          "webSearch": {
            "title": "Let ChatGPT, Claude and Gemini search the web",
            "type": "boolean",
            "description": "Turns on each provider's own web-search tool, so answers reflect current web results and come with source citations, closer to what chat users see. Providers charge extra for search on your key. Off: answers come from the model's own knowledge.",
            "default": false
          },
          "openaiModel": {
            "title": "OpenAI model",
            "type": "string",
            "description": "Any model your key can use with the Responses API.",
            "default": "gpt-5-mini"
          },
          "anthropicModel": {
            "title": "Anthropic model",
            "type": "string",
            "description": "Any Claude model ID your key can use.",
            "default": "claude-haiku-5-5"
          },
          "geminiModel": {
            "title": "Gemini model",
            "type": "string",
            "description": "Any Gemini model your key can use.",
            "default": "gemini-2.5-flash"
          },
          "perplexityModel": {
            "title": "Perplexity model",
            "type": "string",
            "description": "sonar, sonar-pro, sonar-reasoning-pro …",
            "default": "sonar"
          },
          "maxOutputTokens": {
            "title": "Max answer length (tokens)",
            "minimum": 64,
            "maximum": 8192,
            "type": "integer",
            "description": "Upper limit on answer length for Claude and Perplexity, and for non-reasoning OpenAI models. Reasoning models (gpt-5, o-series) and Gemini use their normal length.",
            "default": 1024
          },
          "includeAnswerText": {
            "title": "Include the full answer text",
            "type": "boolean",
            "description": "Store the full answer in each row. Turn off for smaller datasets if you only need the mention metrics.",
            "default": true
          },
          "answers": {
            "title": "Analyze existing answers (optional)",
            "type": "array",
            "description": "Already have AI answers (exported from another tool or copied by hand)? Paste them here as texts, or as objects {\"prompt\": \"…\", \"provider\": \"chatgpt\", \"answer\": \"…\", \"citations\": [\"https://…\"]}. They are analyzed the same way, with no API key needed."
          },
          "maxConcurrency": {
            "title": "Parallel requests per provider",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many prompts are sent to one provider at the same time. Keep it low on new or free-tier keys (rate limits); 429 responses are retried with backoff.",
            "default": 2
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}