{
  "openapi": "3.0.1",
  "info": {
    "title": "GEO / AEO & Agent-Readiness Business Auditor",
    "description": "Audits businesses for AI Search visibility (Google AI Overviews, Perplexity, ChatGPT Search, Claude, Grok) and Website Agent-Readiness (llms.txt, AI crawler blocks, LocalBusiness & FAQ JSON-LD Schema, and agent-actionable booking/forms).",
    "version": "0.1",
    "x-build-id": "qgpxeJCqe9nwru85R"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/preponderant_sunray_v2w~leadsignal-geo-auditor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-preponderant_sunray_v2w-leadsignal-geo-auditor",
        "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/preponderant_sunray_v2w~leadsignal-geo-auditor/runs": {
      "post": {
        "operationId": "runs-sync-preponderant_sunray_v2w-leadsignal-geo-auditor",
        "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/preponderant_sunray_v2w~leadsignal-geo-auditor/run-sync": {
      "post": {
        "operationId": "run-sync-preponderant_sunray_v2w-leadsignal-geo-auditor",
        "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": [
          "businesses"
        ],
        "properties": {
          "niche": {
            "title": "Business Niche",
            "type": "string",
            "description": "Niche or category to test AI search recommendations for (e.g. dentists, emergency plumbers, med spas).",
            "default": "dentists"
          },
          "location": {
            "title": "City & State / Location",
            "type": "string",
            "description": "Target city and state (e.g. Austin, TX).",
            "default": "Austin, TX"
          },
          "country": {
            "title": "Country Code",
            "type": "string",
            "description": "Two-letter ISO country code (e.g. US, CA, GB, AU).",
            "default": "US"
          },
          "businesses": {
            "title": "Businesses to Audit",
            "type": "array",
            "description": "Array of businesses as [{ \"name\": \"Acme Dental\", \"website\": \"https://acmedental.com\" }] or plain website URL strings.",
            "default": [
              {
                "name": "Austin Dental Spa",
                "website": "https://www.austindentalspa.com"
              }
            ]
          },
          "checkGoogleAiOverview": {
            "title": "Check Google AI Overviews (Stage 1 Browser)",
            "type": "boolean",
            "description": "Runs 1 Playwright search on Google for 'best {niche} in {location}' to capture Google AI Overview citations.",
            "default": true
          },
          "openRouterApiKey": {
            "title": "OpenRouter API Key (Optional — Perplexity / ChatGPT Search)",
            "type": "string",
            "description": "Optional OpenRouter key to query live Perplexity Sonar & ChatGPT Search citations once for the city."
          },
          "aiEngines": {
            "title": "Live AI Search Engines (via OpenRouter)",
            "type": "array",
            "description": "OpenRouter web-search models to check when openRouterApiKey is provided.",
            "default": [
              "perplexity/sonar",
              "openai/gpt-4o-mini:online"
            ]
          },
          "useGoogleSerpProxy": {
            "title": "Use Apify Google SERP Proxy for Stage 1",
            "type": "boolean",
            "description": "Unblocks Google Search & Google AI Overviews on Apify Cloud via groups=['GOOGLE_SERP'] over HTTP without needing Chromium.",
            "default": true
          },
          "useDatacenterProxy": {
            "title": "Use Apify Datacenter Proxy for Stage 2 HTTP Scan",
            "type": "boolean",
            "description": "Enable on Apify Cloud to route fast HTTP website checks through your Datacenter proxy pool.",
            "default": false
          },
          "useResidentialProxy": {
            "title": "Use Apify Residential Proxy for Google AI & Blocked Sites",
            "type": "boolean",
            "description": "Enable on Apify Cloud to route Google Search and anti-bot fallback checks through US Residential IPs.",
            "default": false
          },
          "maxConcurrency": {
            "title": "Max Parallel Website Checks (Stage 2 HTTP)",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "How many websites to scan in parallel during Stage 2 HTTP mode.",
            "default": 10
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}