{
  "openapi": "3.0.1",
  "info": {
    "title": "BBB Scraper: Business Profiles, Reviews & Complaints",
    "description": "Scrape public BBB business profiles by keyword and city, or from BBB URLs. Get BBB rating, accreditation, phone, website, customer reviews and complaints to find local leads or vet vendors. No login required.",
    "version": "0.1",
    "x-build-id": "gsQtg49z9KAAbuqnV"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/cliqtomedia~bbb-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-cliqtomedia-bbb-scraper",
        "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/cliqtomedia~bbb-scraper/runs": {
      "post": {
        "operationId": "runs-sync-cliqtomedia-bbb-scraper",
        "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/cliqtomedia~bbb-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-cliqtomedia-bbb-scraper",
        "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": {
          "mode": {
            "title": "What to collect",
            "enum": [
              "search",
              "profile",
              "reviews",
              "complaints"
            ],
            "type": "string",
            "description": "Search BBB by keyword and city, read business profiles, or collect customer reviews or complaints from profile URLs.",
            "default": "search"
          },
          "query": {
            "title": "Business keyword",
            "maxLength": 120,
            "type": "string",
            "description": "Business type or keyword, such as plumber or roofing. Used when Business keywords is empty. Search mode also accepts BBB search URLs."
          },
          "searchTerms": {
            "title": "Business keywords",
            "maxItems": 1000,
            "type": "array",
            "description": "Search up to 1000 business terms in one run, such as plumber and roofing. When filled, these terms take priority over Business keyword.",
            "items": {
              "type": "string"
            }
          },
          "location": {
            "title": "City and state or province",
            "maxLength": 120,
            "type": "string",
            "description": "For example Austin, TX or Toronto, ON. Leave empty to search across the country."
          },
          "country": {
            "title": "Search country",
            "enum": [
              "USA",
              "CAN"
            ],
            "type": "string",
            "description": "Country for keyword searches. Choose Canada for a Canadian city or province.",
            "default": "USA"
          },
          "sort": {
            "title": "Search order",
            "enum": [
              "Relevance",
              "Rating",
              "Distance",
              "Name"
            ],
            "type": "string",
            "description": "Ask BBB to order keyword search results by relevance, rating, distance or business name.",
            "default": "Relevance"
          },
          "accreditedOnly": {
            "title": "Accredited businesses only",
            "type": "boolean",
            "description": "Ask BBB search to show only accredited businesses. Applies to search mode.",
            "default": false
          },
          "ratingFilter": {
            "title": "BBB rating filter",
            "enum": [
              "any",
              "A",
              "B",
              "C",
              "D",
              "F"
            ],
            "type": "string",
            "description": "Ask BBB search to show only this letter grade group. Applies to search mode.",
            "default": "any"
          },
          "distanceMiles": {
            "title": "Distance from location",
            "enum": [
              "0",
              "5",
              "10",
              "25",
              "50",
              "100",
              "500"
            ],
            "type": "string",
            "description": "Search radius in miles. Choose 0 for BBB's default distance. Applies to search mode with a location.",
            "default": "0"
          },
          "distance": {
            "title": "Custom radius in miles",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Optional BBB search radius from 1 to 500 miles. Overrides the Distance from location selection."
          },
          "profileUrls": {
            "title": "BBB business profile URLs",
            "maxItems": 1000,
            "type": "array",
            "description": "Public bbb.org business profile links. Required in profile, reviews and complaints modes. At most 1000 are read per run.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "BBB search or profile URLs",
            "maxItems": 1000,
            "type": "array",
            "description": "Up to 1000 public BBB search result or business profile URLs. Search pages are followed in search mode; profile URLs work in every mode.",
            "items": {
              "type": "string"
            }
          },
          "scrapeReviews": {
            "title": "Include customer reviews",
            "type": "boolean",
            "description": "After business profiles in search or profile mode, collect review rows until the shared Maximum items limit. Set Maximum businesses lower to reserve room for reviews.",
            "default": false
          },
          "scrapeComplaints": {
            "title": "Include customer complaints",
            "type": "boolean",
            "description": "After business profiles in search or profile mode, collect complaint rows until the shared Maximum items limit. Set Maximum businesses lower to reserve room for complaints.",
            "default": false
          },
          "maxItems": {
            "title": "Maximum Dataset rows",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum paid Dataset rows in any mode and maximum business profiles in search or profile mode. A smaller Console Max items setting takes priority.",
            "default": 10
          },
          "maxBusinesses": {
            "title": "Maximum businesses",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Optional business profile cap, up to Maximum items. Use a lower value when including reviews or complaints so those rows fit in the shared result limit."
          },
          "maxReviews": {
            "title": "Maximum reviews",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum customer review rows across all businesses in reviews mode.",
            "default": 1000
          },
          "maxReviewPages": {
            "title": "Review pages per business",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Stop reading reviews after this many BBB pages for each business, even if the row limit is not reached.",
            "default": 5
          },
          "maxComplaints": {
            "title": "Maximum complaints",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum complaint rows across all businesses in complaints mode.",
            "default": 1000
          },
          "maxComplaintPages": {
            "title": "Complaint pages per business",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Stop reading complaints after this many BBB pages for each business, even if the row limit is not reached.",
            "default": 5
          },
          "maxConcurrency": {
            "title": "Maximum parallel requests",
            "minimum": 1,
            "maximum": 4,
            "type": "integer",
            "description": "Fetch up to four business profile pages at once. Search listing and review pages are read one at a time. A lower value may help with BBB blocks.",
            "default": 4
          },
          "deliveryConnector": {
            "title": "Send results to (optional)",
            "type": "string",
            "description": "Your Slack, Notion or other MCP connector. After the run the Actor posts a short summary there. Connect services once in Apify Console → MCP connectors."
          },
          "deliveryTarget": {
            "title": "Notion page or channel (optional)",
            "type": "string",
            "description": "Where to post the summary: a Notion page link (each run is added on top of that page) or a Slack channel ID. Notion needs a page here; without it the summary is not sent and the run summary says why."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}