{
  "openapi": "3.0.1",
  "info": {
    "title": "Local Business Growth Leads",
    "description": "An Apify Actor that identifies local businesses with growth opportunities (no website, low reviews, weak ratings, or incomplete profiles) and returns a scored, qualified lead list. It scrapes Google Maps, Bing Maps, and Yellow Pages, de-duplicates data, and scores each business for growth fit.",
    "version": "0.0",
    "x-build-id": "MVxp8xjAICnffdf5G"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/moving_beacon-owner1~local-business-growth-leads/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-moving_beacon-owner1-local-business-growth-leads",
        "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/moving_beacon-owner1~local-business-growth-leads/runs": {
      "post": {
        "operationId": "runs-sync-moving_beacon-owner1-local-business-growth-leads",
        "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/moving_beacon-owner1~local-business-growth-leads/run-sync": {
      "post": {
        "operationId": "run-sync-moving_beacon-owner1-local-business-growth-leads",
        "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",
        "properties": {
          "searchTerms": {
            "title": "Search terms",
            "type": "string",
            "description": "Business category, e.g. 'plumbers', 'dentists', 'coffee shops'."
          },
          "location": {
            "title": "Location",
            "type": "string",
            "description": "City, state, region, or country, e.g. 'Austin, TX' or 'Manchester, UK'."
          },
          "search": {
            "title": "Combined search query (optional)",
            "type": "string",
            "description": "Alternative to the fields above. Use either format: 'plumbers in Austin, TX' or 'plumbers, Austin, TX'. Ignored if searchTerms is set."
          },
          "source": {
            "title": "Data source",
            "enum": [
              "google_maps",
              "bing_maps",
              "yellow_pages",
              "all"
            ],
            "type": "string",
            "description": "Where to look up businesses. Google Maps has the richest signals; Bing Maps is the fastest (no browser); Yellow Pages is US-only. Choose 'all' to run every source and merge results.",
            "default": "google_maps"
          },
          "maxResults": {
            "title": "Max qualified leads to return",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Cap on the number of leads pushed to the dataset. 0 = no limit.",
            "default": 100
          },
          "minGrowthScore": {
            "title": "Minimum growth score (0–100)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Only return leads scoring this or higher. 0 = include all; 30 = MEDIUM+; 55 = HIGH only.",
            "default": 30
          },
          "priorityFilter": {
            "title": "Priority filter",
            "enum": [
              "ALL",
              "HIGH",
              "MEDIUM",
              "LOW"
            ],
            "type": "string",
            "description": "Restrict output to a single priority tier.",
            "default": "ALL"
          },
          "requireMissingWebsite": {
            "title": "Only return businesses with no real website",
            "type": "boolean",
            "description": "If true, filters out everyone who has a website (social-only counts as missing).",
            "default": false
          },
          "extractDetailed": {
            "title": "Open each listing for extra detail (slower)",
            "type": "boolean",
            "description": "Click into each Google Maps result to grab hours, coordinates, full website and phone. Significantly slower; usually unnecessary for lead-gen.",
            "default": false
          },
          "maxScrolls": {
            "title": "Max scrolls on Google Maps results",
            "minimum": 1,
            "maximum": 300,
            "type": "integer",
            "description": "Each scroll loads ~5–10 more results.",
            "default": 50
          },
          "yellowPagesMaxPages": {
            "title": "Max Yellow Pages search pages",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many search-result pages to fetch from Yellow Pages. Each page yields ~30 businesses. Only used when source is 'yellow_pages' or 'all'.",
            "default": 3
          },
          "bingMarket": {
            "title": "Bing Maps market code",
            "type": "string",
            "description": "Locale/region for Bing Maps results, e.g. 'en-US', 'en-GB', 'de-DE', 'es-ES', 'fr-FR'. Only used when source is 'bing_maps' or 'all'.",
            "default": "en-US"
          },
          "language": {
            "title": "Google Maps language code",
            "type": "string",
            "description": "Two-letter ISO code, e.g. 'en', 'es', 'de'.",
            "default": "en"
          },
          "geoCoordinates": {
            "title": "Geo coordinates (lat,lng)",
            "type": "string",
            "description": "Optional. Bias Google Maps to a specific point, e.g. '30.2672,-97.7431' for Austin."
          },
          "zoomLevel": {
            "title": "Google Maps zoom level",
            "minimum": 3,
            "maximum": 21,
            "type": "integer",
            "description": "Only used when geoCoordinates is set.",
            "default": 14
          },
          "maxRetries": {
            "title": "Max retries on navigation failures",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "If Google Maps navigation fails (timeout, CAPTCHA, soft block), retry up to this many times with a fresh proxy session each time.",
            "default": 3
          },
          "proxy": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify proxy settings. RESIDENTIAL is strongly recommended — datacenter IPs are commonly blocked by both Google Maps and Yellow Pages.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}