{
  "openapi": "3.0.1",
  "info": {
    "title": "AI Search Visibility: does ChatGPT recommend your brand?",
    "description": "See which brands the real ChatGPT and Perplexity websites name when buyers ask about your category: your brand's share of answers, its position, competitors and cited sources. $80 per 1,000 answers read; failed and empty answers and all summaries are free.",
    "version": "0.1",
    "x-build-id": "Ycr6dRizq9s3BnA0N"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neonroobz~ai-search-brand-visibility/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neonroobz-ai-search-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/neonroobz~ai-search-brand-visibility/runs": {
      "post": {
        "operationId": "runs-sync-neonroobz-ai-search-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/neonroobz~ai-search-brand-visibility/run-sync": {
      "post": {
        "operationId": "run-sync-neonroobz-ai-search-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": [
          "brand"
        ],
        "properties": {
          "brand": {
            "title": "Your brand",
            "type": "string",
            "description": "The brand to look for in the answers, as it is usually written. Example: HubSpot."
          },
          "questions": {
            "title": "Questions",
            "type": "array",
            "description": "The questions your buyers would ask an AI assistant, one per line, written as a person would ask them. Don't put your brand in the question, or the answer is steered. Leave empty and fill in Category to have the questions written for you.",
            "items": {
              "type": "string"
            }
          },
          "category": {
            "title": "Category (when you give no questions)",
            "type": "string",
            "description": "What you sell, in a few words. Example: CRM software for small businesses. Used only when Questions is empty: the tool writes buyer questions for it and shows them in the output."
          },
          "questionCount": {
            "title": "Questions to write",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "How many questions to write for the category. Default 10, from 1 to 50. Not used when you give your own questions.",
            "default": 10
          },
          "engines": {
            "title": "AI engines",
            "type": "array",
            "description": "Which assistants to ask. Each is the real website, as people see it. Default: chatgpt and perplexity (fast and steady). Options: gemini (the Gemini app), ai-mode (Google AI Mode) and ai-overview (Google AI Overview): these take about 95 seconds a question.",
            "items": {
              "type": "string",
              "enum": [
                "chatgpt",
                "perplexity",
                "gemini",
                "ai-mode",
                "ai-overview"
              ],
              "enumTitles": [
                "ChatGPT",
                "Perplexity",
                "Gemini app",
                "Google AI Mode",
                "Google AI Overview"
              ]
            },
            "default": [
              "chatgpt",
              "perplexity"
            ]
          },
          "samples": {
            "title": "Times each question is asked",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "AI answers change from one asking to the next, so each question is asked this many times on each engine and the results are reported as shares. Default 2, from 1 to 10. Answers charged = questions x engines x samples.",
            "default": 2
          },
          "brandAliases": {
            "title": "Other spellings of your brand",
            "type": "array",
            "description": "Other names that count as your brand. Example: HubSpot CRM, Hub Spot. A longer name that contains your brand as whole words (HubSpot CRM for HubSpot) already counts.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "competitors": {
            "title": "Competitors",
            "type": "array",
            "description": "Brands to report beside yours in the summary: each one's share of answers and average position. Example: Salesforce, Zoho CRM, Pipedrive.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "brandDomain": {
            "title": "Your website's domain",
            "type": "string",
            "description": "Used to tell when an answer cites your own site. Example: hubspot.com. Left empty, a cited domain counts as yours when it carries your brand's name (hubspot.com, blog.hubspot.com)."
          },
          "country": {
            "title": "Country",
            "pattern": "^[a-zA-Z]{2}$",
            "type": "string",
            "description": "Two-letter country code the engines are asked from. Default us. An engine that does not serve the country gives free rows.",
            "default": "us"
          },
          "maxAnswers": {
            "title": "Most answers in one run",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "A hard cap on the answers asked for (and so on the charge: at most this many answers). Default 300. Answers past the cap are free limit_reached rows.",
            "default": 300
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}