{
  "openapi": "3.0.1",
  "info": {
    "title": "The Local Business Intelligence Suite",
    "description": "God Mode for Local SEO\n\nStop Paying for 10+ Separate Local SEO Tools\nYou're currently paying for: BrightLocal ($39/mo), LocalFalcon ($29/mo), GatherUp ($99/mo), SEMrush ($129/mo), Moz Local ($14/mo), Yext ($499/mo), ReviewTrackers ($49/mo), & a dozen browser extensions. What if one tool did it all?",
    "version": "1.0",
    "x-build-id": "FMbeYs46gFKYzXmZk"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/alizarin_refrigerator-owner~lbis-pro/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-alizarin_refrigerator-owner-lbis-pro",
        "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/alizarin_refrigerator-owner~lbis-pro/runs": {
      "post": {
        "operationId": "runs-sync-alizarin_refrigerator-owner-lbis-pro",
        "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/alizarin_refrigerator-owner~lbis-pro/run-sync": {
      "post": {
        "operationId": "run-sync-alizarin_refrigerator-owner-lbis-pro",
        "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": [
          "task"
        ],
        "properties": {
          "task": {
            "title": "Intelligence Task",
            "enum": [
              "gbp_scrape",
              "review_scrape",
              "serp_track",
              "business_enrich",
              "website_analyze",
              "competitor_analyze",
              "tech_stack_scan",
              "citation_audit",
              "backlink_analyze",
              "social_presence_scan",
              "keyword_research",
              "review_response_analyze",
              "photo_analyze",
              "hours_attributes_audit",
              "technical_seo_scan",
              "reddit_research",
              "market_intelligence",
              "reputation_aggregate",
              "enrich_leads",
              "find_lookalikes",
              "ai_reputation",
              "apple_maps_listing",
              "bing_maps_listing",
              "cross_map_consistency",
              "full_audit"
            ],
            "type": "string",
            "description": "Which task to perform",
            "default": "gbp_scrape"
          },
          "businessName": {
            "title": "Business Name",
            "type": "string",
            "description": "The name of the business to analyze"
          },
          "address": {
            "title": "Street Address",
            "type": "string",
            "description": "Street address (optional but improves accuracy)"
          },
          "city": {
            "title": "City",
            "type": "string",
            "description": "City where the business is located"
          },
          "state": {
            "title": "State",
            "maxLength": 2,
            "type": "string",
            "description": "State abbreviation (e.g., NY, CA, TX)"
          },
          "phone": {
            "title": "Phone Number",
            "type": "string",
            "description": "Business phone number (optional)"
          },
          "website": {
            "title": "Website URL",
            "type": "string",
            "description": "Business website (required for website_analyze task)"
          },
          "gbpUrl": {
            "title": "Google Business Profile URL",
            "type": "string",
            "description": "Direct URL to GBP listing (optional - will search if not provided)"
          },
          "placeId": {
            "title": "Google Place ID",
            "type": "string",
            "description": "Google Place ID for direct lookup (e.g., ChIJN1t_tDeuEmsRUsoyG83frY4). Alternative to businessName/city/state."
          },
          "placeIds": {
            "title": "Place IDs (Backwards Compat)",
            "type": "array",
            "description": "Array of Google Place IDs. For backwards compatibility - uses first element as placeId.",
            "items": {
              "type": "string"
            }
          },
          "searchStringsArray": {
            "title": "Search Queries (Backwards Compat)",
            "type": "array",
            "description": "Array of search queries like 'Joe's Pizza New York NY'. For backwards compatibility - uses first element.",
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "Keywords to Track",
            "type": "array",
            "description": "Keywords for SERP tracking (one per line)",
            "items": {
              "type": "string"
            }
          },
          "gridSize": {
            "title": "Map Grid Size",
            "minimum": 1,
            "maximum": 7,
            "type": "integer",
            "description": "Grid size for local SERP mapping (e.g., 3 = 3x3 grid = 9 points)",
            "default": 3
          },
          "gridRadius": {
            "title": "Grid Radius (miles)",
            "minimum": 0.5,
            "maximum": 10,
            "type": "number",
            "description": "Distance between grid points in miles",
            "default": 1
          },
          "competitors": {
            "title": "Competitor Business Names",
            "type": "array",
            "description": "Names of competitor businesses to compare (for competitor_analyze task)",
            "items": {
              "type": "string"
            }
          },
          "reviewPlatforms": {
            "title": "Review Platforms",
            "uniqueItems": true,
            "type": "array",
            "description": "Which platforms to scrape reviews from",
            "items": {
              "type": "string",
              "enum": [
                "google",
                "yelp",
                "facebook",
                "tripadvisor"
              ]
            },
            "default": [
              "google",
              "yelp"
            ]
          },
          "maxReviews": {
            "title": "Max Reviews Per Platform",
            "minimum": 10,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum number of reviews to scrape per platform",
            "default": 100
          },
          "maxPages": {
            "title": "Max Pages to Crawl",
            "minimum": 5,
            "maximum": 200,
            "type": "integer",
            "description": "Maximum pages to crawl for website analysis",
            "default": 50
          },
          "includeSentiment": {
            "title": "Include Sentiment Analysis",
            "type": "boolean",
            "description": "Analyze review sentiment (adds processing time)",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Proxy settings for avoiding blocks"
          },
          "zipCode": {
            "title": "ZIP Code",
            "type": "string",
            "description": "ZIP code for market intelligence (uses Census/CBP data for demographics)"
          },
          "webhookUrl": {
            "title": "Webhook URL",
            "type": "string",
            "description": "Send results to a webhook URL (Zapier, Make, n8n, or custom). Supports multiple URLs comma-separated."
          },
          "gbpCategory": {
            "title": "GBP Category (for reputation_aggregate)",
            "type": "string",
            "description": "Primary GBP category (e.g., 'Restaurant', 'Plumber'). Used to auto-detect business type and relevant review platforms."
          },
          "includeEmployerPlatforms": {
            "title": "Include Employer Platforms",
            "type": "boolean",
            "description": "Also scrape Glassdoor and Indeed for employer reviews (optional)",
            "default": false
          },
          "dnbApiKey": {
            "title": "D&B Direct+ API Key (BYOK)",
            "type": "string",
            "description": "For firmographics, credit scores, and corporate hierarchy. Get yours at https://developer.dnb.com/"
          },
          "tripAdvisorApiKey": {
            "title": "TripAdvisor Content API Key (BYOK)",
            "type": "string",
            "description": "For official TripAdvisor data. Apply at https://tripadvisor-content-api.readme.io/"
          },
          "g2ApiKey": {
            "title": "G2 API Key (BYOK)",
            "type": "string",
            "description": "For software review data from G2. Contact sales@g2.com for API access."
          },
          "seedBusinessNames": {
            "title": "Seed Business Names (for Lookalike Finder)",
            "type": "array",
            "description": "List of business names to use as seeds for finding lookalikes (one per line). If empty, uses the main business.",
            "items": {
              "type": "string"
            }
          },
          "searchRadius": {
            "title": "Search Radius (miles)",
            "minimum": 5,
            "maximum": 100,
            "type": "integer",
            "description": "How far from seed businesses to search for lookalikes",
            "default": 25
          },
          "targetCities": {
            "title": "Target Cities",
            "type": "array",
            "description": "Specific cities to search for lookalikes (one per line, format: 'City, ST'). Example: 'Miami, FL'",
            "items": {
              "type": "string"
            }
          },
          "minSimilarityScore": {
            "title": "Minimum Similarity Score",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Only return lookalikes with similarity score >= this value (0-100)",
            "default": 60
          },
          "maxResults": {
            "title": "Max Lookalike Results",
            "minimum": 5,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum number of lookalike businesses to return",
            "default": 20
          },
          "minRating": {
            "title": "Minimum Google Rating",
            "minimum": 1,
            "maximum": 5,
            "type": "number",
            "description": "Only include lookalikes with rating >= this value",
            "default": 3.5
          },
          "minReviewCount": {
            "title": "Minimum Review Count",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Only include lookalikes with at least this many reviews",
            "default": 5
          },
          "excludeChains": {
            "title": "Exclude Chain Businesses",
            "type": "boolean",
            "description": "Filter out large chains and franchises",
            "default": false
          },
          "openaiApiKey": {
            "title": "OpenAI API Key (BYOK)",
            "type": "string",
            "description": "Your OpenAI API key for ChatGPT queries. Get one at https://platform.openai.com/api-keys"
          },
          "anthropicApiKey": {
            "title": "Anthropic API Key (BYOK)",
            "type": "string",
            "description": "Your Anthropic API key for Claude queries. Get one at https://console.anthropic.com/"
          },
          "geminiApiKey": {
            "title": "Google Gemini API Key (BYOK)",
            "type": "string",
            "description": "Your Google AI API key for Gemini queries. Get one at https://makersuite.google.com/app/apikey"
          },
          "perplexityApiKey": {
            "title": "Perplexity API Key (BYOK)",
            "type": "string",
            "description": "Your Perplexity API key. Get one at https://www.perplexity.ai/settings/api"
          },
          "aiCompetitors": {
            "title": "Competitors for AI Comparison",
            "type": "array",
            "description": "Business names to compare against in AI queries (one per line)",
            "items": {
              "type": "string"
            }
          },
          "aiDiscoveryPrompt": {
            "title": "Custom Discovery Prompt",
            "type": "string",
            "description": "Custom prompt for AI discovery queries (optional - we provide a good default)"
          },
          "aiReputationPrompt": {
            "title": "Custom Reputation Prompt",
            "type": "string",
            "description": "Custom prompt for AI reputation queries (optional - we provide a good default)"
          },
          "aiComparisonPrompt": {
            "title": "Custom Comparison Prompt",
            "type": "string",
            "description": "Custom prompt for competitor comparison queries (optional - we provide a good default)"
          },
          "autoSuggestCompetitors": {
            "title": "Auto-Suggest Competitors",
            "type": "boolean",
            "description": "If no competitors are provided, automatically use AI to suggest competitors based on business type and location. Enabled by default.",
            "default": true
          },
          "demoMode": {
            "title": "Demo Mode",
            "type": "boolean",
            "description": "Run with sample data to test without real scraping. Returns realistic sample output instantly.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}