{
  "openapi": "3.0.1",
  "info": {
    "title": "AI Visibility Audit & Brand Citation Tracker",
    "description": "Track brand visibility in AI search (GEO/AEO): see if ChatGPT, Perplexity, Gemini and Google AI Overviews cite your brand for real buyer prompts. Citation rate with 95% confidence intervals, share of voice vs competitors, source gaps and a white-label HTML report. Engine scraper fees billed apart.",
    "version": "1.0",
    "x-build-id": "84AYMyLRlK0UH3tbz"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/jonasspezia~ai-visibility-audit/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-jonasspezia-ai-visibility-audit",
        "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/jonasspezia~ai-visibility-audit/runs": {
      "post": {
        "operationId": "runs-sync-jonasspezia-ai-visibility-audit",
        "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/jonasspezia~ai-visibility-audit/run-sync": {
      "post": {
        "operationId": "run-sync-jonasspezia-ai-visibility-audit",
        "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": [
          "domain",
          "prompts"
        ],
        "properties": {
          "domain": {
            "title": "Your domain",
            "pattern": "^(https?://)?([A-Za-z0-9-]+\\.)+[A-Za-z]{2,}(/.*)?$",
            "type": "string",
            "description": "Domain of the brand you audit, without https://. Links to this domain or any subdomain (for example docs.example.com) count as brand links."
          },
          "brand": {
            "title": "Brand name",
            "type": "string",
            "description": "Name as it appears in AI answers. Matched as a whole word, ignoring case and accents. If empty, the first part of the domain counts only when written with a capital letter, plus the domain itself."
          },
          "brandAliases": {
            "title": "Brand aliases",
            "type": "array",
            "description": "Other names that count as a brand mention, such as product names or old names.",
            "items": {
              "type": "string"
            }
          },
          "competitors": {
            "title": "Competitors",
            "type": "array",
            "description": "One per line: \"domain.com\", \"Name\" or \"Name=domain.com\". Name enables mention detection; domain enables link detection. A domain alone counts as a mention only when written out.",
            "items": {
              "type": "string"
            }
          },
          "prompts": {
            "title": "Prompts",
            "minItems": 1,
            "maxItems": 100,
            "type": "array",
            "description": "Real buying questions, one per line. 10 to 30 give a useful audit; up to 100 per run.",
            "items": {
              "type": "string"
            }
          },
          "engines": {
            "title": "Engines",
            "minItems": 1,
            "uniqueItems": true,
            "type": "array",
            "description": "Engines to ask. Each engine runs an official Apify scraper billed to your account per answer, at your plan price. Per answer on the Free plan: AI Overviews $0.003, ChatGPT $0.20, Perplexity $0.20, Gemini $0.20. On Starter (Bronze): $0.002, $0.005, $0.013, $0.005. Higher plans pay less.",
            "items": {
              "type": "string",
              "enum": [
                "ai-overviews",
                "chatgpt",
                "perplexity",
                "gemini"
              ],
              "enumTitles": [
                "Google AI Overviews",
                "ChatGPT Search",
                "Perplexity",
                "Gemini"
              ]
            },
            "default": [
              "ai-overviews"
            ]
          },
          "countryCode": {
            "title": "Country",
            "enum": [
              "us",
              "gb",
              "ca",
              "au",
              "ie",
              "in",
              "br",
              "mx",
              "ar",
              "cl",
              "co",
              "pe",
              "pt",
              "es",
              "de",
              "fr",
              "it",
              "nl",
              "be",
              "ch",
              "at",
              "se",
              "no",
              "dk",
              "fi",
              "pl",
              "cz",
              "tr",
              "ae",
              "sa",
              "il",
              "za",
              "ng",
              "jp",
              "kr",
              "sg",
              "id",
              "ph",
              "nz"
            ],
            "type": "string",
            "description": "Country the questions are sent from (ChatGPT, Perplexity and Gemini). Google AI Overviews does not take a country.",
            "default": "us"
          },
          "samples": {
            "title": "Samples per prompt",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "How many times to ask each prompt on each engine. AI answers vary; 3 or more samples measure consistency. Multiplies cost.",
            "default": 1
          },
          "reportLanguage": {
            "title": "Report language",
            "enum": [
              "en",
              "pt-BR",
              "es"
            ],
            "type": "string",
            "description": "Language of the HTML report.",
            "default": "en"
          },
          "reportBrandName": {
            "title": "Report prepared by (white label)",
            "type": "string",
            "description": "Agency or consultant name shown at the top of the report. Leave empty for no branding."
          },
          "maxEngineSpendUsd": {
            "title": "Max scraper spend (USD)",
            "minimum": 0.01,
            "type": "number",
            "description": "Ceiling for the estimated cost of the engine scrapers, which bill your account at your plan price. Prompts that do not fit are skipped, with a warning in the log and status.",
            "default": 5
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}