{
  "openapi": "3.0.1",
  "info": {
    "title": "BBB Scraper | Ratings, Reviews and Complaints",
    "description": "BBB scraper for Better Business Bureau (bbb.org): get each business's BBB rating and the reasons, accreditation, owner, email, phone, website, licenses, newest reviews and complaints by type, from a keyword and city or a link. 10 businesses in 5 seconds, 57 fields each. US and Canada, no login.",
    "version": "1.0",
    "x-build-id": "eSW6YYQBb7oc5wBgY"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/silentflow~bbb-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-silentflow-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/silentflow~bbb-scraper/runs": {
      "post": {
        "operationId": "runs-sync-silentflow-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/silentflow~bbb-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-silentflow-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": {
          "searchTerms": {
            "title": "🔎 Search terms",
            "type": "array",
            "description": "What you would type in the BBB search box, one per line: a category (<code>plumber</code>, <code>roofing</code>, <code>auto repair</code>) or a company name (<code>Comcast</code>). Each term is searched in every location below. BBB shows at most 225 businesses per search; on 6 Nov 2026 it listed 1,945 for <code>plumber</code> around Denver, CO.",
            "items": {
              "type": "string"
            }
          },
          "locations": {
            "title": "📍 Locations",
            "type": "array",
            "description": "US or Canadian places, one per line, as <code>City, ST</code> (<code>Denver, CO</code>, <code>Toronto, ON</code>) or a ZIP or postal code (<code>80212</code>, <code>M5V 2T6</code>). Canada is detected from the province or postal code; type <code>Canada</code> alone for a nationwide Canadian search. Leave empty to search all of the US.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "🔗 BBB links",
            "type": "array",
            "description": "Pages copied from bbb.org: a business profile (<code>https://www.bbb.org/us/co/denver/profile/plumber/ennis-plumbing-llc-1296-90156205</code>, any of its tabs works), a search (<code>https://www.bbb.org/search?find_text=roofing&find_loc=Phoenix%2C%20AZ</code>) or a category page (<code>https://www.bbb.org/us/az/phoenix/category/roofing-contractors</code>). A profile link is always read, whatever the filters say.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxItems": {
            "title": "🔢 Max businesses",
            "minimum": 1,
            "type": "integer",
            "description": "The most businesses to save across all search terms, locations and links. Each business is one row, saved once even when several searches find it.",
            "default": 100
          },
          "sort": {
            "title": "↕️ Sort by",
            "enum": [
              "relevance",
              "rating",
              "distance",
              "name",
              "name_desc"
            ],
            "type": "string",
            "description": "The order BBB lists businesses in. With a low Max businesses, the order decides which businesses you get.",
            "default": "relevance"
          },
          "ratings": {
            "title": "🅰️ BBB ratings",
            "type": "array",
            "description": "Keep only businesses with these BBB letter grades. Pick <b>A</b> for trusted vendors, <b>D</b> and <b>F</b> to build a watch list of risky ones. Leave empty for every grade.",
            "items": {
              "type": "string",
              "enum": [
                "A",
                "B",
                "C",
                "D",
                "F"
              ],
              "enumTitles": [
                "A (A+, A, A-)",
                "B (B+, B, B-)",
                "C (C+, C, C-)",
                "D (D+, D, D-)",
                "F"
              ]
            }
          },
          "accreditedOnly": {
            "title": "🏅 Accredited businesses only",
            "type": "boolean",
            "description": "Keep only BBB Accredited Businesses. Around Denver, 400 of the 1,945 plumbers BBB lists are accredited.",
            "default": false
          },
          "distance": {
            "title": "📏 Within (miles)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Keep businesses within this distance of each location. BBB offers 5, 10, 25, 50 and 100 miles; another value goes up to the next one. Empty or 0 keeps BBB's own search area, which can reach far beyond the city."
          },
          "maxReviews": {
            "title": "⭐ Reviews per business",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "The newest customer reviews to attach to each business: star rating, author, text, date, and the reply of the business when there is one. <code>0</code> skips reviews and keeps runs fastest.",
            "default": 10
          },
          "maxComplaints": {
            "title": "📣 Complaints per business",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "The newest complaints to attach to each business: type, status, date, the customer's text and the replies of the business and the customer. <code>0</code> keeps only the complaint breakdown.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}